h264 "divisible by 2"

Igors igors at eias3d.com
Sat Mar 30 15:17:43 UTC 2019


Hi All

The test pipeline is:

gst-launch-1.0 videotestsrc num-buffers=100 ! videoconvert !
video/x-raw,width=640,height=480,format=YV12 ! x264enc ! qtmux ! filesink
location=test_264.mov

It works fine but only for even image sizes, height=479 gives encoder error
(height not divisible by 2)

No such restriction if change "format" to Y444 but produced movie can't be
opened with default OS players
(QT Player for example) and it's very inconvenient. After some googling it
looks like a standard prob. However other apps do this, e.g. created files
with odd sizes are opened fine in standard players. I compared caps for
these and those files - both have profile "high" 4:2:0 and all fields are
same except of one

1. File with odd sizes created in other app(s)
codec_data=(buffer)0164001effe100152764001eac5230280f79bc05a8101011856bdef80801000428fe09cb

2. File with even sizes created with pipeline above
codec_data=(buffer)0164001effe1001f6764001eacd940c82fe59b016a0c020b4a000003000200000300791e2c5b2c01000568ebecb22c

I've tried to specify codec_data in command line but it has no effect. Any
idea? Or I need another codec instead of x264enc?

Thx 




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list