GNOME Bugzilla – Bug 797161
x264enc: High resolution with default settings (cbr and 2Mb/s) produces broken stream
Last modified: 2018-11-03 15:36:09 UTC
See below gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,width=1800,height=1600 ! x264enc ! rtph264pay ! rtph264depay ! queue ! decodebin ! videoconvert ! autovideosink Lower resolution or not going through RTP makes it work fine.
Nothing to do with rtph264pay/depay it seems: gst-launch-1.0 videotestsrc ! capsfilter caps=video/x-raw,width=1800,height=1600 ! x264enc ! 'video/x-h264,stream-format=(string)avc, alignment=(string)au, level=(string)5, profile=(string)constrained-baseline, width=(int)1800, height=(int)1600, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2, multiview-mode=(string)mono, multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono' ! queue ! decodebin ! videoconvert ! autovideosink sync=false -v
It you increase the bitrate, or change the default pass from cbr to quant the problem goes away. vaapih264enc uses Constant Quantizer (QP) as a default, so that dummy usage works. Do you think we should change x264enc pass default to quant ?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/issues/20.