[FFmpeg-devel] [PATCH, v3] MAINTAINERS: add myself as amfenc* maintainer

2022-11-04 Thread OvchinnikovDmitrii
Due to the lack of an active AMF maintainer at the moment, as well as plans to add the av1 encoder and other improvements of AMF, I added myself to the maintainers. Timely review and merging patches targeting AMF integration should improve support of AMD GPUs and APUs in FFmpeg. For the last

[FFmpeg-devel] [PATCH, v2] MAINTAINERS: add myself as amfenc* maintainer

2022-11-04 Thread OvchinnikovDmitrii
Due to the lack of an active AMF maintainer at the moment, as well as plans to add the av1 encoder and other improvements of AMF, I added myself to the maintainers. Timely review and merging patches targeting AMF integration should improve support of AMD GPUs and APUs in FFmpeg. For the last

[FFmpeg-devel] [PATCH] MAINTAINERS: add myself as amfenc* maintainer

2022-11-04 Thread OvchinnikovDmitrii
Due to the lack of an active AMF maintainer at the moment, as well as plans to add the av1 encoder and other improvements of AMF, I added myself to the maintainers. Timely review and merging patches targeting AMF integration should improve support of AMD dGPUs and APUs in FFmpeg For the last

[FFmpeg-devel] [crop support for matroska demuxer, V4 3/3] libavformat\matroskadec.c: crop support for matroska demuxer.

