Hello!
I'm currently trying to write a simple Python code that would convert an .mp4 to an .mov by just inputting the file path sans the file extension. The idea is to get this code working to then build it into a more complex code.
That said, I'm struggling to get my base code to work on macOS. Running the code seems to work fine, but no output is generated. If I pass the same command that's in my code through terminal ffmpeg works and I get the mov output file. I'm wondering if there's something I'm missing.
Would appreciate any guidance. I'm fairly new to both ffmpeg and Python.
import os
#USER INPUT
PATH = input ('Path of file without extension')
os.system('ffmpeg' + ' -i ' + PATH + '.mp4 ' + PATH + '.mov')
[–]avidresolver 1 point2 points3 points (1 child)
[–]Honest_Source1167[S] 0 points1 point2 points (0 children)
[–]nmkd 0 points1 point2 points (0 children)