[MPlayer-users] Determining video details?
Alexander Roalter
alex at roalter.it
Wed Jan 16 12:46:15 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.
>
> regards
> Hadmut
Use mplayer <filename> -identify -vo null -ao null -frames 0
it will give you everything you want, heck, you could even lose the
-identify...
--
cheers,
Alex
More information about the MPlayer-users
mailing list