Gentoo Archives: gentoo-user

From: Michael Mol <mikemol@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] Length of a video...
Date: Sat, 21 Apr 2012 18:37:33
Message-Id: CA+czFiBDMnVBwwh-wCbEBjgH0LJJ3P6-OSOMxN-O080qFB+BFw@mail.gmail.com
In Reply to: [gentoo-user] [OT] Length of a video... by meino.cramer@gmx.de
1 On Sat, Apr 21, 2012 at 2:27 PM, <meino.cramer@×××.de> wrote:
2 > Hi,
3 >
4 > is there a way to determine the playing length of a video file in
5 > minutes without playing the while file?
6
7 Depends on the file. If the file has an index and/or sufficient
8 metadata, yes. If not, you'll have to decode the sequence of frames
9 and sum each frame's display time. (Videos whose framerate changes
10 halfway through suck...)
11
12 Either way, I'd suggest looking at 'ffmpeg' manpage.
13
14 There may be a better tool for your purposes...what's the context?
15
16
17 --
18 :wq