Changes

Jump to navigation Jump to search
m
Line 107: Line 107:  
subprocess.run(f'ffmpeg -i "{inputFile}" -vcodec h264 -b:v 8M "{outputFile}"')
 
subprocess.run(f'ffmpeg -i "{inputFile}" -vcodec h264 -b:v 8M "{outputFile}"')
 
</syntaxhighlight >
 
</syntaxhighlight >
 +
The command within <code>subprocess.run()</code> is the same as you would type into the command line. You can use Python's string formatting to insert variables.
    
==See Also==  
 
==See Also==  
 
* [[Video Codecs]]
 
* [[Video Codecs]]

Navigation menu