* [gentoo-user] [OT] Length of a video...
@ 2012-04-21 18:27 meino.cramer
2012-04-21 18:36 ` Michael Mol
2012-04-21 19:50 ` Neil Bothwick
0 siblings, 2 replies; 4+ messages in thread
From: meino.cramer @ 2012-04-21 18:27 UTC (permalink / raw
To: Gentoo
Hi,
is there a way to determine the playing length of a video file in
minutes without playing the while file?
Thank you very much in advance for any help!
Best regards,
mcc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] [OT] Length of a video...
2012-04-21 18:27 [gentoo-user] [OT] Length of a video meino.cramer
@ 2012-04-21 18:36 ` Michael Mol
2012-04-21 19:50 ` Neil Bothwick
1 sibling, 0 replies; 4+ messages in thread
From: Michael Mol @ 2012-04-21 18:36 UTC (permalink / raw
To: gentoo-user
On Sat, Apr 21, 2012 at 2:27 PM, <meino.cramer@gmx.de> wrote:
> Hi,
>
> is there a way to determine the playing length of a video file in
> minutes without playing the while file?
Depends on the file. If the file has an index and/or sufficient
metadata, yes. If not, you'll have to decode the sequence of frames
and sum each frame's display time. (Videos whose framerate changes
halfway through suck...)
Either way, I'd suggest looking at 'ffmpeg' manpage.
There may be a better tool for your purposes...what's the context?
--
:wq
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] [OT] Length of a video...
2012-04-21 18:27 [gentoo-user] [OT] Length of a video meino.cramer
2012-04-21 18:36 ` Michael Mol
@ 2012-04-21 19:50 ` Neil Bothwick
2012-04-22 4:13 ` meino.cramer
1 sibling, 1 reply; 4+ messages in thread
From: Neil Bothwick @ 2012-04-21 19:50 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
On Sat, 21 Apr 2012 20:27:37 +0200, meino.cramer@gmx.de wrote:
> is there a way to determine the playing length of a video file in
> minutes without playing the while file?
Use midentify, part of mplayer.
midentify filename | grep LENGTH
--
Neil Bothwick
You do not need a parachute to skydive. You only need a parachute to
skydive twice.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] [OT] Length of a video...
2012-04-21 19:50 ` Neil Bothwick
@ 2012-04-22 4:13 ` meino.cramer
0 siblings, 0 replies; 4+ messages in thread
From: meino.cramer @ 2012-04-22 4:13 UTC (permalink / raw
To: gentoo-user
Neil Bothwick <neil@digimed.co.uk> [12-04-22 02:28]:
> On Sat, 21 Apr 2012 20:27:37 +0200, meino.cramer@gmx.de wrote:
>
> > is there a way to determine the playing length of a video file in
> > minutes without playing the while file?
>
> Use midentify, part of mplayer.
>
> midentify filename | grep LENGTH
>
>
> --
> Neil Bothwick
>
> You do not need a parachute to skydive. You only need a parachute to
> skydive twice.
Thanks a lot Neil! Works as a charm! :)
Have a nice Sunday!
Best regards,
mcc
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-04-22 4:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-21 18:27 [gentoo-user] [OT] Length of a video meino.cramer
2012-04-21 18:36 ` Michael Mol
2012-04-21 19:50 ` Neil Bothwick
2012-04-22 4:13 ` meino.cramer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox