[MPlayer-users] getting framerate from a file....

D Richard Felker III dalias at aerifal.cx
Sun Jul 21 08:52:01 CEST 2002


On Sun, Jul 21, 2002 at 12:47:12AM -0400, GD Lewis wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Greetings all....
> 
> I don't know if this is a re-hashed question and I apologize if it is...
> 
> I am trying to develop a script that automatically determines the video 
> framerate from a avi file as reported by mplayer at startup.
> 
> I have an pretty good idea of what I want and I know how to get & parse the 
> info, but I have a couple of issues.
> 
> 1) Is there any way to specify to mplayer/mencoder to just display the info on 
> the file without actually playing it.  Just dump the info and quit?

mplayer -vo null -ao null -frames 0 or 1

> 2) The messages that are displayed by mplayer/mencoder do not appear to be 
> written to either stdout or stderr, so I am unable to pipe the output to a 
> file for future processing.  Am I doing something wrong here or is there 
> something that I should know?

mplayer 2>&1 | blah

Rich




More information about the MPlayer-users mailing list