GNOME Bugzilla – Bug 351415
(some) ffenc produce garbled results
Last modified: 2006-08-16 09:18:56 UTC
The following pipeline (and resulting file) should allow to reproduce: videotestsrc num-buffers=250 ! ffenc_msmpeg4 ! avimux ! filesink location=test.avi The same problem is present for msmpeg4v2, mjpeg (and possibly others), though not for e.g. mpeg4
Created attachment 70928 [details] [review] Possible patch According to comments in avcodec.h, rtp_mode may be obsolete. As such, current gstffmpegenc.c code may actually set/activate rtp_mode (because of rtp_payload_size), even when it is not intended. The low value seems to make some codecs choke and will likely affect the encoding of other codecs as well, even when not requested by property settings.
Patch by: Mark Nauwelaerts <manauw at skynet dot be> * ext/ffmpeg/gstffmpegenc.c: (gst_ffmpegenc_setcaps): If we are not operating in RTP mode, leave the default rtp encoder settings as they are so that we don't unintentionally activate it. Fixes #351415.