<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
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'.<br>
<br>
'Trailer' might be a better name than 'Header' but it contains vital
information such as sample rate that is needed before playback can
begin.<br>
<br>
<div class="moz-cite-prefix">On 30/09/2014 07:50, Sebastian Dröge
wrote:<br>
</div>
<blockquote cite="mid:1412059855.2149.0.camel@centricular.com"
type="cite">
<pre wrap="">On Mo, 2014-09-29 at 21:09 +0200, Dr. Peter G. Baum wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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?
</pre>
</blockquote>
<pre wrap="">
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.
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>