[FFmpeg-user] How to analyze video files?
stefasab at gmail.com
Sat Jul 28 14:45:00 CEST 2012
On date Saturday 2012-07-28 05:33:49 -0700, JIA Pei encoded:
> Hi, all:
> Again, I'd love to ask this question.
> It's convenient for me to encode a video file from multiple .jpg files, for
> [code]$ ffmpeg -i %3d.jpg video.mpg[/code]
> However, how can I use ffmpeg command (or other commands) to analyse how
> many frames in such a .mpg file? It may have something to do with how I
> encode (for example, the framerate, etc.), right? But, the default encoding
> shouldn't change the number of frames in such a encoded .mpg file, right?
> Anyway, can anybody please help how I can analyse a video file ---- how
> many frames (better, both audio and video streams) in such a video file?
Check ffprobe -count_frames -show_frames.
ffmpeg-user random tip #2
The -y option will force the overwrite of the output, without to prompt you
for your confirmation. Example:
ffmpeg -i movie.avi -y movie.mp4
More information about the ffmpeg-user