I have the following code
pathToFile = "R:\T2 Output\12345--01--Some File 1--ABCD.mp4"
process = subprocess.Popen(['ffprobe.exe', '-show_streams', '"'+pathToFile+'"'],
shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
I get the error:
[Error 2] The system cannot find the file specified
What I have tried:
Things of note:
I'm sure I'm missing something simple. Can anyone point me in the right direction? I've done quite a lot of searching on this site and others and trying suggestions.
The \
symbol counts as an escape character in python, use r
to turn that off:
pathToFile = r"R:\T2 Output\12345--01--Some File 1--ABCD.mp4"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With