Log in

View Full Version : Getting accurate frame information about video?


Anakunda
4th February 2012, 11:45
HI! Is there a tool or library able to show quickly amount of frames of video and if possibly accurate video length too (including seconds and miliseconds)
I tried this: MediaInfo (only shows duration in h:mm format)
ffprobe, ffmpeg (only shows duration in h:mm:ss:tt format)

smok3
4th February 2012, 13:14
for frames try:

mediainfo "--Inform=Video;%FrameCount%" input

Selur
4th February 2012, 13:17
MediaInfo -full "Path to Input"
should show that an a lot of other options,..

Anakunda
4th February 2012, 13:32
I try the first syntax which gives duration in seconds, I rather need a frame count

The --full arg gives an exhaustive listing which contains Frame count also this is what I need.

I changed the 1st syntax to mediainfo "--Inform=Video;%FrameCount%" which finally shows what I needed, thanks.