Skip to content

Feature Request: timeshift (maybe with livebuffer) #8

Closed
hoppel118 opened this Issue Sep 17, 2011 · 19 comments
@hoppel118

Hallo Alex,

we discussed about it in the vdr- and in the xbmc-forum. Margro wrote that timeshift depends on the backend, so that it should be possible to use timeshift with his windows-xbmc code in conjunction to mediaportal.

Ok, I think both solutions (frontend- and backend-timeshift) have their advantages.

There are some skins like neon, which show us the needed buttons (pause, ff, rw etc.) within livetv-mode. So there is no need to change the confluence code to get this buttons while developing this code in xvdr.

Livebuffer is solved with a patch "at the moment". Don't know if Klaus wants to integrate this code, but I hope so!

Until now I didn't test timeshift or livebuffering, because I don't have a vdr-frontend installed. Tomorrow I will give it a try.

My feeling is that you could make a lot of people (including me) very very happy with timeshift, maybe in the first step without livebuffering.

What do you think about this? :-)

Viele Grüße Micha

@pipelka
Owner
pipelka commented Sep 19, 2011

Hi,

Timeshift shouldn't be too hard to implement on the server.
We just need some diskspace to buffer all the packets.

I assume when timeshift gets activated ("Pause" pressed on the client) XBMC won't request any packets from the live stream. In this case the server should buffer all the packets and start to replay them after timeshift is deactivated ("Play" pressed).

I'll check out the neo skin if it's usable.

Regards,
Alex

@hoppel118

Cool, I like the way you're troubleshooting and developing, sounds so easy!

In hope that the neon skin works as you need it, I am ready to test a new version of xvdr. ;-) Maybe I can make a bridge to stoli from the xbmc-forum, if something isn't working as expected. We had some contact in the past, he is the developer of neon.

That would make xbmc in combination with vdr nearly perfect!

Hopefully Regards

Micha
I would be happy to get informations from you.

@pipelka
Owner
pipelka commented Sep 19, 2011

Hold your horses ;-)
This was just a rough draft. I have to evaluate if this will really work the way i want it to be.
And it won't be done in a couple of days. I'll keep that on my "nice to have" feature list.

A starting point will be to implement the needed features in the server.

Alex

@hoppel118

Ok, ok... ;-)

In the vdr-portal they told me that timeshift is still implemented in the vdr code (from the moment you press "pause" vdr buffers and you can "ff, rw, play"). But livebuffer isn't implemented in the code, you need the livebuffer-patch to buffer the complete "session". Only for your information.. I didn't have the time to test this.

Greetings

@EkASs
EkASs commented Dec 23, 2011

Hi,

Someone posted a patch in vdr mailing list to add livebuffer (vdr-1.7.21) :
http://pastebin.com/LDRWqf41

It works with xineliboutput and could be a good starting point to add this feature to xvdr.

Regards.

@EkASs
EkASs commented Jan 1, 2012

1.7.22 version :
http://pastebin.com/FZf3bUWD

@EkASs
EkASs commented Jan 7, 2012

Edit: The conflict came from my ebuild (gentoo), the previous version works fine.

A new version witch doesn't conflict with the xvdr plugin. The previous version redefines cTimer::cTimer and breaks a lot of plugins :
http://pastebin.com/A1bVYUbe

@nokia001

What's next?

@Stendec1

Hi guys,

Just patched vdr 1.7.22 with LiveBuffer.
How do I enable this using the Transparancy skin on XBMC.

Thanks

@crajohnson

I'm interested in this as well - I've got the livebuffer patched in vdr and have enabled it with the --buffer switch. I've looked around in confluence in PlayerControls.xml to enable pause/ff/rw but it doesn't seem to do anything. Any ideas on how to enable timeshifting with the vdr livebuffer?

@Hoppsan84

Hi

What about the timeshift.
Is anyone working on it?

It's the only thing missing to xvdr to be perfect

@seb131
seb131 commented Jul 17, 2012

Hello,
has the new vdr livebuffer been impelemented in xvdr ? It would be perfect :)
Thanks a lot.

@guyrichie

Hello All,

Quote: hoppel118 - "There are some skins like neon, which show us the needed buttons (pause, ff, rw etc.) within livetv-mode. So there is no need to change the confluence code to get this buttons while developing this code in xvdr."

The only Confluence skin (default skin of XBMC) I have seen with the relevant PVR "Pause", "Fast Forward" and "Fast Rewind" buttons in the past ~3 months is in Tonny Petersen's (https://github.com/tsp/xbmc) fork of Lars Op den Kamp's (https://github.com/opdenkamp/xbmc) XBMC-PVR.

Tonny and team is working on XBMC-PVR to MythTV backend and has implemented the first stages of timeshifting in terms of buttons and initial functionality - pause is working, ff and rwd is a little temperamental at present.

It could be that until opdenkamp enables the required buttons in the PVR skin can we expect timeshifting in both TvHeadend (https://www.lonelycoder.com/redmine/issues/446) and XVDR alike?

Overall, still very impressed with the XVDR plugins, keep up the much appreciated work.

Many thanks,
Guy

@guyrichie

Hello All,

To re-iterate the discussion at pipelka/xbmc-addon-xvdr#70:

PVR timeshift buttons have been added into the Confluence skin at xbmc/xbmc master, see: xbmc/xbmc#1504

As for the timeshift video data, it would be great to be able to choose the directory it saves to. This way a cheap HDD can be used to bear the brunt of constant I/O read/write streams. Better still, for those high-end PC's a RAM disk can be created in /etc/fstab (ramdisk /mnt/ramdsk tmpfs mode=1777,size=10g) and mounted for the sole use as temporary timeshift video data.

Many thanks,
Guy

@pipelka
Owner
pipelka commented Oct 15, 2012

Yes. All these things will be possible ;-)

For all the curious out there:
Take a look at the "msgpacket" branch of the addon and server plugin:
http://github.com/pipelka/vdr-plugin-xvdr/tree/msgpacket
http://github.com/pipelka/xbmc-addon-xvdr/tree/msgpacket

It's an early preview of timeshift. Very basic but working.
All of that will be merged into "master" when it's stable.

@pipelka pipelka closed this in da33ff5 Oct 25, 2012
@AndreyPavlenko

Alexander, are you planning to implement a full featured timeshifting with forward and rewind?

@pipelka
Owner
pipelka commented Jan 10, 2013

I'm currently thinking about it but there isn't any implementation currently.

It should be possible with the current timeshift-buffer approach but some extensions are needed:

  • DTS/PTS index of the timeshift buffer (to jump to any position in time)
  • StreamChange cache (streams may change and have to be reconstructed for any point in time)

But it's not a high priority item in my todo list.

@Zazza76
Zazza76 commented Jan 28, 2013

@pipelka : Correct me if I'm wrong... Currently XVDR support only PAUSE and RESUME for live tv timeshift but no forward and rewind, right? Thanks...

@pipelka
Owner
pipelka commented Jan 28, 2013

Yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.