Issue with wavenc and format setting

Ian Davidson id012c3076 at blueyonder.co.uk
Tue Sep 30 00:28:00 PDT 2014


It is my understanding that a WAV file does have (should have) a 
'header' at the end of the file and that there is a pointer at offset 0 
if the file to that 'header'.

'Trailer' might be a better name than 'Header' but it contains vital 
information such as sample rate that is needed before playback can begin.

On 30/09/2014 07:50, Sebastian Dröge wrote:
> On Mo, 2014-09-29 at 21:09 +0200, Dr. Peter G. Baum wrote:
>> Hi,
>>
>> if I do
>>
>> gst-launch-1.0 filesrc location=stereol.wav ! wavparse ! wavenc !
>> filesink location=q1.wav
>>
>> soxi tells me
>> Duration       : 00:00:01.32 = 29016 samples ~ 98.6939 CDDA sectors
>>
>> if I do the same but a forced caps
>>
>> gst-launch-1.0 filesrc location=~/gst/master/tests/files/stereol.wav !
>> wavparse ! wavenc ! audio/x-wav ! filesink location=q2.wav
>>
>> soxi tells me
>> Duration       : 06:45:47.14 = 536854528 samples ~ 1.82604e+06 CDDA sectors
>>
>> q2.wav is 44 bytes longer than q1.wav.
>> Obviously instead of rewriting the wav header at offset 0 it is appended
>> to the file.
>>
>> Any idea, where the problem could be?
> Check the debug logs, especially what happens when wavenc sends the
> SEGMENT event for rewriting the headers at the beginning. Something
> seems to go wrong there, and wavenc doesn't notice that something goes
> wrong and just writes to the end.
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140930/4fa82c32/attachment-0001.html>


More information about the gstreamer-devel mailing list