[MPlayer-users] Printing movie properties

D Richard Felker III dalias at aerifal.cx
Fri Jan 23 18:47:50 CET 2004


On Fri, Jan 23, 2004 at 06:08:16PM +0100, Kristian Eide wrote:
> Is it possible to get mplayer to print out the properties (like resolution, 
> codec name, length, etc.) of a supported movie file to the console? I want to 
> collect this information for a number of movie files and it would be very 
> useful if I could have a small script simply call mplayer and parse its output 

Use -identify -frames 0

> (and even better if the mplayer binary didn't have any X dependency).

It of course never needs X to be running. If you mean no dependency on
the X libs, then compile without X support.

Rich




More information about the MPlayer-users mailing list