GNOME Bugzilla – Bug 613555
camerabin: Do not send initial NEWSEGMENT event to video capturing bin
Last modified: 2012-10-21 18:53:28 UTC
For now, initial NEWSEGMENT which gst auto sends(I suppose) doesn't make sense since another NEWSEGMENT will be sent anyway from camerabin_video_pad_tee_src0_have_buffer() and camerabin_video_pad_aud_src_have_buffer() methods. Moreover, initial NEWSEGMENT affects plugins like theoraenc and vorbisenc, they are taking first event to count internal data like initial values for initial_ts(vorbisenc) and segment.accum(theoraenc). Thus, final ogg file's synchronization is broken. Attached patch just skips initial NEWSEGMENT event.
Created attachment 156707 [details] [review] Do not send initial NEWSEGMENT event to video capturing bin
I've just reproduced this, I'm trying to understand why theora/vorbis use running time instead of stream time here.
The old 0.10 camerabin(1) element has been replaced with camerabin2 ('camerabin' in 1.0) quite some time ago, so I don't think bugs relating to the old camerabin are going to get looked at any more. I'm therefore closing this bug as obsolete. Please do re-test with the camerabin element from GStreamer 1.x and re-open this bug or file a new one if there are still issues, thanks!