imageio / imageio-ffmpeg

FFMPEG wrapper for Python
BSD 2-Clause "Simplified" License
221 stars 50 forks source link

No such filter: 'yadif_cuda' #42

Open badjano opened 3 years ago

badjano commented 3 years ago

When I put this on my command line:

ffmpeg -i in.mkv -vf "hwupload_cuda,yadif_cuda=0:-1:0" -c:v h264_nvenc out.mp4

it works, but when I do this:

params = "-vf \"hwupload_cuda,yadif_cuda=0:-1:0\" -c:v h264_nvenc".split(" ")
stream = ffmpeg.read_frames(a, output_params=params)
meta = stream.__next__()
writer = ffmpeg.write_frames(out_file, meta["size"], output_params=params)

it tells me:

No such filter: 'yadif_cuda' No such filter: 'hwupload_cuda'

any chance I might be doing something stupid?

almarklein commented 3 years ago

That list of params will be subject to some shell escaping. Have you tried this:

params = ["-vf", "hwupload_cuda,yadif_cuda=0:-1:0", "-c:v", "h264_nvenc"]