Re: [gentoo-user] [OT] how to read movie clip duration in console?

2011-11-04 Thread Mark Knecht
On Fri, Nov 4, 2011 at 2:05 PM, Francisco Ares  wrote:
> Hi, All
>
> Sorry for the OT, but Gentoo'ers are way above medium linux users.
>
> I have a bunch of movie clips and I wanted to build a table of contents
> including clip duration. Instead of opening one at a time, is there any
> application that I could user for a script?
>
> I though on mplayer, but I could not find a way for it to tell me the
> duration of a clip.
>
> Thanks
> Francisco
> --
> "If you have an apple and I have an apple and we exchange apples then you
> and I will still each have one apple. But if you have an idea and I have one
> idea and we exchange these ideas, then each of us will have two ideas." -
> George Bernard Shaw
>

Another possibility, assuming you have ffmpeg installed, is

ffmpeg -i FILE

and then look at the Duration field.

- Mark



Re: [gentoo-user] [OT] how to read movie clip duration in console?

2011-11-04 Thread Francisco Ares
Thanks a lot to all, It is very interesting, 3 excellent options already.

Francisco


On Fri, Nov 4, 2011 at 8:25 PM, Paul Hartman
wrote:

> On Fri, Nov 4, 2011 at 4:05 PM, Francisco Ares  wrote:
> > Hi, All
> >
> > Sorry for the OT, but Gentoo'ers are way above medium linux users.
> >
> > I have a bunch of movie clips and I wanted to build a table of contents
> > including clip duration. Instead of opening one at a time, is there any
> > application that I could user for a script?
> >
> > I though on mplayer, but I could not find a way for it to tell me the
> > duration of a clip.
>
> The media-video/mediainfo package provides this info and more. It can
> also output the info in XML which might be useful to you if you're
> building a database of your movie info.
>
>


-- 
"If you have an apple and I have an apple and we exchange apples then you
and I will still each have one apple. But if you have an idea and I have
one idea and we exchange these ideas, then each of us will have two ideas."
- George Bernard Shaw


Re: [gentoo-user] [OT] how to read movie clip duration in console?

2011-11-04 Thread Paul Hartman
On Fri, Nov 4, 2011 at 4:05 PM, Francisco Ares  wrote:
> Hi, All
>
> Sorry for the OT, but Gentoo'ers are way above medium linux users.
>
> I have a bunch of movie clips and I wanted to build a table of contents
> including clip duration. Instead of opening one at a time, is there any
> application that I could user for a script?
>
> I though on mplayer, but I could not find a way for it to tell me the
> duration of a clip.

The media-video/mediainfo package provides this info and more. It can
also output the info in XML which might be useful to you if you're
building a database of your movie info.



Re: [gentoo-user] [OT] how to read movie clip duration in console?

2011-11-04 Thread Neil Bothwick
On Fri, 4 Nov 2011 19:05:23 -0200, Francisco Ares wrote:

> I have a bunch of movie clips and I wanted to build a table of contents
> including clip duration. Instead of opening one at a time, is there any
> application that I could user for a script?
> 
> I though on mplayer, but I could not find a way for it to tell me the
> duration of a clip.

midentify, distributed with mplayer

midentify filename | grep LENGTH

It's a wrapper script for mplayer, so it works with any format that
mplayer can play.


-- 
Neil Bothwick

WinErr 013: Unexpected error - Huh ?


signature.asc
Description: PGP signature


Re: [gentoo-user] [OT] how to read movie clip duration in console?

2011-11-04 Thread Dale

Michael Schreckenbauer wrote:

Hi,

Am Freitag, 4. November 2011, 19:05:23 schrieb Francisco Ares:

Hi, All

Sorry for the OT, but Gentoo'ers are way above medium linux users.

I have a bunch of movie clips and I wanted to build a table of contents
including clip duration. Instead of opening one at a time, is there any
application that I could user for a script?

I though on mplayer, but I could not find a way for it to tell me the
duration of a clip.

emerge exiftool

exiftool  | grep "^Duration"


Thanks
Francisco

Best,
Michael




I got to put that command in my savers file.  I have always wondered 
that too.


Any way to know for sure the whole movie is there without playing the 
whole thing?  Sometimes the end of mine gets cut off.  I think one of 
the sites I use has a limit and it cuts off the connection even if it is 
in the middle of the show.  The nerve of people.  lol


Thanks.  You helped two people today.  ;-)

Dale

:-)  :-)



Re: [gentoo-user] [OT] how to read movie clip duration in console?

2011-11-04 Thread Michael Schreckenbauer
Hi,

Am Freitag, 4. November 2011, 19:05:23 schrieb Francisco Ares:
> Hi, All
> 
> Sorry for the OT, but Gentoo'ers are way above medium linux users.
> 
> I have a bunch of movie clips and I wanted to build a table of contents
> including clip duration. Instead of opening one at a time, is there any
> application that I could user for a script?
> 
> I though on mplayer, but I could not find a way for it to tell me the
> duration of a clip.

emerge exiftool

exiftool  | grep "^Duration"

> Thanks
> Francisco

Best,
Michael




[gentoo-user] [OT] how to read movie clip duration in console?

2011-11-04 Thread Francisco Ares
Hi, All

Sorry for the OT, but Gentoo'ers are way above medium linux users.

I have a bunch of movie clips and I wanted to build a table of contents
including clip duration. Instead of opening one at a time, is there any
application that I could user for a script?

I though on mplayer, but I could not find a way for it to tell me the
duration of a clip.

Thanks
Francisco
-- 
"If you have an apple and I have an apple and we exchange apples then you
and I will still each have one apple. But if you have an idea and I have
one idea and we exchange these ideas, then each of us will have two ideas."
- George Bernard Shaw