2022-11-04 Thread OvchinnikovDmitrii
In webm specification, it supports cropping information. (https://www.webmproject.org/docs/container/) In ffmpeg, the implementation of webm is a subset of matroska. In matroskadec.c, those cropping related four fields are forced to 0. for the sample file with crop (crop_bottom =8,

[FFmpeg-devel] [crop support for matroska demuxer, V4 2/3] libavcodec: Public code to support container crop

2022-11-04 Thread OvchinnikovDmitrii
Support both simple and receive_frame api The container crop information is applied additional to frame crop information --- libavcodec/codec_par.c | 30 ++- libavcodec/decode.c| 54 ++ 2 files changed, 73 insertions(+), 11

[FFmpeg-devel] [crop support for matroska demuxer, V4 1/3] libavcodec: Add crop related fields to structure AVCodecContext and AVCodecParameters.

2022-11-04 Thread OvchinnikovDmitrii
--- libavcodec/avcodec.h | 35 +++ libavcodec/codec_par.h | 8 libavcodec/options_table.h | 4 3 files changed, 47 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 3edd8e2636..57b340c24d 100644 ---

[FFmpeg-devel] [crop support for matroska demuxer, V3 3/3] libavformat\matroskadec.c: crop support for matroska demuxer.

2022-10-07 Thread OvchinnikovDmitrii
In webm specification, it supports cropping information. (https://www.webmproject.org/docs/container/) In ffmpeg, the implementation of webm is a subset of matroska. In matroskadec.c, those cropping related four fields are forced to 0. for the sample file with crop (crop_bottom =8,

[FFmpeg-devel] [crop support for matroska demuxer, V3 2/3] libavcodec: Public code to support container crop

2022-10-07 Thread OvchinnikovDmitrii
Support both simple and receive_frame api The container crop information is applied additional to frame crop information --- libavcodec/codec_par.c | 30 +++--- libavcodec/decode.c| 14 ++ 2 files changed, 33 insertions(+), 11 deletions(-) diff --git

[FFmpeg-devel] [crop support for matroska demuxer, V3 1/3] libavcodec: Add crop related fields to structure AVCodecContext and AVCodecParameters.

2022-10-07 Thread OvchinnikovDmitrii
--- libavcodec/avcodec.h | 35 +++ libavcodec/codec_par.h | 8 libavcodec/options_table.h | 4 3 files changed, 47 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7365eb5cc0..d28a7cc022 100644 ---

[FFmpeg-devel] [PATCH V2] lavc/libvpx: increase thread limit to 64

2022-10-06 Thread OvchinnikovDmitrii
This change improves the performance and multicore scalability of the vp9 codec for streaming single-pass encoded videos by taking advantage of up to 64 cores in the system. The current thread limit for ffmpeg codecs is 16 (MAX_AUTO_THREADS in pthread_internal.h) due to a limitation in H.264 codec

[FFmpeg-devel] [crop support for matroska demuxer 3/3] libavformat\matroskadec.c: crop support for matroska demuxer.

2022-10-01 Thread OvchinnikovDmitrii
In webm specification, it supports cropping information. (https://www.webmproject.org/docs/container/) In ffmpeg, the implementation of webm is a subset of matroska. In matroskadec.c, those cropping related four fields are forced to 0. for the sample file with crop (crop_bottom =8,

[FFmpeg-devel] [crop support for matroska demuxer 2/3] libavcodec: Public code to support container crop

2022-10-01 Thread OvchinnikovDmitrii
Support both simple and receive_frame api The container crop information is applied additional to frame crop information --- libavcodec/codec_par.c | 8 libavcodec/decode.c| 20 2 files changed, 28 insertions(+) diff --git a/libavcodec/codec_par.c

[FFmpeg-devel] [crop support for matroska demuxer 1/3] libavcodec: Add crop related fields to structure AVCodecContext and AVCodecParameters.

2022-10-01 Thread OvchinnikovDmitrii
--- libavcodec/avcodec.h | 8 libavcodec/codec_par.h | 8 2 files changed, 16 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 7365eb5cc0..66df571afc 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -585,6 +585,14 @@ typedef struct

[FFmpeg-devel] [PATCH] lavc/libvpx: increase thread limit to 64

2022-09-27 Thread OvchinnikovDmitrii
This change improves the performance and multicore scalability of the vp9 codec for streaming single-pass encoded videos by taking advantage of up to 64 cores in the system. The current thread limit for ffmpeg codecs is 16 (MAX_AUTO_THREADS in pthread_internal.h) due to a limitation in H.264

[FFmpeg-devel] [PATCH] libavformat\matroskadec.c: crop support for matroska demuxer.

2022-09-21 Thread OvchinnikovDmitrii
In webm specification, it supports cropping information. (https://www.webmproject.org/docs/container/) In ffmpeg, the implementation of webm is a subset of matroska. In matroskadec.c, those cropping related four fields are forced to 0. for the sample file with crop (crop_bottom =8,

[FFmpeg-devel] [avcodec/amfenc: 10 bit support v2 3/3] avcodec/amfenc: HDR metadata.

2022-09-07 Thread OvchinnikovDmitrii
From: nyanmisaka --- libavcodec/amfenc.c | 83 + 1 file changed, 83 insertions(+) diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c index efff9b5ae8..346f86bf00 100644 --- a/libavcodec/amfenc.c +++ b/libavcodec/amfenc.c @@ -36,6 +36,57 @@

[FFmpeg-devel] [avcodec/amfenc: 10 bit support v2 2/3] avcodec/amfenc: Fixes the color information in the output.

2022-09-07 Thread OvchinnikovDmitrii
From: Michael Fabian 'Xaymar' Dirks added 10 bit support for amf hevc. before: command - ffmpeg.exe -hide_banner -y -hwaccel d3d11va -hwaccel_output_format d3d11 -i test_10bit_file.mkv -an -c:v h264_amf res.dx11_hw_h264.mkv output - Format of input frames context (p010le) is not supported

[FFmpeg-devel] [avcodec/amfenc: 10 bit support v2 1/3] amf: Update the min version to 1.4.23.0 for AMF SDK.

2022-09-07 Thread OvchinnikovDmitrii
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 9e51abd0d3..a644e17c95 100755 --- a/configure +++ b/configure @@ -7038,7 +7038,7 @@ fi enabled amf && check_cpp_condition amf "AMF/core/Version.h" \ -"(AMF_VERSION_MAJOR

[FFmpeg-devel] [avcodec/amfenc: 10 bit support 3/3] avcodec/amfenc: HDR metadata.

2022-07-05 Thread OvchinnikovDmitrii
From: nyanmisaka --- libavcodec/amfenc.c | 83 + 1 file changed, 83 insertions(+) diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c index 5c38a29df1..d3edbb04b6 100644 --- a/libavcodec/amfenc.c +++ b/libavcodec/amfenc.c @@ -36,6 +36,57 @@

[FFmpeg-devel] [avcodec/amfenc: 10 bit support 2/3] avcodec/amfenc: Fixes the color information in the output.

2022-07-05 Thread OvchinnikovDmitrii
From: Michael Fabian 'Xaymar' Dirks added 10 bit support for amf hevc. before: command - ffmpeg.exe -hide_banner -y -hwaccel d3d11va -hwaccel_output_format d3d11 -i test_10bit_file.mkv -an -c:v h264_amf res.dx11_hw_h264.mkv output - Format of input frames context (p010le) is not supported

[FFmpeg-devel] [avcodec/amfenc: 10 bit support 1/3] Update the min version to 1.4.23.0 for AMF SDK.

2022-07-05 Thread OvchinnikovDmitrii
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index fea512e8ef..29d60efad6 100755 --- a/configure +++ b/configure @@ -6988,7 +6988,7 @@ fi enabled amf && check_cpp_condition amf "AMF/core/Version.h" \ -"(AMF_VERSION_MAJOR

[FFmpeg-devel] [PATCH 4/5] lavu/hwcontext_amf: Engine selection support for AMF context

2020-10-14 Thread OvchinnikovDmitrii
--- libavcodec/amfenc.c | 9 +++- libavcodec/amfenc.h | 1 + libavcodec/amfenc_h264.c | 8 +++ libavcodec/amfenc_hevc.c | 8 +++ libavutil/hwcontext_amf.c | 104 ++ libavutil/hwcontext_amf.h | 7 +++ 6 files changed, 116 insertions(+),

[FFmpeg-devel] [PATCH 5/5] lavf/vf_scale_amf: AMF scaler/format converter filter

2020-10-14 Thread OvchinnikovDmitrii
From: Alexander Kravchenko --- configure | 1 + libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_scale_amf.c | 623 + 4 files changed, 626 insertions(+) create mode 100644 libavfilter/vf_scale_amf.c

[FFmpeg-devel] [PATCH 2/5] lavu/hwcontext_amf: HWContext for AMF based components

2020-10-14 Thread OvchinnikovDmitrii
From: Alexander Kravchenko --- libavutil/Makefile | 2 + libavutil/hwcontext.c | 4 + libavutil/hwcontext.h | 1 + libavutil/hwcontext_amf.c | 284 + libavutil/hwcontext_amf.h | 54 +++

[FFmpeg-devel] [PATCH 2/2] libavcodec/amfenc_hevc.c: Fix Maximum Reference Frames option on AMF HEVC.

2020-02-03 Thread OvchinnikovDmitrii
From: Sitan Liu --- libavcodec/amfenc_hevc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c index 411d444a62..77e57d2461 100644 --- a/libavcodec/amfenc_hevc.c +++ b/libavcodec/amfenc_hevc.c @@ -144,7 +144,7 @@ static

[FFmpeg-devel] [PATCH 1/2] libavcodec/amfenc_hevc.c: Fix Profile level option on AMF HEVC.

2020-02-03 Thread OvchinnikovDmitrii
From: Sitan Liu --- libavcodec/amfenc_hevc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c index 8b4d289fac..411d444a62 100644 --- a/libavcodec/amfenc_hevc.c +++ b/libavcodec/amfenc_hevc.c @@ -136,7 +136,7 @@ static

[FFmpeg-devel] [PATCH 1/2] libavcodec/amfenc_hevc.c: Fix constant QP settings for I, P

2020-01-28 Thread OvchinnikovDmitrii
--- libavcodec/amfenc_hevc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c index 7c9a33ab33..8b4d289fac 100644 --- a/libavcodec/amfenc_hevc.c +++ b/libavcodec/amfenc_hevc.c @@ -254,10 +254,10 @@ static av_cold int

[FFmpeg-devel] [PATCH 2/2] libavcodec/amfenc_hevc.c: Fix Profile level option on AMF HEVC.

2020-01-28 Thread OvchinnikovDmitrii
Patch was made by Sitan Liu The same code already exists in amfenc_h264.c --- libavcodec/amfenc_hevc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c index 8b4d289fac..77e57d2461 100644 --- a/libavcodec/amfenc_hevc.c

[FFmpeg-devel] [PATCH] libavcodec/amfenc_hevc.c: Fix constant QP settings for I, P pictures.

2019-11-21 Thread OvchinnikovDmitrii
--- libavcodec/amfenc_hevc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c index 7c9a33ab33..8b4d289fac 100644 --- a/libavcodec/amfenc_hevc.c +++ b/libavcodec/amfenc_hevc.c @@ -254,10 +254,10 @@ static av_cold int

[FFmpeg-devel] [PATCH] libavcodec/amfenc_hevc.c: Fix Profile level option on AMF HEVC.

2019-11-14 Thread OvchinnikovDmitrii
Patch proposed by Sitan Liu --- libavcodec/amfenc_hevc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/amfenc_hevc.c b/libavcodec/amfenc_hevc.c index 7c9a33ab33..a9ccab168c 100644 --- a/libavcodec/amfenc_hevc.c +++ b/libavcodec/amfenc_hevc.c @@ -136,7 +136,7

[FFmpeg-devel] [PATCH] libavcodec/amfenc.h: Added engine selection support for AMFContext initialisation.

2019-10-29 Thread OvchinnikovDmitrii
--- libavcodec/amfenc.c | 93 +++- libavcodec/amfenc.h | 8 libavcodec/amfenc_h264.c | 6 +++ libavcodec/amfenc_hevc.c | 6 +++ 4 files changed, 93 insertions(+), 20 deletions(-) diff --git a/libavcodec/amfenc.c b/libavcodec/amfenc.c index

[FFmpeg-devel] [PATCH] libavcodec/amfenc_h264.c: Changed loop filter flag default value.

2019-10-11 Thread OvchinnikovDmitrii
The value has been changed to match the recommended(by AMF Encoder team) --- libavcodec/amfenc_h264.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/amfenc_h264.c b/libavcodec/amfenc_h264.c index 2c082e93bd..7f2817f115 100644 --- a/libavcodec/amfenc_h264.c +++

[FFmpeg-devel] [PATCH v2] libavcodec/amfenc: Vulkan initialization support for encoder.

2019-08-08 Thread OvchinnikovDmitrii
Added linux support for amf encoder through vulkan. To use h.264(AMD VCE) encoder on linux amdgru-pro version 19.20+ and amf-amdgpu-pro package(amdgru-pro contains, but does not install automatically) are required. This driver can be installed using amdgpu-pro-install script in official amd

[FFmpeg-devel] [PATCH v2] libavcodec/amfenc: Vulkan initialization support for encoder.

2019-07-16 Thread OvchinnikovDmitrii
Added linux support for amf encoder through vulkan. To use h.264(AMD VCE) encoder on linux amdgru-pro version 19.20+ and amf-amdgpu-pro package(amdgru-pro contains, but does not install automatically) are required. This driver can be installed using amdgpu-pro-install script in official amd

[FFmpeg-devel] [PATCH] AMF: Vulkan initialization support for encoder.

2019-06-19 Thread OvchinnikovDmitrii
Added linux support for amf encoder through vulkan. To use h.264(AMD VCE) encoder on linux amdgru-pro version 19.20+ and amf-amdgpu-pro package(amdgru-pro contains, but does not install automatically) are required. Initialization of amf encoder occurs in this order: 1) trying to initialize