[vlc] Re: obtaining time from a ts file

Mark Moriarty mfmbusiness at earthlink.net
Wed Mar 23 00:53:10 CET 2005


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

You would be changing encapsulation, not actually doing CODEC stuff, so
there should be little impact. 

(The Streaming Features page has a list of the things that work together --
pick an encapsulation, whether, ASF, MPEG PS,... That supports the audio and
video CODECs that the incoming stream uses.  Then name the resulting file
appropriately -- myfile.asf or myfile.mpg.)

The reason that MPEG TS, "raw" doesn't have this capability is the way TS
encapsulates the data -- you get these PTS values telling you when the
current data should be played, plus an occaissional PCR clock reference for
master sync, but the format just doesn't have the fields to support seeking
kinds of info. 

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

Hello,

the vlc development version has javascript acces to the mozilla plugin;
among others, there are two interesting functions:
document.video.get_time(): current time (in seconds) of the playing file
document.video.get_length(): total lenght in seconds (of a file)

However, this functions only apply to mpeg, mpeg files, not to all video
files.
I'm saving from a streaming server (using videolan and MPEG-TS) a file in ts
format (say saved.ts), in order to avoid transcoding and therefore
additional overhead. If I try to use the 'get_time()' and 'get_length()'
functions to  my saved.ts file it does not work.
Is it a way to deal with this issue?

Thanks,
G.  


--
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