[MPlayer-users] Determining video details?

Mark Himsley mark at mdsh.com
Wed Jan 16 12:48:34 CET 2008


Hadmut Danisch wrote:
> Hi,
>
> mplayer is able to detect details about the video like
>
> - length in time
> - Height and width
> - scaling factor
> - audio and video bitrates
> - audio and video encoding
>
>
> but it is rather difficult to determine these facts from an
> shellscript, since mplayer opens a windows, runs the video, and hides
> information in  some crowded output or even OSD. 
>
> Would be nice if mplayer had a mode/command option, or if there was
> an additional program which can be called with any given video file, 
> prints all these informations in a format easy to parse to stdout, 
> and then exits.
>   
mplayer -really-quiet -identify -vo null -ao null -frames 1 file

-- 
Mark




More information about the MPlayer-users mailing list