Timeshift with a growing file - seeking in a TS stream

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
saunatonttu
New Cone
New Cone
Posts: 9
Joined: 17 Jan 2011 10:20
Operating System: Debian GNU/Linux

Timeshift with a growing file - seeking in a TS stream

Postby saunatonttu » 29 Aug 2011 21:09

I've made a simple timeshift script using a growing file of saved TS stream coming from my TV card. One thing I'd really like to implement would be a function to automatically skip to realtime, which means a few seconds from the end of the file. Since VLC can't read timing information from TS streams, the only thing that works here is to pass the command "seek 99%" to VLC. The problem here is that the seek command isn't accurate enough - if it would understand floating point it would be easy to calculate a reasonable buffer from the file size. But when you have a hours long timeshift file, one percent will mean several minutes.

Is there anything useful that I'm missing? Is it possible to tell VLC to skip to a certain byte position of the file, for example?
Last edited by saunatonttu on 03 Sep 2011 13:10, edited 1 time in total.

saunatonttu
New Cone
New Cone
Posts: 9
Joined: 17 Jan 2011 10:20
Operating System: Debian GNU/Linux

Re: Timeshift with a growing TS file

Postby saunatonttu » 03 Sep 2011 13:09

What I'm trying to achieve with this is to be able to close VLC, open it to another screen located in another room and continue watching with just one click of a remote control. Since there is STILL no timing information read from TS streams in VLC, it would be great to have rc commands for seeking and getting the current position in bytes, or at least in percents with at least two digit floating point. That way one could implement forward and rewind functions as well.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 50 guests