[Bug 792435] New: v4l2src selecting suboptimal colorspace
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Jan 11 17:36:22 UTC 2018
https://bugzilla.gnome.org/show_bug.cgi?id=792435
Bug ID: 792435
Summary: v4l2src selecting suboptimal colorspace
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-good
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: florent.thiery at ubicast.eu
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 366676
--> https://bugzilla.gnome.org/attachment.cgi?id=366676&action=edit
debug output
I was expecting the following pipeline to negociate NV12 directly from the
device (whose driver supports NV12), but for an unknown reason v4l2 selects
YVYU:
$ GST_DEBUG=v4l2*:5 gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 !
queue name=qinput1 ! videoconvert ! videoscale ! "video/x-raw,
format=(string)NV12, width=(int)1920, height=(int)1080, framerate=(fraction)30,
colorimetry=(string)bt709, pixel-aspect-ratio=1/1" ! fakesink
This will imply an unnecessary colorspace conversion by videoconvert.
Manually requesting NV12 does work though:
$ GST_DEBUG=v4l2*:5 gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 !
queue name=qinput1 ! "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
Why is v4l2src not choosing NV12 in the first place ?
--
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