[Bug 791876] vaapipostproc not allowing overriding colorimetry (bt601/709) by downstream caps

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Jan 10 16:08:42 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=791876

--- Comment #2 from Florent ThiƩry <florent.thiery at ubicast.eu> ---
My use case is about compositing video from NV12 as a 1080p canvas with
compositor; i am feeding compositor with video from vaapidecodebin, and scaling
is handled by vaapipostproc. 

Feeding multiple 1080p inputs into a single 1080p canvas results in sub-1080p
resolutions, which results in vaapipostproc fixating colorimetry to bt601, but
the downstream compositor will work in bt709 since the final output is 1080p.

What i'm trying to avoid is to let compositor handle all the colorimetry
conversion work (which is software only and single-threaded).

This fails:
gst-build]$ gst-launch-1.0 videotestsrc num-buffers=1 ! "video/x-raw,
width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)I420"
 ! x264enc ! vaapidecodebin ! "video/x-raw, format=(string)NV12,
width=(int)960, height=(int)540, framerate=(fraction)30,
colorimetry=(string)bt709, pixel-aspect-ratio=1/1" ! fakesink

This works:
gst-build]$ gst-launch-1.0 videotestsrc num-buffers=1 ! "video/x-raw,
width=(int)320, height=(int)240, framerate=(fraction)30/1, format=(string)I420"
 ! x264enc ! vaapidecodebin ! "video/x-raw, format=(string)NV12,
width=(int)960, height=(int)540, framerate=(fraction)30,
colorimetry=(string)bt601, pixel-aspect-ratio=1/1" ! fakesink

Inversely, this works:
gst-launch-1.0 videotestsrc num-buffers=1 ! "video/x-raw, width=(int)320,
height=(int)240, framerate=(fraction)30/1, format=(string)I420"  ! x264enc !
vaapidecodebin ! "video/x-raw, format=(string)NV12, width=(int)1920,
height=(int)1080, framerate=(fraction)30, colorimetry=(string)bt709,
pixel-aspect-ratio=1/1" ! fakesink -v

This fails:
gst-launch-1.0 videotestsrc num-buffers=1 ! "video/x-raw, width=(int)320,
height=(int)240, framerate=(fraction)30/1, format=(string)I420"  ! x264enc !
vaapidecodebin ! "video/x-raw, format=(string)NV12, width=(int)1920,
height=(int)1080, framerate=(fraction)30, colorimetry=(string)bt601,
pixel-aspect-ratio=1/1" ! fakesink

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list