[FFmpeg-devel] scale2ref throw segmentation fault if reference frame is HW (cuda)

Alex 3.14pi at ukr.net
Fri Oct 30 13:57:00 EET 2020


scale2ref video filter failed with message "segmentation fault".
Command to reproduce: 
I just want to scale watermark depending of size of the main video.

ffmpeg -init_hw_device cuda=cuda hwaccel cuda -hwaccel_output_format cuda -filter_hw_device cuda -i 720p.mp4 -ss 10 -t 10 -filter_complex scale_npp=1920:1080:force_original_aspect_ratio=1:format=yuv420p[scaled],movie=logo.png[watermark_in],[watermark_in][scaled]scale2ref=iw/2:ih/2[watermark_out][scaled_out],[watermark_out]hwupload[watermark_hw],[scaled_out][watermark_hw]overlay_cuda=x=0:y=0 -c:v h264_nvenc -an -y out.mp4


More information about the ffmpeg-devel mailing list