[MEncoder-users] Retrieve video infos from batch file

DaveG mplayer01 at dgmm.net
Sat Mar 3 22:34:05 CET 2007


On Friday 02 March 2007 21:33, Phil Ehrens wrote:
> DaveG wrote:
> > On Friday 02 March 2007 16:48, totob at libero.it wrote:
> > > I would like to have something like
> > > SET FPS = 'mencoder/mplayer input.flv -SOMEOPTION'
> > > and then use the variable %FPS% in the operations of my script.
> >
> > I needed the same thing and came up with this :-)
> >
> > vbitrate=`mplayer -identify -frames 0 "${srcfile}" | grep
> > ID_VIDEO_BITRATE | sed -e 's/.*RATE=//'`
> > ##Note, that's all one line.
> >
> > vbitrate=$(($vbitrate / 1000))
>
> http://www.transcoding.org/cgi-bin/transcode?MplayerProbe

Ah, thanks.  Easier for next time, especially if I need more than just fps :-)

-- 
Dave



More information about the MEncoder-users mailing list