[FFmpeg-devel] [PATCH] libavcodec/cuviddec A53CC closed captions support added to cuviddec & nvenc

2018-05-03 Thread Roman Arzumanyan
-- BR, Roman Arzumanyan --- This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited

[FFmpeg-devel] [PATCH] libavfilter : cuda linkage changed for vf_scale_cuda & vf_thumbnail_cuda

2018-02-13 Thread Roman Arzumanyan
Please find attached the patch that introduces structure to store CUDA function pointers to be used within scale & thumbnail filters. -- BR, Roman Arzumanyan --- This email message is for the sole

[FFmpeg-devel] [PATCH] avfilter/vf_transpose adding NPP transpose filter

2018-08-30 Thread Roman Arzumanyan
Hello, This patch adds NPP transpose filter. Cmd example: ffmpeg.exe -hwaccel cuvid -c:v h264_cuvid -i input.mp4 -vf transpose_npp="t=3" -c:v h264_nvenc -y output_transpose_npp.mp4 Supported values: t=0 no transpose t=1 90 deg clockwise t=2 180 deg clockwise t=3 270 deg clockwise --

[FFmpeg-devel] [PATCH] avfilter/vf_transpose_npp: adding NV12 support to transpose_npp filter

2018-11-02 Thread Roman Arzumanyan
Hello, This patch adds NV12 support to vf_transpose_npp filter. Now filter can be used in nvdec -> nvenc transcoding scenarios like this: ffmpeg -hwaccel cuvid -c:v h264_cuvid -i input.h264 -c:v h264_nvenc -vf transpose_npp="dir=clock" -y output.h264 -- BR, Rom

Re: [FFmpeg-devel] [PATCH] avfilter/vf_transpose adding NPP transpose filter

2018-09-04 Thread Roman Arzumanyan
eler Sent: Monday, September 3, 2018 1:43 PM To: FFmpeg development discussions and patches ; Roman Arzumanyan Cc: Yogender Gupta Subject: Re: [FFmpeg-devel] [PATCH] avfilter/vf_transpose adding NPP transpose filter Minus the missing configure dependency, documentation entry and minor bump,

[FFmpeg-devel] [PATCH 2/2] libavcodec/cuviddec: adding HEVC YUV444P decoding support

2019-02-13 Thread Roman Arzumanyan
Hello, Please find attached patch, it adds HEVC YUV444P decoding support. Supported formats are AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUV444P10LE, AV_PIX_FMT_YUV444P12LE. This feature requires Video Codec SDK 9. -- BR, Roman Arzumanyan

[FFmpeg-devel] [PATCH] nv-codec-headers: Video Codec SDK 9 support

2019-02-13 Thread Roman Arzumanyan
Hello, Please find attached patch for nv-codec-headers. It adds Video Codec SDK 9 support. -- BR, Roman Arzumanyan --- This email message is for the sole use of the intended recipient(s) and may contain

[FFmpeg-devel] [PATCH 1/2] libavcodec/nvenc_hevc: adding B frame support

2019-02-13 Thread Roman Arzumanyan
Hello, Please find attached patch, it adds HEVC B-frames support to nvenc_hevc. This feature requires Video Codec SDK 9 + Turing card. -- BR, Roman Arzumanyan --- This email message is for the sole use

[FFmpeg-devel] [PATCH] avcodec/nvenc: multiple reference frames support

2019-09-27 Thread Roman Arzumanyan
nce frames will be determined by encoder, but it will not exceed value of "nb_ref_frames" option. -- BR, Roman Arzumanyan --- This email message is for the sole use of the intended recipient(s) and may

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: multiple reference frames support

2019-09-27 Thread Roman Arzumanyan
nt: Friday, September 27, 2019 12:56 PM To: FFmpeg development discussions and patches ; Roman Arzumanyan Cc: Yogender Gupta Subject: Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: multiple reference frames support On 27/09/2019 11:04, Roman Arzumanyan wrote: > Hello, > > This patch adds multip

[FFmpeg-devel] [PATCH] avcodec/nvenc: set average and max bitrate values to zero when in CQ rate control mode

