[FFmpeg-devel] [PATCH] avfilter: add scale2ref_npp video filter
Roman Arzumanyan
rarzumanyan at nvidia.com
Mon Sep 13 12:07:39 EEST 2021
This patch adds scale2ref_npp video filter which is similar to scale2ref, but accelerated by NPP. CLI sample:
./ffmpeg \
-hwaccel cuda -hwaccel_output_format cuda \
-i ./bbb_sunflower_1080p_30fps_normal.mp4 \
-i ./920px-Wilber-huge-alpha.png \
-filter_complex "[0:v]scale_npp=format=yuv420p[v0];[1:v]hwupload_cuda[v1];[v1][v0]scale2ref_npp=w=oh*mdar:h=ih/4[foreg][backg];[backg][foreg]overlay_cuda=x=(main_w-overlay_w),scale_npp=w=1280:720[out]" \
-map "[out]" -c:v h264_nvenc -y ./output_overlay.mp4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-scale2ref_npp-filter-added.patch
Type: text/x-patch
Size: 22345 bytes
Desc: 0001-scale2ref_npp-filter-added.patch
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210913/1bf184e8/attachment.bin>
More information about the ffmpeg-devel
mailing list