[MPlayer-users] command for know length of video files

Krzysztof Duchnowski amidk75 at gmail.com
Tue Feb 19 18:18:36 CET 2008

Wesley S. pisze:
> 2008/2/19, Pierpaolo Gullˆa <airteknology at gmail.com>:
>> Thansk for your help Wesley , it works but i'm using maplyer via ssh ,
>> and the output it's ok , but maplyer try to play the files in the remote
>> server , and i must to kill mplayer after this option.

>> How I can use the identify command without playing of file?

> That's what the "-ao null -vo null -frames 0" options are for.

> -ao and -vo null tell mplayer not to use an audio or video output and
> -frames 0 tells mplayer not to play any frame
> so mplayer should just exit after reading out what you want.

It sould be: mplayer -ao null -vo null -endpos 1 -identify file.avi


1. "-frame 0" or "-frame 1" not always works and movie is still played 
2. "-frame 0" do not decode a thing and sometimes information isn't 
stored in the file header;

Thus why.

Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.mozilla.com/firefox/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/

More information about the MPlayer-users mailing list