Stream start at live point (1 Viewer)

EvilDude

Portal Member
February 1, 2008
43
3
Home Country
I have asked this a couple of times in IRC without much luck, so I'll try again here.

I notice that if I start a timeshift, I get a RTSP url. Now if I play the RTSP url straight away, all is fine. But now assume I stop the RTSP url (in VLC, mplayer, or XBMC), and then start the same RTSP url (Without restarting a new timeshift), then the stream starts playing back at the original point where the timeshift was started.

Is there any reason for this? Why doesn't the RTSP automatically start at the live point, as seeking within RTSP streams never works for any of these clients. And whenever I select a live stream to play, I always want to watch the latest, I'm not worried about when I started the timeshift!

Is there any workaround? Can TVServer let us start a timeshift with an option of always returning the live point?
 

EvilDude

Portal Member
February 1, 2008
43
3
Home Country
The player must actively ask from the live point (seeking to the end).

Would it be possible to add an argument to the start timeshift option that basically says 'always start from the end' so everytime that RTSP is started, it is from the live point? It would make interoperability with other players much easier, as they could play the RTSP file as normal without having to seek (which most players dont' seem to handle doing nicely)
 

Valk

Portal Pro
February 25, 2006
302
108
Home Country
Australia Australia
The IController has a function to get when the timeshifting started.

controller.TimeShiftStarted(vCard.User)

Just get that time and take off 1 second and seek to that point.
 

EvilDude

Portal Member
February 1, 2008
43
3
Home Country
I don't want to seek to where it started, I want to seek to the live point.

Assume this: I start timeshifting, and play the URL in VLC. I stop playing by accident, and press play again. It now starts when I started timeshifting, NOT the live point. I want to know how to make sure that the rtsp is *always* going to be the live point, no matter when the rtsp file is started.

If there is no option to do this, can this be done easily? Can someone tell me where in the source to take a look if I wanted to add this myself.
 

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
Very interesting discussion. If you know when the timeshift started, you can always calculate the live point in terms of datetime. My problem is that I cant find any method to seek through the RTSP stream period. Am I missing something?

Edit:

On second thought, seeking through the RTSP stream would be a client side feature. So it would not be the docs for TVServer. If I am using VLC to view live tv, then I have to find a way to do the seek part in VLC.
 

EvilDude

Portal Member
February 1, 2008
43
3
Home Country
Guessing there's no way to do it from the server then? No help on where I would look in the code to try and achieve this? I would really rather the server returned the stream from the live point rather than the client seeking to it, as RTSP seek is not done very well in many clients..
 

Khurram

Portal Pro
May 12, 2008
211
5
Home Country
Pakistan Pakistan
If I am using VLC to view live tv, then I have to find a way to do the seek part in VLC.
I found a VLC parameter which tells VLC to seek through an RTSP stream. But it is ignored. I dont know if the culprit is VLC or the TVServer. For example:

vlc.exe rtsp://192.168.1.1/stream1.0 --start-time=60

should skip ahead by 60 secs. But giving this command makes no difference. VLC always starts from the begining :(
 

Users who are viewing this thread

Top Bottom