windows 10 python 3.7 ffmpeg unknown
command = f'ffmpeg -i "{file_path}" -vf crop={Xl}:{Yl}:{Xs}:{Ys} "{out_path}"'
subprocess.call([command], shell=True)
I'm trying to execute a command to crop a video file. But the error message is ...
The system cannot find the path specified.
However, the file still exists, and when I print (command)
and run it at the command prompt, it succeeds.
command = f'ffmpeg -i "{file_path}" -vf crop={Xl}:{Yl}:{Xs}:{Ys} "{out_path}"'
subprocess.call(command, shell=True)
It was fixed
I was addicted to this for about 2 hours, so ...
Recommended Posts