mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-03 01:33:50 +08:00
avfilter: add overlay vaapi filter
Overlay one video on the top of another. It takes two inputs and has one output. The first input is the "main" video on which the second input is overlaid. This filter requires same memory layout for all the inputs. An example command to use this filter to overlay overlay.mp4 at the top-left corner of the main.mp4: ffmpeg -init_hw_device vaapi=foo:/dev/dri/renderD128 \ -hwaccel vaapi -hwaccel_device foo -hwaccel_output_format vaapi -c:v h264 -i main.mp4 \ -hwaccel vaapi -hwaccel_device foo -hwaccel_output_format vaapi -c:v h264 -i overlay.mp4 \ -filter_complex "[0:v][1:v]overlay_vaapi=0:0:100💯0.5[t1]" \ -map "[t1]" -an -c:v h264_vaapi -y out_vaapi.mp4 Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Signed-off-by: Xinpeng Sun <xinpeng.sun@intel.com> Signed-off-by: Zachary Zhou <zachary.zhou@intel.com> Signed-off-by: Fei Wang <fei.w.wang@intel.com> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
committed by
Haihao Xiang
parent
dcc9454ab9
commit
516496069d
@@ -358,6 +358,7 @@ extern const AVFilter ff_vf_oscilloscope;
|
||||
extern const AVFilter ff_vf_overlay;
|
||||
extern const AVFilter ff_vf_overlay_opencl;
|
||||
extern const AVFilter ff_vf_overlay_qsv;
|
||||
extern const AVFilter ff_vf_overlay_vaapi;
|
||||
extern const AVFilter ff_vf_overlay_vulkan;
|
||||
extern const AVFilter ff_vf_overlay_cuda;
|
||||
extern const AVFilter ff_vf_owdenoise;
|
||||
|
||||
Reference in New Issue
Block a user