开发者

Python video converter packages

开发者 https://www.devze.com 2023-01-28 08:35 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消