[MPlayer-users] how to find avi movie duration
phil
phernandez at free.fr
Wed Dec 18 14:59:02 CET 2002
On Wed, 18 Dec 2002 14:12:02 +0100
Petr Pajas <pajas at ufal.ms.mff.cuni.cz> wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi All,
>
> does anyone know how to get an information on how a particular movie
> (e.g. stored as divx avi) is long (in seconds/minutes) from a
> command-line? Preferably using mplayer/mencoder or other linux tools?
>
> Thanks,
>
> -- Petr
I suppose tcprobe can help you .
Example :
phil at bion:~/Video$ tcprobe -i movie.avi
[tcprobe] RIFF data, AVI video
[avilib] V: 25.000 fps, codec=DX50, frames=2708, width=512, height=376
[avilib] A: 44100 Hz, format=0x55, bits=0, channels=2, bitrate=118 kbps,
[avilib] 4146 chunks, 1563279 bytes
[tcprobe] summary for movie.avi, (*) = not default, 0 = not detected
import frame size: -g 512x376 [720x576] (*)
frame rate: -f 25.000 [25.000] frc=3
audio track: -a 0 [0] -e 44100,0,2 [48000,16,2] -n 0x55 [0x2000] (*)
bitrate=118 kbps
length: 2708 frames, frame_time=40 msec
In this case , duration is 2708 * 40 / 1000 = 108.32 sec .
tcprobe comes with transcode .
Phil
--
(o_ Aucun pingouin n a été maltraité durant
(o_ (o_ //\ l écriture de ce mail .
(/)_ (\)_ V_/_
More information about the MPlayer-users
mailing list