Timeshift Support

  Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
adamsutton Offline
Moderator
Posts: 277
Joined: Jan 2012
Reputation: 16
Post: #1
As some of you may be aware TVH does now have some rudimentary timeshift support. However its quite rough around the edges and is not yet in the master branch.

For those of you that are interested in playing with it you will need Frodo beta1 or later + a very recent pvr.hts build (last few days). You should also read this wiki article I've started to write, Timeshift.

Please pay special attention to the WARNING and also the polite request not to tell me "it crashes" because I'm well aware there are several significant issues with the code that I still need to address before it's considered "usable" in the more general sense.

However I do want to try and push it forward and get something working for 3.4, so I've made this more visible so I can get some general feedback. When I feel its a bit more stable and usable I'll most likely push the code into master at which point you can feel free to bug me about all the crashes etc...

Regards
Adam
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,848
Joined: Feb 2011
Reputation: 117
Location: germany
Post: #2
Cool & Exciting Smile

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Baswazz Offline
Fan
Posts: 381
Joined: Oct 2010
Reputation: 7
Location: Netherlands
Post: #3
Great work adam. Looking forward.

Frontend : Raspberry PI (Raspbmc) Helix test builds
Ziggo TV Channel Logo Pack (Dutch)
find quote
diverseft Offline
Member
Posts: 86
Joined: Feb 2012
Reputation: 0
Post: #4
That is awesome. Will be keeping an eye on this!
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,848
Joined: Feb 2011
Reputation: 117
Location: germany
Post: #5
@adam - might it be that tvheadend is spamming my disk - even if i don't timeshift at that moment?

ls -al timeshift/timeshift/0/ | wc -l
138

after playing a channel for about 3 mins. The folder is full of "tvh-6719" files ...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
adamsutton Offline
Moderator
Posts: 277
Joined: Jan 2012
Reputation: 16
Post: #6
@Memphiz, if you have enable timeshift (which presumably you must have or nothing would happen) then you will indeed be getting a buffer. It's not a "pause" buffer, its a timeshfit buffer, i.e. its a permanent ringbuffer up to the period you specified in the config.

It will not stop generating files unless you leave it paused for longer than the buffer period, at which point the buffer is considered full and writing will stop.

There is some debate on increasing the coarseness of the chunks (currently 1s), but to be honest that'll be worked out later when the rest of the stuff actually works. Which at the moment it does not Sad but I'm not sure who's to blame, I've been trying to get hold of elupus for his input.

Adam
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,848
Joined: Feb 2011
Reputation: 117
Location: germany
Post: #7
Ahh ok - good to know then Smile

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
opdenkamp Offline
Team-XBMC PVR Developer
Posts: 2,232
Joined: Feb 2009
Reputation: 29
Location: Heerlen, The Netherlands
Post: #8
haven't tested the new branch yet but did you fix the crash on channel switch that happened nearly every switch before? Smile

opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
find quote
adamsutton Offline
Moderator
Posts: 277
Joined: Jan 2012
Reputation: 16
Post: #9
Yeah, I think. Though I can't take the credit.

I left some old code in that was now using un init memory.

Hopefully that's fixed things. Now just need to figure out what is needed to make xbmc happy.

Adam
find quote
basco Offline
Senior Member
Posts: 231
Joined: Jun 2010
Reputation: 1
Post: #10
i thought what the heck let's try this.
so here are my findings.
tvh:
3.3.199~g759b5b1-dirty
xbmc:
latest (yesterday) wsnipex testing build, beta 3, latest pvr addon from http://www.dotnetdevelopers.net/XBMC/xbmcpvr.html

pauze works (tested up to 1 minute)!
on resume/play, after a few seconds, video starts to stutter, sound remains ok.

no files are being created in the timeshift folder while in pause mode on my server, this is strange right?
i entered this: "/mnt/storage/timeshift/" as temp storage path.

i get this in my log, maybe it is related...
13:35:53 T:2952756032 ERROR: AddOnLog: Tvheadend HTSP Client: Connect - failed to connect to the backend (Connection refused)
13:35:53 T:2952756032 ERROR: ADDON: Dll Tvheadend HTSP Client - Client returned bad status (1) from Create and is not usable
13:36:03 T:2952756032 ERROR: AddOnLog: Tvheadend HTSP Client: Connect - failed to connect to the backend (Connection refused)
(This post was last modified: 2012-12-09 14:59 by basco.)
find quote
Begall Offline
Senior Member
Posts: 196
Joined: Dec 2011
Reputation: 6
Post: #11
Latest commit on the timeshift branch is 759b5b13a0, not sure what you've gotten?
find quote
basco Offline
Senior Member
Posts: 231
Joined: Jun 2010
Reputation: 1
Post: #12
if i go to the 'about' tab in tvheadend it says:
HTS Tvheadend 3.3.199~g759b5b1-dirty

i use the normal tvheadend repo. https://github.com/tvheadend/tvheadend.git
this one did have the 'timshift' option which could be set to 'yes'

should i use another repo?
(This post was last modified: 2012-12-09 19:57 by basco.)
find quote
regnets Offline
Senior Member
Posts: 197
Joined: Feb 2011
Reputation: 1
Location: Ratingen, Germany
Post: #13
Wow, thats fabulous!

For me the timeshifting feature works flawlessly the whole day!

The only thing which is not perfect ist the keymap for the appletv, i can't use the buttons for fastforward/rewind.
find quote
basco Offline
Senior Member
Posts: 231
Joined: Jun 2010
Reputation: 1
Post: #14
question to the good people who also try the timeshift feature:
could you check if buffer files are being created in the tvheadend tmeshift folder while timeshifting?

i can timeshift, but no files are created in this folder. i wonder if it's just me Wink
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,848
Joined: Feb 2011
Reputation: 117
Location: germany
Post: #15
They are created for me even if i don't timeshift ...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Post Reply