Re: [FFmpeg-devel] [PATCH 05/25] avcodec/v4l2_buffers: teach ff_v4l2_buffer_avframe_to_buf about contiguous planar formats

2019-09-04 Thread Alexis Ballier
On Mon, 2 Sep 2019 18:02:10 -0700 Aman Gupta wrote: [...] > @@ -289,15 +290,59 @@ static int v4l2_bufref_to_buf(V4L2Buffer *out, > int plane, const uint8_t* data, i int > ff_v4l2_buffer_avframe_to_buf(const AVFrame *frame, V4L2Buffer *out) { > int i, ret; > +struct v4l2_format fmt = out-

Re: [FFmpeg-devel] [PATCH] Add support for libopenjpeg 2.3

2017-10-08 Thread Alexis Ballier
On Sun, 8 Oct 2017 13:43:45 +0200 Clément Bœsch wrote: > On Sun, Oct 08, 2017 at 04:51:49PM +0530, Gyan Doshi wrote: > > OpenJPEG 2.3 was released a few days ago. Changelog reports "No > > API/ABI break compared to v2.2.0 but additional symbols for subset > > of components decoding" > > > > This

Re: [FFmpeg-devel] [PATCHv6 4/4] libavcodec: v4l2: add support for v4l2 mem2mem codecs

2017-08-28 Thread Alexis Ballier
Hi, On Sun, 27 Aug 2017 21:41:06 +0200 Jorge Ramirez wrote: > On 08/27/2017 09:09 PM, Jorge Ramirez wrote: > > On 08/25/2017 05:35 PM, wm4 wrote: > >>> +static int buffer_ops_v4l2buf_to_avframe(AVFrame *frame, > >>> V4L2Buffer *avbuf) +{ > >>> +int i, ret; > >>> + > >>> +av_frame_unre

[FFmpeg-devel] [PATCH 1/2] lavf/vf_framerate: Fix frame leak when increasing framerate.

2017-03-11 Thread Alexis Ballier
--- Can be reproduced with: ffmpeg -f lavfi -i cellauto,framerate=fps=100 -t 1 -f null - (and your favorite memory debugger). --- libavfilter/vf_framerate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_framerate.c b/libavfilter/vf_framerate.c index 237a4873b3

[FFmpeg-devel] [PATCH 2/2] fate: Add vf_framerate test.

2017-03-11 Thread Alexis Ballier
--- tests/fate/filter-video.mak | 4 tests/ref/fate/filter-framerate-down | 6 ++ tests/ref/fate/filter-framerate-up | 15 +++ 3 files changed, 25 insertions(+) create mode 100644 tests/ref/fate/filter-framerate-down create mode 100644 tests/ref/fate/filter-fram

[FFmpeg-devel] [PATCH] lavf/vf_framerate: Fix frame leak when increasing framerate.

2017-03-09 Thread Alexis Ballier
--- Can be reproduced with: ffmpeg -f lavfi -i cellauto,framerate=fps=100 -t 1 -f null - (and your favorite memory debugger). --- libavfilter/vf_framerate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_framerate.c b/libavfilter/vf_framerate.c index 237a4873b3

Re: [FFmpeg-devel] [PATCH 1/2] libavformat/mxfenc.c: Fix segfault when writing an audio packet when there has not been a video one.

2015-10-24 Thread Alexis Ballier
On Wed, 21 Oct 2015 22:43:04 +0200 Tomas Härdin wrote: > On Tue, 2015-10-20 at 16:43 +0200, Marton Balint wrote: > > On Mon, 19 Oct 2015, Tomas Härdin wrote: > > > > > On Mon, 2015-10-19 at 11:40 +0200, Alexis Ballier wrote: > > >> On Mon, 19 Oc

Re: [FFmpeg-devel] [PATCH 04/11] libavformat/mxfdec.c: Try to increment current edit before rejecting a klv that spans onto next edit unit.

2015-10-22 Thread Alexis Ballier
On Wed, 21 Oct 2015 23:45:07 +0200 Tomas Härdin wrote: > On Wed, 2015-10-21 at 18:00 +0200, Alexis Ballier wrote: > > Some files such as those from tickets #2817 & #2776 claim to have > > constant edit unit size but, in fact, have some of them that are > > smaller. This

Re: [FFmpeg-devel] [PATCH 01/11] libavformat/mxfdec.c: klv_read_packet: Properly check klv_decode_ber_length return value.

2015-10-22 Thread Alexis Ballier
On Wed, 21 Oct 2015 23:31:29 +0200 Tomas Härdin wrote: > On Wed, 2015-10-21 at 18:00 +0200, Alexis Ballier wrote: > > klv_decode_ber_length cannot return -1, but can return > > AVERROR_INVALIDDATA. Store its return value in a signed integer > > (instead of unsigned KLVPacke

[FFmpeg-devel] [PATCH 11/11] libavformat/mxfdec.c: Log unknown metadata tags. This should help in seeing missing features.

2015-10-21 Thread Alexis Ballier
--- libavformat/mxfdec.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 020294d..606afe6 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -727,6 +727,8 @@ static int mxf_read_content_storage(void *arg, AV

[FFmpeg-devel] [PATCH 10/11] libavformat/mxfdec.c: Parse index table segment DeltaEntryArray.

2015-10-21 Thread Alexis Ballier
--- libavformat/mxfdec.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 75858fc..020294d 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -192,6 +192,12 @@ typedef struct MXFDescriptor {

[FFmpeg-devel] [PATCH 09/11] libavformat/mxfdec.c: Parse index table segment slice_count.

2015-10-21 Thread Alexis Ballier
--- libavformat/mxfdec.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 5c224ef..75858fc 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -198,6 +198,7 @@ typedef struct MXFIndexTableSegment { int edit_unit_byte_count;

[FFmpeg-devel] [PATCH 08/11] libavformat/mxfdec.c: Parse track position.

2015-10-21 Thread Alexis Ballier
--- libavformat/mxfdec.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 2b776f6..5c224ef 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -161,6 +161,7 @@ typedef struct { int intra_only; uint64_t sample_count;

[FFmpeg-devel] [PATCH 06/11] libavformat/mxfdec.c: Parse source clip data_definition_ul.

2015-10-21 Thread Alexis Ballier
--- libavformat/mxfdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index e16c678..1320fad 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -722,6 +722,9 @@ static int mxf_read_source_clip(void *arg, AVIOContext *pb, int tag,

[FFmpeg-devel] [PATCH 07/11] libavformat/mxfdec.c: Parse timecode component data_definition_ul and duration.

2015-10-21 Thread Alexis Ballier
--- libavformat/mxfdec.c | 8 1 file changed, 8 insertions(+) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 1320fad..2b776f6 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -121,6 +121,8 @@ typedef struct MXFSequence { typedef struct MXFTimecodeComponent

[FFmpeg-devel] [PATCH 03/11] libavformat/mxfdec.c: Report dark metadata keys only when they match no parser at all, not everytime they fail to match one.

2015-10-21 Thread Alexis Ballier
--- libavformat/mxfdec.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 0ae7ce6..593604e 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -2767,13 +2767,13 @@ static int mxf_read_header(AVFormatContext *s

[FFmpeg-devel] [PATCH 04/11] libavformat/mxfdec.c: Try to increment current edit before rejecting a klv that spans onto next edit unit.

2015-10-21 Thread Alexis Ballier
Some files such as those from tickets #2817 & #2776 claim to have constant edit unit size but, in fact, have some of them that are smaller. This confuses the demuxer that tries to infer the current edit unit from the position in the file. By trying to increment the current edit unit before rejec

[FFmpeg-devel] [PATCH 05/11] libavformat/mxfdec.c: Fix typo in named struct definition.

2015-10-21 Thread Alexis Ballier
typedef struct MXFTrack { ... } MXFTimecodeComponent; -> typedef struct MXFTimecodeComponent { ... } MXFTimecodeComponent; --- libavformat/mxfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 526eca6..e16c678 100644 --- a/l

[FFmpeg-devel] [PATCH 02/11] libavformat/mxfdec.c: cosmetics: Add missing space after '?' in log message.

2015-10-21 Thread Alexis Ballier
--- libavformat/mxfdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c index 94a953b..0ae7ce6 100644 --- a/libavformat/mxfdec.c +++ b/libavformat/mxfdec.c @@ -2959,7 +2959,7 @@ static int mxf_read_packet_old(AVFormatContext *s, AVP

[FFmpeg-devel] [PATCH 01/11] libavformat/mxfdec.c: klv_read_packet: Properly check klv_decode_ber_length return value.

2015-10-21 Thread Alexis Ballier
klv_decode_ber_length cannot return -1, but can return AVERROR_INVALIDDATA. Store its return value in a signed integer (instead of unsigned KLVPacket.length) and forward the error appropriately. --- libavformat/mxfdec.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib

[FFmpeg-devel] [PATCH 00/11] MXF decoder fixes/improvements.

2015-10-21 Thread Alexis Ballier
Main patch is patch 4/11 fixing 2 tickets. Patches 5+ are not very useful by themselves but since I wrote the code for them trying to understand the issue, I thought I'd just send them anyway. Those can be dropped without any problem. Alexis Ballier (11): libavformat/mxfdec.c: klv_read_p

Re: [FFmpeg-devel] [PATCH 1/2] libavformat/mxfenc.c: Fix segfault when writing an audio packet when there has not been a video one.

2015-10-19 Thread Alexis Ballier
On Mon, 19 Oct 2015 10:30:00 +0200 Michael Niedermayer wrote: > On Fri, Oct 16, 2015 at 10:42:32AM +0200, Alexis Ballier wrote: > > This happens when writing the trailer of a file containing audio > > but that has not muxed any video packet. Fixes ticket #4817. > > >

Re: [FFmpeg-devel] [PATCH 2/2] libavcodec/mpegvideo_enc.c: Fix encoding videos with less frames than the delay of the encoder.

2015-10-19 Thread Alexis Ballier
On Sun, 18 Oct 2015 12:09:48 +0200 Michael Niedermayer wrote: > On Fri, Oct 16, 2015 at 10:42:33AM +0200, Alexis Ballier wrote: > > When the encoder is fed with less frames than its delay, the > > picture list looks like { NULL, NULL, ..., frame, frame, frame }. > > When

[FFmpeg-devel] [PATCH 2/2] libavcodec/mpegvideo_enc.c: Fix encoding videos with less frames than the delay of the encoder.

2015-10-16 Thread Alexis Ballier
When the encoder is fed with less frames than its delay, the picture list looks like { NULL, NULL, ..., frame, frame, frame }. When flushing the encoder (input frame == NULL), we need to ensure the picture list is shifted enough so that we do not return an empty packet, which would mean the enco

[FFmpeg-devel] [PATCH 1/2] libavformat/mxfenc.c: Fix segfault when writing an audio packet when there has not been a video one.

2015-10-16 Thread Alexis Ballier
This happens when writing the trailer of a file containing audio but that has not muxed any video packet. Fixes ticket #4817. This ticket also highlights the fact that mpeg2 video encoder produces no output when it has received less frames than its delay. --- libavformat/mxfenc.c | 2 +-

Re: [FFmpeg-devel] request for feedback on video codec idea

2015-10-14 Thread Alexis Ballier
On Wed, 14 Oct 2015 12:08:58 -0600 Roger Pack wrote: > Lacking a better place to debate this, I would like to ask some > questions on a video codec idea... > > The goal is basically to create a very fast lossless screen capture > codec (i.e. in the input there will be lots of repeated "colors" o

Re: [FFmpeg-devel] [RFC] Async M:N asynchronous API model discussion

2015-09-25 Thread Alexis Ballier
On Fri, 25 Sep 2015 12:22:51 +0200 Clément Bœsch wrote: > Hi, > > With the increasing number of hardware accelerated API, the need for a > proper M:N asynchronous API is growing. We've observed that with MMAL > and VideoToolBox accelerations typically. Similarly, the incoming > MediaCodec hwacce

[FFmpeg-devel] [PATCH] libavcodec/tableprint_vlc.h: include lavu/reverse.c for ff_reverse.

2015-08-12 Thread Alexis Ballier
Fixes the build with --enable-hardcoded-tables since ff_reverse has moved to lavu. --- libavcodec/tableprint_vlc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/tableprint_vlc.h b/libavcodec/tableprint_vlc.h index 33a9c0e..675251a 100644 --- a/libavcodec/tableprint_vlc.h +++ b/li

[FFmpeg-devel] [PATCH] Adapt libavcodec/tableprint_vlc.h to the av_dlog -> ff_dlog change.

2015-04-27 Thread Alexis Ballier
This fixes the build with --enable-hardcoded-tables that was broken since [8f7b022c8c2f40bf8ddfd90778a4c91424d3a8e5]. --- libavcodec/tableprint_vlc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/tableprint_vlc.h b/libavcodec/tableprint_vlc.h index aa4c82b..7f46

Re: [FFmpeg-devel] [PATCH] Set sse_deps to mmx, not mmxext.

2015-02-16 Thread Alexis Ballier
On Mon, 16 Feb 2015 13:31:40 -0300 James Almer wrote: > On 16/02/15 1:22 PM, Alexis Ballier wrote: > > [50cd43f2c] changed that silently, while no modern cpu has mmxext: > > https://en.wikipedia.org/wiki/Extended_MMX > > In this case, mmxext refers to the integer instructi

[FFmpeg-devel] [PATCH] Set sse_deps to mmx, not mmxext.

2015-02-16 Thread Alexis Ballier
[50cd43f2c] changed that silently, while no modern cpu has mmxext: https://en.wikipedia.org/wiki/Extended_MMX --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 1d14d0a..ae73970 100755 --- a/configure +++ b/configure @@ -2010,7 +2010,7 @@

Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Remove 1.2 from the maintained releases

2015-02-14 Thread Alexis Ballier
On Fri, 13 Feb 2015 17:56:41 +0100 Michael Niedermayer wrote: > no security updates for FFmpeg 1.2 and "gentoo stable" but its > http://www.gentoo.org/security/en/glsa/index.xml also lists no > security updates for 1.2 also > http://packages.gentoo.org/package/media-video/ffmpeg lists stable as

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-21 Thread Alexis Ballier
On Fri, 21 Nov 2014 11:52:01 +0100 Alexis Ballier wrote: > > No, this would imply that the pointer to the opaque data is in > > AVFrame.data[3], and all other pointers are ignored. So you have > > only 1 pointer. AVFrame.linesize has no meaning either in this case. > > t

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-21 Thread Alexis Ballier
On Fri, 21 Nov 2014 11:23:49 +0100 wm4 wrote: > > I didn't know such "opaque" things existed; it probably makes more > > sense with it indeed. > > > > How should I do it ? add .flags = AV_PIX_FMT_FLAG_HWACCEL and be > > done ? I would like to keep 'av_pix_fmt_count_planes()' working for > > it at

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-21 Thread Alexis Ballier
On Fri, 21 Nov 2014 10:50:42 +0100 Jean-Baptiste Kempf wrote: > > Now, if I want to use the fimc device to apply some effects I can't > > because the decoder is magically using it behind my back. > > How is that relevant? Just block it. Block what ? automatic conversion ? what fmt should i adver

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-21 Thread Alexis Ballier
On Fri, 21 Nov 2014 10:51:52 +0100 wm4 wrote: > On Fri, 21 Nov 2014 10:43:15 +0100 > Alexis Ballier wrote: > > > On Fri, 21 Nov 2014 10:15:29 +0100 > > Jean-Baptiste Kempf wrote: > > > > > On 21 Nov, Alexis Ballier wrote : > > > > > So you h

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-21 Thread Alexis Ballier
On Fri, 21 Nov 2014 10:38:37 +0100 Jean-Baptiste Kempf wrote: > On 21 Nov, Alexis Ballier wrote : > > I think it's safe to assume that if you have a SOC with a HW dec > > that outputs only this insane and uncommon format, the SOC also has > > a HW filter that can conv

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-21 Thread Alexis Ballier
On Fri, 21 Nov 2014 10:15:29 +0100 Jean-Baptiste Kempf wrote: > On 21 Nov, Alexis Ballier wrote : > > > So you have a format outputted that is of no use, except if you > > > use the filter. > > > > On MFCv5 yes; I don't assume because I'm working on

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-21 Thread Alexis Ballier
On Fri, 21 Nov 2014 10:02:36 +0100 Jean-Baptiste Kempf wrote: > On 21 Nov, Alexis Ballier wrote : > > > > How do you put this in an AVFrame then ? > > > > > > Preferably not at all. Is there a need to? Only the end result > > > (nv12 I suppose) needs to

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-21 Thread Alexis Ballier
On Fri, 21 Nov 2014 09:58:40 +0100 Jean-Baptiste Kempf wrote: > On 21 Nov, Alexis Ballier wrote : > > On Thu, 20 Nov 2014 18:40:18 +0100 > > Jean-Baptiste Kempf wrote: > > > > > On 20 Nov, Alexis Ballier wrote : > > > > This is the only

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-21 Thread Alexis Ballier
On Fri, 21 Nov 2014 09:01:43 +0100 wm4 wrote: > On Fri, 21 Nov 2014 08:45:47 +0100 > Alexis Ballier wrote: > > > On Thu, 20 Nov 2014 18:42:19 +0100 > > wm4 wrote: > > > I think this should be rejected. It's far too special to be > > > useful

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-20 Thread Alexis Ballier
On Thu, 20 Nov 2014 18:40:18 +0100 Jean-Baptiste Kempf wrote: > On 20 Nov, Alexis Ballier wrote : > > This is the only format supported by MFC5 HW decoders (e.g. Samsung > > exynos 4412). > > Why not convert it to a normal format? > That is exactly what the m2m filter

Re: [FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-20 Thread Alexis Ballier
On Thu, 20 Nov 2014 18:42:19 +0100 wm4 wrote: > I think this should be rejected. It's far too special to be useful in > general, and it's not even pixel- or line-addressable (Z-shaped tiles, > seriously?). It's pretty much a raw codec, not a pixel format. How do you put this in an AVFrame then ?

Re: [FFmpeg-devel] [PATCH 5/6] Add support for V4L2 mem2mem codecs.

2014-11-20 Thread Alexis Ballier
On Thu, 20 Nov 2014 21:41:56 +0100 Michael Niedermayer wrote: > On Thu, Nov 20, 2014 at 05:51:56PM +0100, Alexis Ballier wrote: > > Default buffer settings should work with all drivers (mmaped memory > > from the driver) but would imply useless memcpy()'s if used in

[FFmpeg-devel] [PATCH 6/6] Add V4L2 m2m filter support. Very useful for HW accelerated format conversion & scaling.

2014-11-20 Thread Alexis Ballier
vflip, vf); REGISTER_FILTER(VIDSTABDETECT, vidstabdetect, vf); REGISTER_FILTER(VIDSTABTRANSFORM, vidstabtransform, vf); diff --git a/libavfilter/vf_v4l2_m2m.c b/libavfilter/vf_v4l2_m2m.c new file mode 100644 index 000..293162a --- /dev/null +++ b/libavfilter/vf_v4l

[FFmpeg-devel] [PATCH 5/6] Add support for V4L2 mem2mem codecs.

2014-11-20 Thread Alexis Ballier
vc1_vdpau); REGISTER_DECODER(VC1IMAGE, vc1image); REGISTER_DECODER(VCR1, vcr1); @@ -296,6 +302,7 @@ void avcodec_register_all(void) REGISTER_DECODER(VP6F, vp6f); REGISTER_DECODER(VP7, vp7); REGISTER_DECODER(VP8,

[FFmpeg-devel] [PATCH 4/6] lavc/v4l2-common.c: Add more v4l2 coded formats and multi planar raw formats.

2014-11-20 Thread Alexis Ballier
--- libavcodec/v4l2-common.c | 33 + 1 file changed, 33 insertions(+) diff --git a/libavcodec/v4l2-common.c b/libavcodec/v4l2-common.c index 815a5c4..80e1365 100644 --- a/libavcodec/v4l2-common.c +++ b/libavcodec/v4l2-common.c @@ -58,6 +58,39 @@ const struct v4l_fm

[FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

2014-11-20 Thread Alexis Ballier
This is the only format supported by MFC5 HW decoders (e.g. Samsung exynos 4412). --- libavutil/pixdesc.c | 12 libavutil/pixfmt.h | 1 + 2 files changed, 13 insertions(+) diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 648d014..426dfd4 100644 --- a/libavutil/pixdesc.

[FFmpeg-devel] [PATCH 1/6] Move lavd/v4l2-common.* to lavc.

2014-11-20 Thread Alexis Ballier
This code needs lavc for AV_CODEC_ID_* and can be used by lavc & lavfi with v4l m2m support. --- configure | 6 ++- libavcodec/Makefile | 1 + libavcodec/v4l2-common.c | 105 ++ libavcodec/v4l2-common.h | 47

[FFmpeg-devel] [PATCH 2/6] lavc/v4l2-common: Add pack_flags to v4l2 conversion tables and extend the mapping function to use it.

2014-11-20 Thread Alexis Ballier
It serves to distinguish if we will (de)packetize the format from an AVFrame or an AVPacket. We will need AVFrame support for v4l m2m and we can certainly not use as-is e.g. V4L2_PIX_FMT_YUV420 as AV_PIX_FMT_YUV420P since the former is pseudo-packed while the later is planar. Also, V4L multi pla