安装
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."
网友评论