Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
FFmpeg
(view source)
Revision as of 18:19, 20 March 2024
162 bytes added
,
20 March
m
→Python
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]]
E.vandenberge
Bureaucrats
,
Administrators
1,344
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Help
About
About the TSG
About this Wiki
FAQ
Disclaimer
Survey
Customer Survey
Tools
Special pages
Printable version