GNOME Bugzilla – Bug 607440
[wavenc] should post warning if the file isn't finished properly on pipeline shutting down
Last modified: 2010-02-09 09:54:49 UTC
Created attachment 151755 [details] test code hav attached the file for the pipeline which am creating . am able to record file with audiotestsrc but the duration shown while playing with vlc player is not proper it always shows 3:22:00 duration which is wrong. irrespective of timeout ( 5 sec , 10 sec , 20 sec , 30 sec ) values. is am doing something wrong while shutting down pipeline or do i need to do any thing elese in addition to this. ?
You need to finalise the wav file properly. The source needs to push an EOS event down the pipeline, and then wavenc will hopefully write proper headers. Try something like this: static gboolean quit_loop (gpointer data) { gst_element_send_event (bin_a, gst_event_new_eos ()); /* now wait until EOS message is received on bus */ } We shold make wavenc post a warning message if it shuts down without having finalised the header.
HI Tim it resolved the issue . now duration of file is as expected. Thanks :) Closing the bug.
I think Tim meant to turn this into a wavenc bug, to make it post a warning if it doesn't finish properly.
Fixed. Module: gst-plugins-good Branch: master Commit: ef2b7bbcab5fbc8139db72f47b81f32fd979f001 URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=ef2b7bbcab5fbc8139db72f47b81f32fd979f001 Author: Thiago Santos <thiago.sousa.santos@collabora.co.uk> Date: Wed Jan 20 15:11:15 2010 -0300 wavenc: Post warning if file isnt finished properly When the pipeline is shut down and the file isn't finished properly, wavenc should post a warning. Fixes #607440