Issue with wavenc and format setting

Sebastian Dröge sebastian at centricular.com
Mon Sep 29 23:50:55 PDT 2014


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.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140930/fef4e2a9/attachment.sig>


More information about the gstreamer-devel mailing list