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 |