New submission from Pete Eberlein <[email protected]>:

Please add a mapping for the V4L2_PIX_FMT_NV12 format to PIX_FMT_NV12 for
video4linux2 devices using the rawvideo codec.

small patch:

Index: libavdevice/v4l2.c
===================================================================
--- libavdevice/v4l2.c  (revision 24716)
+++ libavdevice/v4l2.c  (working copy)
@@ -139,6 +139,11 @@
         .v4l2_fmt = V4L2_PIX_FMT_GREY,
     },
     {
+        .ff_fmt = PIX_FMT_NV12,
+        .codec_id = CODEC_ID_RAWVIDEO,
+        .v4l2_fmt = V4L2_PIX_FMT_NV12,
+    },
+    {
         .ff_fmt = PIX_FMT_NONE,
         .codec_id = CODEC_ID_MJPEG,
         .v4l2_fmt = V4L2_PIX_FMT_MJPEG,

----------
messages: 11625
priority: normal
status: new
substatus: new
title: Add NV12 pix fmt to v4l2
type: feature_request

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2157>
________________________________________________

Reply via email to