[MPlayer-users] how to get length of a video without playing it?

Alexei Khlebnikov a.khlebnikau at sam-solutions.net
Mon Jul 12 10:36:23 CEST 2004


On Sun, 11 Jul 2004 23:44:16 -0700 (PDT)
dave giffin <givdav01 at yahoo.com> wrote:

DG> But, how can I get the length of the video without
DG> playing it or doing something that would take a lot of
DG> CPU/memory?

mplayer -identify -frames 0 filename.avi 2>&1 | grep ID_LENGTH

And next time read the manpage :)




More information about the MPlayer-users mailing list