Page 1 of 1

Get details from Video file

Posted: 13 Oct 2007 21:04
by zimbot
Friends,

i would like to be able to get some params from a video file.
such as frame size and datarate
i would need to do this via command line.

I tried using using ffmpeg where you do : -i and a file name without an output > into a text file
but It will not output to a text file..

What i wish to do is "qualify" a video as having a datarate above X , so i need to know hat the datarate of a given file is...
And I wish to do this without actually playing the file.
I wish to .."reach in " and look at the "goods" and is so then do something...

Can anyone help me out with that?

thanks _ Much!

zimbot

Re: Get details from Video file

Posted: 14 Oct 2007 18:11
by CloudStalker
While the video is playing press Ctrl-I. You can check the Meta data, Codec details, Statistics.

Re: Get details from Video file

Posted: 15 Oct 2007 14:24
by zimbot
Yes,
But what i wish to do is have a command line means...
something i can call from a script
get some specs from the file ( ie; frame size, datarate )
and then , based on findings - do something or something else.

Re: Get details from Video file

Posted: 16 Oct 2007 14:29
by X-h
I tried using using ffmpeg where you do : -i and a file name without an output > into a text file
but It will not output to a text file..
use

Code: Select all

ffmpeg -i <videofile> 2> <textfile>
It's because ffmpeg use the error output (2) instead of standard output (1)

Re: Get details from Video file

Posted: 16 Oct 2007 15:14
by zimbot
crazy wow !!

that works!

I wonder if it works on both win and Linux ?

thanky Thanky :D