[ http://dev.sourcefabric.org/browse/LS-552?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Baelde resolved LS-552. ----------------------------- Resolution: Fixed As said in the description, the issue has been fixed in a satisfying way. Of course it is not always possible to know the length precisely in advance. In those cases, an alternative is to use a system call to fix the header after that it has been closed. This should be mostly doable using the current hooks of output.file(), but if needed we can add functions for conveniency. > errors in WAV header > -------------------- > > Key: LS-552 > URL: http://dev.sourcefabric.org/browse/LS-552 > Project: Liquidsoap > Issue Type: Bug > Components: Liquidsoap > Affects Versions: 1.0 beta > Environment: Liquidsoap 1.0.0-beta2+svn > (@644dd3b27614:20110706:175811) > Reporter: peter > > It seems that duration is not encoded in the right way when using > reopen_when() at 'output.file(%wav())' > test: > output.file( %wav(stereo=true,duration=3600.), "./test_%H:%M.wav", > reopen_when={0m0s}, mksafe(noise()) ) > qwavheaderdump test_16:00.wav > test_16:00.wav (635054156 bytes): > riff: 'RIFF' > riff length: -268435457 > riff length field should be 635054148 > 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: -268435493 > data length field should be 635054112 > Romain has provided an additional parameter 'duration' (float) at %wav(). > Using parameter 'duration' If record is sucessfully finished, length is > encoded in the right way. > 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 > This ticket is written for documentation purposes only. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://dev.sourcefabric.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ Savonet-devl mailing list Savonet-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-devl