Issue with wavenc and format setting
Dr. Peter G. Baum
peter at dr-baum.net
Tue Sep 30 08:20:10 PDT 2014
On 09/30/2014 08:50 AM, Sebastian Dröge wrote:
>> 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.
The log seems innocent enough.
Peter
0:00:00.046348476 2976 0xf65320 LOG wavenc
gstwavenc.c:1045:gst_wavenc_chain:<wavenc0> pushing 6336 bytes raw
audio, ts=0:00:01.280000000
0:00:00.046358197 2976 0xf65320 WARN wavenc
gstwavenc.c:1057:gst_wavenc_chain:<wavenc0> Could not reorder channels
0:00:00.046388098 2976 0xf65320 DEBUG wavenc
gstwavenc.c:945:gst_wavenc_event:<wavenc0> got EOS
0:00:00.046395038 2976 0xf65320 DEBUG wavenc
gstwavenc.c:820:gst_wavenc_write_toc:<wavenc0> number of cue entries: 1
0:00:00.046407870 2976 0xf65320 INFO wavenc
gstwavenc.c:666:gst_wavenc_parse_labl:<wavenc0> no title tag for entry:
66696673
0:00:00.046418131 2976 0xf65320 DEBUG wavenc
gstwavenc.c:707:gst_wavenc_parse_note:<wavenc0> got note: 'DATE
632D6C36
'
0:00:00.046462593 2976 0xf65320 DEBUG wavenc
gstwavenc.c:590:gst_wavenc_write_tags:<wavenc0> writing tags
0:00:00.046482692 2976 0xf65320 INFO GST_EVENT
gstevent.c:759:gst_event_new_segment: creating segment event bytes
segment start=0, offset=0, stop=-1, rate=1.000000,
applied_rate=1.000000, flags=0x00, time=0, base=0, position 0, duration -1
0:00:00.046502140 2976 0xf65320 DEBUG wavenc
gstwavenc.c:418:gst_wavenc_push_header:<wavenc0> writing header,
meta_size=2074, audio_size=232128
0:00:00.046509724 2976 0xf65320 DEBUG wavenc
gstwavenc.c:366:gst_wavenc_create_header_buf:<wavenc0> Header size: 44
0:00:00.046557525 2976 0xf65320 INFO task
gsttask.c:301:gst_task_func:<wavparse0:sink> Task going to paused
Got EOS from element "pipeline0".
Execution ended after 0:00:00.001728905
Setting pipeline to PAUSED ...
0:00:00.046600039 2976 0xe4af50 INFO GST_STATES
gstbin.c:2230:gst_bin_element_set_state:<filesink0> current PLAYING
pending VOID_PENDING, desired next PAUSED
More information about the gstreamer-devel
mailing list