Open badjano opened 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'
No such filter: 'yadif_cuda'
No such filter: 'hwupload_cuda'
any chance I might be doing something stupid?
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"]
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:
it tells me:
No such filter: 'yadif_cuda'
No such filter: 'hwupload_cuda'
any chance I might be doing something stupid?