[MEncoder-users] Retrieve video infos from batch file

Phil Ehrens phil at slug.org
Fri Mar 2 22:33:35 CET 2007


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



More information about the MEncoder-users mailing list