ffmpeg
2017-12-13 本文已影响0人
梁新彦
安装
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."