[FFmpeg-devel] [PATCH] libavcodec/h264: always set color description fields

2021-11-23 Thread Xiaolei Yu
Color description fields shall be inferred to be UNSPECIFIED if not present. --- libavcodec/h264_ps.c| 4 +++- libavcodec/h264_slice.c | 18 +++--- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/libavcodec/h264_ps.c b/libavcodec/h264_ps.c index

[FFmpeg-devel] [PATCH V2 5/5] libavutil/hwcontext_vulkan: specify the modifier to create VKImage

2021-11-23 Thread Wenbin Chen
When vulkan image exports to drm, the tilling need to be VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT. Now add code to create vulkan image using this format. Now the following command line works: ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format \ vaapi -i

[FFmpeg-devel] [PATCH V2 4/5] libavutil/hwcontext_vulkan: Add hwupload and hwdownload support when using contiguous_planes flag.

2021-11-23 Thread Wenbin Chen
Add hwupload and hwdownload support to vulkan when frames are allocated in one memory Signed-off-by: Wenbin Chen --- libavutil/hwcontext_vulkan.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index

[FFmpeg-devel] [PATCH V2 1/5] hwcontext_vaapi: Use PRIME_2 memory type for modifiers.

2021-11-23 Thread Wenbin Chen
From: Bas Nieuwenhuizen This way we can pass explicit modifiers in. Sometimes the modifier matters for the number of memory planes that libva accepts, in particular when dealing with driver-compressed textures. Furthermore the driver might not actually be able to determine the implicit modifier

[FFmpeg-devel] [PATCH V2 3/5] libavutil/hwcontext_vulkan: Allocate vkFrame in one memory

2021-11-23 Thread Wenbin Chen
The vaapi can import external frame, but the planes of the external frames should be in the same drm object. A new option "contiguous_planes" is added to device. This flag tells device to allocate places in one memory. When device is derived from vaapi this flag will be enabled. A new flag

[FFmpeg-devel] [PATCH V2 2/5] libavutil/hwcontext_vaapi: Add a new nv12 format map to support vulkan frame

2021-11-23 Thread Wenbin Chen
Vulkan will map nv12 to R8 and GR88, so add this map to vaapi to support vulkan frame. Signed-off-by: Wenbin Chen --- libavutil/hwcontext_vaapi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index 75acc851d6..994b744e4d 100644 ---

Re: [FFmpeg-devel] [PATCH v2] avformat/mov: add option max_stts_delta

2021-11-23 Thread Gyan Doshi
On 2021-11-24 01:16 am, Michael Niedermayer wrote: On Tue, Nov 23, 2021 at 06:41:06PM +0530, Gyan Doshi wrote: Very high stts sample deltas may occasionally be intended but usually they are written in error or used to store a negative value for dts correction when treated as signed 32-bit

[FFmpeg-devel] [PATCH v2 4/4] avutil/hwcontext_vulkan: fully support customizable validation layers

2021-11-23 Thread Wu Jianhua
Validation layer is an indispensable part of developing on Vulkan. The following commands is on how to enable validation layers: ffmpeg -init_hw_device vulkan=0,debug=1,validation_layers=VK_LAYER_LUNARG_monitor+VK_LAYER_LUNARG_api_dump Signed-off-by: Wu Jianhua ---

[FFmpeg-devel] [PATCH v2 3/4] avutil/hwcontext_vulkan: check if created before destroying the instance

2021-11-23 Thread Wu Jianhua
Signed-off-by: Wu Jianhua --- libavutil/hwcontext_vulkan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 4ac1058181..644ed947f8 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c

[FFmpeg-devel] [PATCH v2 2/4] avutil/hwcontext_vulkan: check if created before destroying the device

2021-11-23 Thread Wu Jianhua
Signed-off-by: Wu Jianhua --- libavutil/hwcontext_vulkan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index f1e750cd3e..4ac1058181 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c

[FFmpeg-devel] [PATCH v2 1/4] avutil/vulkan_functions: add EnumerateInstanceLayerProperties

2021-11-23 Thread Wu Jianhua
Signed-off-by: Wu Jianhua --- libavutil/vulkan_functions.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/vulkan_functions.h b/libavutil/vulkan_functions.h index 85a9f943c8..96922d7286 100644 --- a/libavutil/vulkan_functions.h +++ b/libavutil/vulkan_functions.h @@ -45,6 +45,7 @@

Re: [FFmpeg-devel] [PATCH 01/11] avformat/rtpdec_rfc4175: use rawvideo for uyvy422

2021-11-23 Thread Lynne
23 Nov 2021, 23:33 by lance.lmw...@gmail.com: > On Fri, Nov 12, 2021 at 06:22:06PM +0800, lance.lmw...@gmail.com wrote: > >> From: Limin Wang >> >> Signed-off-by: Limin Wang >> --- >> libavformat/rtpdec_rfc4175.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git

