ffmpeg

2017-12-13  本文已影响0人  梁新彦

使用ffmpeg合并MP4文件

安装

windows安装 doc

brew install ffmpeg #on Mac
apt-get install ffmpeg #on Linux

ffprobe

Wrapper around ffprobe command to extract metadata from media files

pip install ffprobe
#!/usr/bin/env python
from ffprobe import FFProbe
metadata=FFProbe("test-media-file.mov")
for stream in metadata.streams:
    if stream.isVideo():
            print "Stream contains "+stream.frames()+" frames."
上一篇下一篇

猜你喜欢

热点阅读