Any Packages out there on python which takes a input of a particular video format and convert it to another format 开发者_运维技巧
PyFFmpeg. It's a wrapper around FFmpeg.
Or use subprocess
and call your favourite video format conversion program.
>>> import subprocess
>>> command = ['ffmpeg']
>>> subprocess.call(command)
To call ffmpeg
with your own command which includes the details required, just extend the command
list.
Perhaps this is what you're looking for: http://pymedia.org/features.html
However, it's also possible to simply control the ffmpeg / x264 programs using the subprocess module, that's how I did it
精彩评论