[vlc] Re: obtaining time from a ts file

Mark Moriarty mfmbusiness at earthlink.net
Wed Mar 23 02:39:47 CET 2005


I'm not sure, but there's something there.  When I open a 3.7GB MPEG PS .mpg
movie in WMP, it opens virtually instantaneously, and I get a slider showing
proper duration.  The disk isn't grinding away.
 

-----Original Message-----
From: vlc-bounce at videolan.org [mailto:vlc-bounce at videolan.org] On Behalf Of
Warren Young
Sent: Tuesday, March 22, 2005 8:35 PM
To: vlc at videolan.org
Subject: [vlc] Re: obtaining time from a ts file

Mark Moriarty wrote:

> You would need to save into, for instance, MPEG PS.  It simply adds 
> the proper header information describing file characteristics.

Um, really?  Do you know what the structure is called?  I ask because I've
got a program that figures out the length of an MPEG-2 PS, and it simply
counts frames.  On the gigabyte-plus videos we typically deal in, this takes
a long time.  If there's a single place I can look for the time, that would
be very nice.

Naturally, VideoLan could do what I did with TS streams.  Probably the
reason it isn't done now is that it's an O(n) algorithm.

--
This is the vlc mailing-list, see http://www.videolan.org/vlc/ To
unsubscribe, please read http://www.videolan.org/support/lists.html

-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list