Re: [FFmpeg-devel] [PATCH 01/11] avformat/rtpdec_rfc4175: use rawvideo for uyvy422

2021-11-23 Thread lance . lmwang
On Fri, Nov 12, 2021 at 06:22:06PM +0800, lance.lmw...@gmail.com wrote: > From: Limin Wang > > Signed-off-by: Limin Wang > --- > libavformat/rtpdec_rfc4175.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c

Re: [FFmpeg-devel] [PATCH v2] avformat/mov: add option max_stts_delta

2021-11-23 Thread Michael Niedermayer
On Tue, Nov 23, 2021 at 06:41:06PM +0530, Gyan Doshi wrote: > Very high stts sample deltas may occasionally be intended but usually > they are written in error or used to store a negative value for dts correction > when treated as signed 32-bit integers. > > This option lets the user set an upper

[FFmpeg-devel] [PATCH v5 4/4] avformat/imf: Tests and build files

2021-11-23 Thread pal
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- Notes: Tests and build files for the IMF demuxer. MAINTAINERS | 1 + configure| 3 +- doc/demuxers.texi| 6 + libavformat/Makefile | 2 + libavformat/allformats.c | 1

[FFmpeg-devel] [PATCH v5 3/4] avformat/imf: Demuxer implementation

2021-11-23 Thread pal
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- Notes: Implements the IMF demuxer. libavformat/imfdec.c | 801 +++ 1 file changed, 801 insertions(+) create mode 100644 libavformat/imfdec.c diff --git a/libavformat/imfdec.c

[FFmpeg-devel] [PATCH v5 2/4] avformat/imf: CPL processor

2021-11-23 Thread pal
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- Notes: Implements IMF Composition Playlist (CPL) parsing. libavformat/imf_cpl.c | 707 ++ 1 file changed, 707 insertions(+) create mode 100644 libavformat/imf_cpl.c diff --git

[FFmpeg-devel] [PATCH v5 1/4] avformat/imf: Headers

2021-11-23 Thread pal
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- Notes: The IMF demuxer accepts as input an IMF CPL. The assets referenced by the CPL can be contained in multiple deliveries, each defined by an ASSETMAP file: ffmpeg -assetmaps ,,... -i If

[FFmpeg-devel] [PATCH] avfilter: add audio spectral stats filter

2021-11-23 Thread Paul B Mahol
Signed-off-by: Paul B Mahol --- doc/filters.texi| 63 libavfilter/Makefile| 1 + libavfilter/af_aspectralstats.c | 605 libavfilter/allfilters.c| 1 + 4 files changed, 670 insertions(+) create mode 100644

Re: [FFmpeg-devel] [PATCH v4 3/4] avformat/imf: Demuxer implementation

2021-11-23 Thread Paul B Mahol
better use av_realloc_f ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-devel] [PATCH] avformat/concatdec: copy side data

2021-11-23 Thread Nicolas Gaullier
Fixes mpeg2video stream copy to mpeg muxer. Note: this is a following of 1ec86be79b11. Signed-off-by: Nicolas Gaullier --- libavformat/concatdec.c | 11 +++ tests/ref/fate/concat-demuxer-extended-lavf-mxf | 2 +-

[FFmpeg-devel] [PATCH v4 4/4] avformat/imf: Tests and build files

2021-11-23 Thread pal
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- Notes: Tests and build files for the IMF demuxer. MAINTAINERS | 1 + configure| 3 +- doc/demuxers.texi| 6 + libavformat/Makefile | 2 + libavformat/allformats.c | 1

[FFmpeg-devel] [PATCH v4 3/4] avformat/imf: Demuxer implementation

2021-11-23 Thread pal
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- Notes: Implements the IMF demuxer. libavformat/imfdec.c | 807 +++ 1 file changed, 807 insertions(+) create mode 100644 libavformat/imfdec.c diff --git a/libavformat/imfdec.c

[FFmpeg-devel] [PATCH v4 2/4] avformat/imf: CPL processor

2021-11-23 Thread pal
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- Notes: Implements IMF Composition Playlist (CPL) parsing. libavformat/imf_cpl.c | 716 ++ 1 file changed, 716 insertions(+) create mode 100644 libavformat/imf_cpl.c diff --git

[FFmpeg-devel] [PATCH v4 1/4] avformat/imf: Headers

2021-11-23 Thread pal
From: Pierre-Anthony Lemieux Signed-off-by: Pierre-Anthony Lemieux --- Notes: The IMF demuxer accepts as input an IMF CPL. The assets referenced by the CPL can be contained in multiple deliveries, each defined by an ASSETMAP file: ffmpeg -assetmaps ,,... -i If