2020-05-18 Thread Roman Arzumanyan
h264_nvenc -preset medium \ -cq 10 -y output_cq10.mp4 Before the patch, both output_cq30.mp4 and output_cq10.mp4 were of same size. After the patch, output_cq10.mp4 file has higher quality and bigger size. -- BR, Roman Arzumanyan

[FFmpeg-devel] [PATCH] libavcodec/cuviddec AV1 decoding support for Ampere cards

2020-10-15 Thread Roman Arzumanyan
Hello, This patch adds AV1 decoding support for av1_cuvid stand-alone decoder. It requires Ampere GPU. -- BR, Roman Arzumanyan 0001-AV1-nvcuvid-support.patch Description: 0001-AV1-nvcuvid-support.patch ___ ffmpeg-devel mailing list ffmpeg-devel

[FFmpeg-devel] [PATCH] avcodec/nvenc: Video Codec SDK 10 features support

2020-06-30 Thread Roman Arzumanyan
Hello, This patch adds Video Codec SDK 10 features support: * Presets and tuning info * Multipass encode modes * Low Delay Key Frame Scale 0001-Adding-SDK10-features-support.patch Description: 0001-Adding-SDK10-features-support.patch ___

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: Video Codec SDK 10 features support

2020-06-30 Thread Roman Arzumanyan
ground. От: Soft Works Отправлено: 30 июня 2020 г. 17:35 Кому: FFmpeg development discussions and patches ; Roman Arzumanyan Копия: Yogender Gupta Тема: RE: [FFmpeg-devel] [PATCH] avcodec/nvenc: Video Codec SDK 10 features support External email: Use caution opening

[FFmpeg-devel] [PATCH] avcodec/nvenc: maxBitrate is honored in CQ mode if set by user

2020-06-04 Thread Roman Arzumanyan
This fixes bug in my previous patch which was discarding maxBitrate. CQ mode shall honor maxBitrate value if it's set by user via CLI. How to check: ./ffmpeg.exe \ -i big_buck_bunny_1080p_h264.mov \ -c:v h264_nvenc \ -cq 10 \ -maxrate 10M \ -y output_cq10_10M.mp4 -- BR, Roman

[FFmpeg-devel] [PATCH] avfilter: add scale2ref_npp video filter

2021-09-13 Thread Roman Arzumanyan
7 00:00:00 2001 From: Roman Arzumanyan Date: Mon, 6 Sep 2021 15:25:51 +0300 Subject: [PATCH] scale2ref_npp filter added --- libavfilter/allfilters.c | 1 + libavfilter/vf_scale_npp.c | 531 +++-- 2 files changed, 509 insertions(+), 23 deletions(-) diff

[FFmpeg-devel] [PATCH] avfilter: add sharpen_npp video filter

2021-09-13 Thread Roman Arzumanyan
2001 From: Roman Arzumanyan Date: Mon, 6 Sep 2021 14:26:27 +0300 Subject: [PATCH] sharpen_npp video filter added --- configure| 5 +- libavfilter/Makefile | 1 + libavfilter/allfilters.c | 1 + libavfilter/vf_sharpen_npp.c | 530

[FFmpeg-devel] [PATCH] libavcodec/nvenc.c: copy incoming hwaccel frames instead of ref count increase

2021-09-28 Thread Roman Arzumanyan
noticeable difference in transcoding performance. From c95adcf7d5f5dd787eaa80fa4643e7868f85848e Mon Sep 17 00:00:00 2001 From: Roman Arzumanyan Date: Tue, 14 Sep 2021 14:03:24 +0300 Subject: [PATCH] nvenc: copy incoming HW frame instead of referencing --- libavcodec/nvenc.c | 5 + 1 file

Re: [FFmpeg-devel] [PATCH] libavcodec/nvenc.c: copy incoming hwaccel frames instead of ref count increase

