[MEncoder-users] Finding out file duration

Guillaume POIRIER poirierg at gmail.com
Mon Oct 31 16:41:36 CET 2005


Hi,

On 10/31/05, Jean Hoderd <jhoderd at yahoo.com> wrote:
> Hi,
>
> Is there an option in mplayer/mencoder to return
> the duration of a movie file?  Sorry if the solution
> is obvious, but I could not find any other way
> other than to use -benchmark, which is of course
> very slow.

That's probabaly the best solution as some containers such as MPEG
can't be safely trusted to report the correct duration.
What you may do though is speed-up the decoding process using the
lavdopts decoding options, and/or use "-nosound"

Cheers,
Guillaume
--
Reading doesn't hurt, really!
 -- Dominik 'Rathann' Mierzejewski




More information about the MEncoder-users mailing list