Get details from Video file

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
zimbot
Blank Cone
Blank Cone
Posts: 22
Joined: 14 Apr 2006 21:17

Get details from Video file

Postby zimbot » 13 Oct 2007 21:04

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

CloudStalker
Big Cone-huna
Big Cone-huna
Posts: 2581
Joined: 14 Jan 2007 19:00
VLC version: OVER 9000!!!
Operating System: It's...blue screen
Location: Heaven? No no. What's that other place that starts with an "H"? Oh yes: Home. ^_^

Re: Get details from Video file

Postby CloudStalker » 14 Oct 2007 18:11

While the video is playing press Ctrl-I. You can check the Meta data, Codec details, Statistics.

zimbot
Blank Cone
Blank Cone
Posts: 22
Joined: 14 Apr 2006 21:17

Re: Get details from Video file

Postby zimbot » 15 Oct 2007 14:24

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.

X-h
Blank Cone
Blank Cone
Posts: 25
Joined: 07 Sep 2007 10:52

Re: Get details from Video file

Postby X-h » 16 Oct 2007 14:29

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)

zimbot
Blank Cone
Blank Cone
Posts: 22
Joined: 14 Apr 2006 21:17

Re: Get details from Video file

Postby zimbot » 16 Oct 2007 15:14

crazy wow !!

that works!

I wonder if it works on both win and Linux ?

thanky Thanky :D


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 28 guests