Re: [FFmpeg-devel] [PATCH 3/4] avutil/hwcontext_vulkan: check if created before destroying the instance

2021-11-23 Thread Wu Jianhua
Dennis Mungai: > Sent: 2021年11月23日 22:58 > To: FFmpeg development discussions and patches > Cc: Wu Jianhua > Subject: Re: [FFmpeg-devel] [PATCH 3/4] avutil/hwcontext_vulkan: check if > created before destroying

Re: [FFmpeg-devel] [PATCH 4/4] avutil/hwcontext_vulkan: fully support customizable validation layers

2021-11-23 Thread Wu Jianhua
Lynne: > 23 Nov 2021, 12:03 by toq...@outlook.com: > >> Lynne: >> >23 Nov 2021, 10:48 by jianhua...@intel.com: >> >>Lynne: >> > From: ffmpeg-devel On Behalf Of > Lynne > Sent: Tuesday, November 23, 2021 5:23 PM > To: FFmpeg development discussions and patches

Re: [FFmpeg-devel] [PATCH 3/4] avutil/hwcontext_vulkan: check if created before destroying the instance

2021-11-23 Thread Dennis Mungai
On Tue, 23 Nov 2021, 12:06 Wu Jianhua, wrote: > Signed-off-by: Wu Jianhua > --- > libavutil/hwcontext_vulkan.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c > index 4ac1058181..644ed947f8 100644 > ---

Re: [FFmpeg-devel] [PATCH 4/4] avutil/hwcontext_vulkan: fully support customizable validation layers

2021-11-23 Thread Lynne
23 Nov 2021, 12:03 by toq...@outlook.com: > Lynne: > >23 Nov 2021, 10:48 by jianhua...@intel.com: > >>Lynne: > From: ffmpeg-devel On Behalf Of Lynne Sent: Tuesday, November 23, 2021 5:23 PM To: FFmpeg development discussions and patches >>> de...@ffmpeg.org> Subject: Re:

[FFmpeg-devel] [PATCH 2/2] avformat/mxf: add documentation for eia608_extract parameter

2021-11-23 Thread Marc-Antoine Arnaud
--- doc/demuxers.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/demuxers.texi b/doc/demuxers.texi index fecfeadb47..06f666b5f1 100644 --- a/doc/demuxers.texi +++ b/doc/demuxers.texi @@ -776,6 +776,9 @@ MXF demuxer. @table @option +@item -eia608_extract @var{bool} +Extract

[FFmpeg-devel] [PATCH 1/2] avformat/mxf: support MCA audio information

2021-11-23 Thread Marc-Antoine Arnaud
--- doc/demuxers.texi | 10 ++ libavformat/mxf.h | 1 + libavformat/mxfdec.c | 293 +- libavformat/version.h | 2 +- 4 files changed, 299 insertions(+), 7 deletions(-) diff --git a/doc/demuxers.texi b/doc/demuxers.texi index

[FFmpeg-devel] [PATCH v2] avformat/mov: add option max_stts_delta

2021-11-23 Thread Gyan Doshi
Very high stts sample deltas may occasionally be intended but usually they are written in error or used to store a negative value for dts correction when treated as signed 32-bit integers. This option lets the user set an upper limit, beyond which the delta is clamped to 1. Negative values of

[FFmpeg-devel] [PATCH] avformat/mov: add option max_stts_delta

2021-11-23 Thread Gyan Doshi
Very high stts sample deltas may occasionally be intended but usually they are written in error or used to store a negative value for dts correction when treated as signed 32-bit integers. This option lets the user set an upper limit, beyond which the delta is clamped to 1. Negative values of

Re: [FFmpeg-devel] [PATCH 4/4] avutil/hwcontext_vulkan: fully support customizable validation layers

2021-11-23 Thread Wu Jianhua
Lynne: >23 Nov 2021, 10:48 by jianhua...@intel.com: >>Lynne: >>> From: ffmpeg-devel On Behalf Of >>> Lynne >>> Sent: Tuesday, November 23, 2021 5:23 PM >>> To: FFmpeg development discussions and patches >> de...@ffmpeg.org> >>> Subject: Re: [FFmpeg-devel] [PATCH 4/4] avutil/hwcontext_vulkan:

Re: [FFmpeg-devel] [PATCH 2/4] avfilter: add AVFILTER_FLAG_META

2021-11-23 Thread Hendrik Leppkes
On Tue, Nov 23, 2021 at 11:31 AM Anton Khirnov wrote: > > This flag allows distinguishing between filters that actually modify the > data and those that only modify metadata or gather some stream > information. A "meta" filter has me associate it with other concepts, maybe spelling out

[FFmpeg-devel] [PATCH 2/4] avfilter: add AVFILTER_FLAG_META

