[MPlayer-users] getting info from video files

gabor gabor at z10n.net
Fri Dec 12 12:21:11 CET 2003


On Fri, 2003-12-12 at 12:17, Kevin Eilers wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> hi!
> 
> i'm looking for a program that extracts information about resolution,
> audiocodec etc. from video files, because i'm trying to write a script that
> automates the startup of mplayer and changes the aspect ratio to fit my widescreen
> tv, removes black bars from badly encoded videos and activates ac3-output if
> the file contains an ac3-stream. i found avinfo, ogminfo and some program for
> mpegs, but it would be much better if there was one program for all formats.
> i know theres getid3() but i don't want to install php for this only reason.
> but there is a program, which can do it: it's mplayer itself. is there any
> possibility of starting mplayer, getting the fileinfo, and then quitting again?
> or do you know any other program, that can extract the information?

mplayer -identify -frames 0

gabor



More information about the MPlayer-users mailing list