Page 1 of 1

Stopping and starting a stream with timestamps or frames

Posted: 01 Nov 2006 10:53
by pcheng
Dear all,

I am a new user of VLC and I wanted to develop an application that will allow me to stop a stream and then staring the stream again from the point that it stopped.

I wanted to know if there is a way of knowing the frame or time that the stream stopped and then using that information to start the stream from that point. The reason I want to do this is to have two versions of the same file and when I choose I can switch from one to the other while still staying in the same frame or time.

I know the answer is somewhere here but I thought I'd send the message while I am browsing the forums.

Thanking you all in advance,

Pericles

Posted: 01 Nov 2006 22:03
by The DJ
This will not be possible in vlc any time soon. VLC treats all data very simplistic and has no concepts of where frames are in a file.

Stopping the Starting

Posted: 02 Nov 2006 04:31
by Tappen
If you're in Windows, and can program, the ActiveX control will keep you informed of the current timestamp. I wrote a small app that creates an xml file with the timestamp when I stop playing and restarts me at the same place if I restart the video at a later time.

Posted: 03 Nov 2006 17:46
by pcheng
Is there at least a way to start a vlc stream from a certain time? Will the start offset option allow me to do that? If so, then maybe I can set a timestamp right before starting the stream and then another when I want to close the stream and use the difference to start the next stream at that position.

I will try this and see how it works.

Thanks for the replies,

Pericles