2021-11-23 Thread Anton Khirnov
This flag allows distinguishing between filters that actually modify the data and those that only modify metadata or gather some stream information. --- doc/APIchanges | 3 +++ libavfilter/af_acopy.c | 1 + libavfilter/af_aformat.c | 1 + libavfilter/af_anull.c

[FFmpeg-devel] [PATCH 4/4] ffmpeg: only copy bits_per_sample from decoder when it remains valid

2021-11-23 Thread Anton Khirnov
I.e. when the only filters that are applied do not modify the frame data. --- fftools/ffmpeg.c| 14 +- fftools/ffmpeg.h| 3 +++ fftools/ffmpeg_filter.c | 26 ++ 3 files changed, 34 insertions(+), 9 deletions(-) diff --git a/fftools/ffmpeg.c

[FFmpeg-devel] [PATCH 3/4] ffmpeg: make -bits_per_raw_sample a per-output-stream option

2021-11-23 Thread Anton Khirnov
Also, document it and make it apply to audio in addition to video. --- doc/ffmpeg.texi | 7 +++ fftools/ffmpeg.c | 11 +++ fftools/ffmpeg.h | 3 +++ fftools/ffmpeg_opt.c | 11 +++ 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/doc/ffmpeg.texi

[FFmpeg-devel] [PATCH 1/4] lavfi/allfilters: move vf_chromaber_vulkan to video section

2021-11-23 Thread Anton Khirnov
--- libavfilter/allfilters.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/allfilters.c b/libavfilter/allfilters.c index 29da7ef0d2..8c8a56fd58 100644 --- a/libavfilter/allfilters.c +++ b/libavfilter/allfilters.c @@ -104,7 +104,6 @@ extern const AVFilter

Re: [FFmpeg-devel] [PATCH 4/4] avutil/hwcontext_vulkan: fully support customizable validation layers

2021-11-23 Thread Lynne
23 Nov 2021, 10:48 by jianhua...@intel.com: > > >> -Original Message- >> From: ffmpeg-devel On Behalf Of >> Lynne >> Sent: Tuesday, November 23, 2021 5:23 PM >> To: FFmpeg development discussions and patches > de...@ffmpeg.org> >> Subject: Re: [FFmpeg-devel] [PATCH 4/4]

Re: [FFmpeg-devel] [PATCH 4/4] avutil/hwcontext_vulkan: fully support customizable validation layers

2021-11-23 Thread Wu, Jianhua
> -Original Message- > From: ffmpeg-devel On Behalf Of > Lynne > Sent: Tuesday, November 23, 2021 5:23 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH 4/4] avutil/hwcontext_vulkan: fully > support customizable validation

Re: [FFmpeg-devel] [PATCH 4/4] avutil/hwcontext_vulkan: fully support customizable validation layers

2021-11-23 Thread Lynne
23 Nov 2021, 10:01 by jianhua...@intel.com: > Validation layer is an indispensable part of developing on Vulkan. > > The following commands is on how to enable validation layers: > > ffmpeg -init_hw_device > vulkan=0,debug=1,validation_layers=VK_LAYER_KHRONOS_validation+VK_LAYER_LUNARG_api_dump

[FFmpeg-devel] [PATCH 4/4] avutil/hwcontext_vulkan: fully support customizable validation layers

2021-11-23 Thread Wu Jianhua
Validation layer is an indispensable part of developing on Vulkan. The following commands is on how to enable validation layers: ffmpeg -init_hw_device vulkan=0,debug=1,validation_layers=VK_LAYER_KHRONOS_validation+VK_LAYER_LUNARG_api_dump Signed-off-by: Wu Jianhua ---

[FFmpeg-devel] [PATCH 3/4] avutil/hwcontext_vulkan: check if created before destroying the instance

2021-11-23 Thread Wu Jianhua
Signed-off-by: Wu Jianhua --- libavutil/hwcontext_vulkan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index 4ac1058181..644ed947f8 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c

[FFmpeg-devel] [PATCH 2/4] avutil/hwcontext_vulkan: check if created before destroying the device

2021-11-23 Thread Wu Jianhua
Signed-off-by: Wu Jianhua --- libavutil/hwcontext_vulkan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c index f1e750cd3e..4ac1058181 100644 --- a/libavutil/hwcontext_vulkan.c +++ b/libavutil/hwcontext_vulkan.c

[FFmpeg-devel] [PATCH 1/4] avutil/vulkan_functions: add EnumerateInstanceLayerProperties

2021-11-23 Thread Wu Jianhua
Signed-off-by: Wu Jianhua --- libavutil/vulkan_functions.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libavutil/vulkan_functions.h b/libavutil/vulkan_functions.h index 85a9f943c8..96922d7286 100644 --- a/libavutil/vulkan_functions.h +++ b/libavutil/vulkan_functions.h @@ -45,6 +45,7 @@