[Bug 790265] v4l2src: Give preference to contiguous memory format over non contiguous one while setting format to /dev/video

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Dec 19 02:44:32 UTC 2017


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

--- Comment #6 from Devarsh Thakkar <devarsht at xilinx.com> ---
Thanks for writing.

"Changing the drivers so they implement a common denominator seems much easier"
We checked with driver owners and they don't see any memory bandwidth
optimization on shifting to NV12. Also they see implementing NV12M in driver
stack as being more complex.
Moreover, I guess the drivers here already have single denominator i.e
V4L2_PIX_FMT_NV12 but it's just that v4l2src device supports both
V4L2_PIX_FMT_NV12 and V4L2_PIX_FMT_NV12M and has a preference for the latter
and no window for user to change it.

Currently we are making it work by forcing NV12 locally but if we plan to
upstream then we might need to implement it in more generic way.

I understand you want a generic solution in which using some kind of
negotiation between v4l2src and encoder the v4l2src shifts to V4L2_PIX_FMT_NV12
if the encoder supports only that but as of now I don't know what's the best
way to do this in gstreamer, so currently not working on any patch.


Thanks,
Devarsh

-- 
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