I'm using subprocess.run() that uses an argument that references a file as "./0.mkv"
It tells me it cannot find the file "./0.mkv", do I need to reference the entire path or is there a way to make ./
refer correctly?
Or maybe it's something else entirely, I'm not sure.
This is the actual code:
temp_file_path = "./0.mkv"
final_file_path = "./0hardsubs.mkv"
cmd = ['ffmpeg', '-i', f'"{temp_file_path}"', \
'-filter_complex', f'"subtitles=\'{temp_file_path}\'"', \
f'"{final_file_path}"', '-y', '-loglevel', 'warning', '-stats']
subprocess.run(cmd)
This is the output:
"./0.mkv": No such file or directory