Hi i am currently having this python code :
import subprocess
import shlex
cmd = "ffmpeg -v error -i 3.mp4 -f null - 2>error.log"
new_cmd = shlex.split(cmd)
subprocess_cmd = subprocess.list2cmdline(new_cmd)
print(subprocess_cmd)
subprocess.call(new_cmd)
The issue is when i run the code i get the following error:
[NULL @ 0x555594682920] Unable to find a suitable output format for '2>error.log' 2>error.log: Invalid argument
Can anyone please help with this!