From: Peter R. <pet...@gm...> - 2011-08-05 17:30:42
|
Hi, the first record is done and encoded fine when using the 'duration' parameter: qwavheaderdump test_18:00.wav test_18:00.wav (635040044 bytes): riff: 'RIFF' riff length: 635040036 wave: 'WAVE' fmt: 'fmt ' fmt length: 16 format: 1 channels: 2 sample rate: 44100 bytes/second: 176400 bytes/sample: 4 bits/sample: 16 data: 'data' data length: 635040000 Thanks for fixing this! I have written a issue for documentation : http://dev.sourcefabric.org/browse/LS-552 BR, Peter Am 05.08.2011 17:35, schrieb Peter Retep: > Thank you! > > liquidsoap 'output.file( %wav(stereo=true,duration=3600.), "./test_%H:%M.wav", reopen_when={0m0s}, mksafe(noise()) )' > > test started, it will take some hours, due to small frequencies do not work safely with reopen_when. > I let you know about results at the earliest. > > BR, Peter > > Am 05.08.2011 17:13, schrieb Romain Beauxis: >> 2011/8/5 Peter Retep<pet...@gm...>: >>> Hi, >> Hi! >> >>> I have just found some time for retesting... >>> >>> 1) >>> When trying to apply the length parameter (is it called duration?), I >>> failed. >>> Could you please give me a hint how to set this parameter? >>> >>> >>> liquidsoap -h WAV >>> *** One entry in audio file formats (duration): >>> (no doc) >>> *** One entry in file decoding: >>> Decode as WAV any file with a correct header. >>> *** One entry in stream decoding: >>> Decode a WAV stream with an appropriate MIME type. >>> *** One entry in stream encoding formats: >>> (no doc) >>> >>> liquidsoap 'output.file( %wav(stereo=true,duration=60s), "./test_%M.wav", >>> reopen_when={0s-59s}, mksafe(noise()) )' >>> Error in encoding format at line 1, char 40-42: >>> complex expressions are forbidden in encoding formats. >>> >>> liquidsoap 'output.file( %wav(stereo=true,duration=60), "./test_%M.wav", >>> reopen_when={0s-59s}, mksafe(noise()) )' >>> Error in encoding format at line 1, char 40-41: >>> unknown parameter name or invalid parameter value. >>> >>> liquidsoap 'output.file( %wav(stereo=true,duration="60"), "./test_%M.wav", >>> reopen_when={0s-59s}, mksafe(noise()) )' >>> Error in encoding format at line 1, char 40-43: >>> unknown parameter name or invalid parameter value. >>> >>> liquidsoap 'output.file( %wav(stereo=true,duration="60s"), "./test_%M.wav", >>> reopen_when={0s-59s}, mksafe(noise()) )' >>> Error in encoding format at line 1, char 40-44: >>> unknown parameter name or invalid parameter value. >>> >>> liquidsoap 'output.file( %wav(stereo=true), duration=60s, "./test_%M.wav", >>> reopen_when={0s-59s}, mksafe(noise()) )' >>> At line 1, char 42-44: cannot apply that parameter because the function >>> (at line 1, char 12) has no argument labeled "duration"! >> It should the only only variant you have not tested: >> %wav(stereo=true,duration=60.) >> Note the dot at the end.. The param is a floating number, representing >> seconds.. In liq a float is differentiated from an int by the presence >> of the dot, which must be present even if the value is actually an >> integer.. >> >> Romain >> > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > The must-attend event for mobile developers. Connect with experts. > Get tools for creating Super Apps. See the latest technologies. > Sessions, hands-on labs, demos& much more. Register early& save! > http://p.sf.net/sfu/rim-blackberry-1 > _______________________________________________ > Savonet-users mailing list > Sav...@li... > https://lists.sourceforge.net/lists/listinfo/savonet-users > |