2021-09-28 Thread Roman Arzumanyan
This is a good point, let me check and come back later. От: Timo Rothenpieler Отправлено: 28 сентября 2021 г. 21:28 Кому: FFmpeg development discussions and patches ; Roman Arzumanyan Копия: Yogender Gupta ; Ricardo Monteiro Тема: Re: [FFmpeg-devel] [PATCH

Re: [FFmpeg-devel] [PATCH] libavcodec/nvenc.c: copy incoming hwaccel frames instead of ref count increase

2021-09-28 Thread Roman Arzumanyan
approach is obviously safer and illustrates better API usage. От: Timo Rothenpieler Отправлено: Вторник, 28 сентября, 2021 22:11 Кому: FFmpeg development discussions and patches; Roman Arzumanyan Копия: Yogender Gupta; Ricardo Monteiro Тема: Re: [FFmpeg-devel] [PATCH

Re: [FFmpeg-devel] [PATCH] avfilter: add sharpen_npp video filter

2021-09-30 Thread Roman Arzumanyan
Thanks for review, Timo. Please find revised patch attached. (de)interlacing is now removed, doc entry was added as well. От: Timo Rothenpieler Отправлено: 28 сентября 2021 г. 22:58 Кому: FFmpeg development discussions and patches ; Roman Arzumanyan Копия

Re: [FFmpeg-devel] [PATCH] avfilter: add scale2ref_npp video filter

2021-10-04 Thread Roman Arzumanyan
discussions and patches ; Roman Arzumanyan Копия: Yogender Gupta ; Ricardo Monteiro Тема: Re: [FFmpeg-devel] [PATCH] avfilter: add scale2ref_npp video filter External email: Use caution opening links or attachments From c8a7fa9c564049ca48a95b0fb315dc904e84a4b0 Mon Sep 17 00:00:00 2001 From: Roman

Re: [FFmpeg-devel] next release

2021-10-06 Thread Roman Arzumanyan
LTS releases would be a superb option for corporate FFMpeg users. От: ffmpeg-devel от имени Michael Niedermayer Отправлено: 6 октября 2021 г. 12:57 Кому: FFmpeg development discussions and patches Тема: [FFmpeg-devel] next release External email: Use caution

Re: [FFmpeg-devel] [PATCH] avfilter: add scale2ref_npp video filter

2021-10-04 Thread Roman Arzumanyan
] [PATCH] avfilter: add scale2ref_npp video filter External email: Use caution opening links or attachments Roman Arzumanyan: > Thanks for the review, Timo. > > Please find revised patch attached. > Docstring was added, trailing spaces removed, commit message brushed up. > Avfilter min

Re: [FFmpeg-devel] [PATCH] avfilter: add scale2ref_npp video filter

2021-10-04 Thread Roman Arzumanyan
nal email: Use caution opening links or attachments Roman Arzumanyan: > Thanks for the review, Timo. > > Please find revised patch attached. > Docstring was added, trailing spaces removed, commit message brushed up. > Avfilter minor version bump added. This has lots of duplication

[FFmpeg-devel] [PATCH 2/2] libavutil/hwcontect_cuda: add option to use current CUDA context

2023-09-14 Thread Roman Arzumanyan
Hello, This is the second patch of the group which adds the option to use CUDA context current to calling thread. It simplifies the usage of ffmpeg libraries in applications which rely on CUDA runtime API. Example: AVDictionary *opts = NULL; AVBufferRef *hwDeviceCtx; av_dict_set(,

[FFmpeg-devel] [PATCH 1/2] nvcodec-headers: add cuCtxGetCurrent function

2023-09-14 Thread Roman Arzumanyan
Hello, This patch adds cuCtxGetCurrent function to nvcodec-headers repo. Second patch of the group which adds FFmpeg option to use current CUDA context depends on this. 0001-Add-cuCtxGetCurrent-function.patch Description: Binary data ___ ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 2/2] libavutil/hwcontect_cuda: add option to use current CUDA context

2023-09-14 Thread Roman Arzumanyan
Thanks for the swift reply Timo, you're right about versioning. However, I didn't find any existing CUDA API versioning macro unlike that for Video Codec SDK API. So I basically did the same thing as that in previous commit to nvcodec-headers which barely adds new function pointer... Anyway, I

Re: [FFmpeg-devel] [PATCH 2/2] libavutil/hwcontect_cuda: add option to use current CUDA context

2023-09-14 Thread Roman Arzumanyan
nfig ffnvcodec "ffnvcodec >= 8.1.24.14 ffnvcodec < 8.2" "$ffnv_hdr_list" "" fi To me it looks like any ffnvcodec package of version in range between 8.1.24.14 and 12.1.14.0 will pass this check. чт, 14 сент. 2023 г. в 18:04, Timo Rothenpieler : >

[FFmpeg-devel] [PATCH] libavutil/hwcontext_cuda: fix bug in cuda_device_uninit

2023-09-29 Thread Roman Arzumanyan
Hello, In my previous patch which introduced the AV_CUDA_USE_CURRENT_CONTEXT feature I unintentionally made a mistake of not checking this flag when uninitializing the CUDA. It was causing cuda_device_uninit() function to destroy the CUDA context it didn't create. So far it only reproduces under

Re: [FFmpeg-devel] [PATCH 2/2] libavutil/hwcontect_cuda: add option to use current CUDA context

2023-09-19 Thread Roman Arzumanyan
Hello, Any updates on this patch? чт, 14 сент. 2023 г. в 19:52, Roman Arzumanyan : > Got it, thanks. > Please find the patches in attachment. > > Just for my own understanding - could you please explain how this magic > works in the configure script? I mean this section: &g

[FFmpeg-devel] [PATCH] libavfilter/vf_colorrange_cuda: CUDA-accelerated video filter for MPEG and JPEG color range conversions

2022-09-10 Thread Roman Arzumanyan
From 2b15d8a609a12d97b1ba7500c7f8771b336e2fdf Mon Sep 17 00:00:00 2001 From: Roman Arzumanyan Date: Sat, 10 Sep 2022 11:05:56 +0300 Subject: [PATCH] libavfilter/vf_colorrange_cuda CUDA-accelerated color range conversion filter --- configure | 2 + libavfilter/Makefile

Re: [FFmpeg-devel] [PATCH] libavfilter/vf_colorrange_cuda: CUDA-accelerated video filter for MPEG and JPEG color range conversions

2022-09-11 Thread Roman Arzumanyan
Thanks for the detailed review, Timo. Please find fixed patch in attachement. От: ffmpeg-devel от имени Timo Rothenpieler Отправлено: 10 сентября 2022 г. 16:16 Кому: FFmpeg development discussions and patches ; Roman Arzumanyan Копия: Yogender Gupta ; Sven

[FFmpeg-devel] [PATCH] avcodec/cuviddec: update amount of decoder surfaces from within sequence decode callback

2023-06-05 Thread Roman Arzumanyan
18d4583750ef250a78d9 Mon Sep 17 00:00:00 2001 From: Roman Arzumanyan Date: Thu, 1 Jun 2023 11:17:39 +0300 Subject: [PATCH] libavcodec/cuviddec: determine DPB size from within cuvid parser --- libavcodec/cuviddec.c | 29 +++-- 1 file changed, 27 insertions(+), 2 dele

Re: [FFmpeg-devel] [PATCH] avcodec/cuviddec: update amount of decoder surfaces from within sequence decode callback

2023-06-05 Thread Roman Arzumanyan
ior intact. Do I miss something? пн, 5 июн. 2023 г. в 13:19, Anton Khirnov : > Quoting Roman Arzumanyan (2023-06-05 09:30:07) > > Hello, > > > > This patch reduces vRAM usage by cuvid decoder implementation. > > The number of surfaces used for decoding is updated within th

Re: [FFmpeg-devel] [RFC] 5 year plan & Inovation

2024-04-18 Thread Roman Arzumanyan
Hello world, > [your idea here] Fully async API which provides a means to receive a notification when a frame is decoded / processed by filter etc. Be it a callback, conditional variable etc. чт, 18 апр. 2024 г. в 12:22, : > > > On 18 Apr 2024, at 10:46, Stefano Sabatini wrote: > > > On date

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: High bit depth encoding for HEVC

2024-04-18 Thread Roman Arzumanyan
Hi Diego, Asking for my own education. As far as you've explained, the 8 > 10 bit conversion happens within the driver, that's understandable. But how does it influence the output? Does it perform some sort of proprietary SDR > HDR conversion under the hood that maps the ranges? What's gonna be

Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: High bit depth encoding for HEVC

2024-04-19 Thread Roman Arzumanyan
cases, it doesn't look more tempting than, say, a similar 8>10 bit NPP up-conversion which shall yield the same (presumably SoL) performance. чт, 18 апр. 2024 г. в 16:32, Timo Rothenpieler : > On 18/04/2024 14:29, Roman Arzumanyan wrote: > > Hi Diego, > > Asking for my own education.