[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mplayer-users
Subject:    Re: [MPlayer-users] command for know length of video files
From:       "Wesley S." <wesley () ubuntu ! com>
Date:       2008-02-19 0:27:42
Message-ID: 8c2431840802181627q365b5e03gbf32d302ead4cde2 () mail ! gmail ! com
[Download RAW message or body]

2008/2/19, Wesley S. <wesley@ubuntu.com>:
>
> 2008/2/19, Pierpaolo Gullˆa <airteknology@gmail.com>:
> >
> > Hi guys ,
> >
> > I'm creating a script that read length of a series of video files , put
> > them in a txt files and send to internet .
> >
> > My problem it's to know the command for mplayer/mencoder for know
> > information about a files , without encoding this files , something like
> > this:
> >
> > mplayer/mencoder  file.mpg   option
> >
>
> Try "mplayer -identify file.mpg"
>
> If you use it in a script, use grep/cut on that, like this:
> mplayer -identify -ao null -vo null -frames 0 file.mpg | grep ID_LENGTH |
> cut -d= -f2
>

I forgot to mention, the output will be in seconds, so you will probably
want to convert that to hours:minutes:seconds somehow.

Good luck,

-- 
Wesley Stessens <wesley@ubuntu.com>
Human Knowledge Belongs To The World - Antitrust (2001)
http://wesley.debianbox.be
_______________________________________________
MPlayer-users mailing list
MPlayer-users@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic