Jump to content


Photo

Timeshifting problems with OpenPLi 3.0


  • Please log in to reply
747 replies to this topic

Re: Timeshifting problems with OpenPLi 3.0 #541 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 21 March 2013 - 08:13

Hi dima73, i want to do the same but it's not so easy as I thought in the beginning. I send you a pm in a few minutes.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Timeshifting problems with OpenPLi 3.0 #542 ThEdOvEz

  • Member
  • 6 posts

0
Neutral

Posted 22 March 2013 - 14:56

PermanentTimeshift plugin for openPLi - version 1.3a
-fix stop standart timeshift
-fix warning when zap

P.S.needs to be tested


will not install on pli 2.1 for dm800hd ?

Re: Timeshifting problems with OpenPLi 3.0 #543 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 30 March 2013 - 22:48

Hi,

 

here are 2 patches:

1. Timeshift didn't work for streams. This enables timeshift only for streams with service ref 1:0:... and not with 4097:0:...!!

  Problem was that timeshift file was opened with eHttpStream and not with eRawFile, because the main service ref is a stream.

2. If a URL only contains hostname and port (e.g. http://1.2.3.4:8888) it has to end with /. Without / it don't work. I changed it.

  And a HTTP redirect didn't work if the Content-Type is behind the Location.

  I mean something like this:

 

GET / HTTP/1.1
Host: w.x.y.z

HTTP/1.1 302 Found
Date: Sat, 30 Mar 2013 21:51:34 GMT
Server: Apache/2.2.15 (Fedora)
Location: http://a.b.c.d:8000
Content-Length: 207
Connection: close
Content-Type: text/html; charset=iso-8859-1

I know 2. patch has nothing to do with timeshift, but I didn't want to create a new thread for this little patch :rolleyes:

 

 

EDIT: Sometimes sound was not available while watching timeshift (in streams). I'll try to find out, why sound disappears.

Attached Files


Edited by betacentauri, 30 March 2013 - 22:52.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Timeshifting problems with OpenPLi 3.0 #544 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 2 April 2013 - 20:15

I've pushed your second commit, but regarding the first one, wouldn't this simple patch achieve just the same?

 

--- a/lib/service/servicedvb.cpp
+++ b/lib/service/servicedvb.cpp
@@ -2607,7 +2607,7 @@ void eDVBServicePlay::resetTimeshift(int start)
 
 ePtr<iTsSource> eDVBServicePlay::createTsSource(eServiceReferenceDVB &ref, int packetsize)
 {
-       if (m_is_stream)
+       if (ref.path.substr(0, 7) == "http://")
        {
                eHttpStream *f = new eHttpStream();
                f->open(ref.path.c_str());


Re: Timeshifting problems with OpenPLi 3.0 #545 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 2 April 2013 - 20:37

Yes, it's much easier :) . Forget my patch.


Edited by betacentauri, 2 April 2013 - 20:37.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Timeshifting problems with OpenPLi 3.0 #546 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 2 April 2013 - 20:49

ok, pushed it (with some sourcecode comments, to explain what we're doing)



Re: Timeshifting problems with OpenPLi 3.0 #547 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 2 April 2013 - 21:22

You're writing novels :D

But looks good!

And thanks!


Edited by betacentauri, 2 April 2013 - 21:24.

Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Timeshifting problems with OpenPLi 3.0 #548 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 3 April 2013 - 08:39

thanks for TimeShift improvements
Everything is working on the channel IPTV and IPTV Archives ;) 


BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: Timeshifting problems with OpenPLi 3.0 #549 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 7 April 2013 - 20:29

Version 1.3b

-patch for the latest changes timeshift


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Timeshifting problems with OpenPLi 3.0 #550 westsib

  • Senior Member
  • 52 posts

+2
Neutral

Posted 8 April 2013 - 07:46

thanks for TimeShift improvements
Everything is working on the channel IPTV and IPTV Archives ;) 

No.
At my vu duo and OpenPLi 3.0 goes not on iptv channels.
Is it possible to adjust for iptv?
Here's a piece of putty log, if it helps.
Regards!

Attached Files



Re: Timeshifting problems with OpenPLi 3.0 #551 littlesat

  • PLi® Core member
  • 57,224 posts

+701
Excellent

Posted 8 April 2013 - 08:47

The patch was not for iptv channels... it was intended for ts streams as far I understand...


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Timeshifting problems with OpenPLi 3.0 #552 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 8 April 2013 - 15:04

everything works ;)channel IPTV and IPTV Archives ;) 

Attached Files


Edited by maigais, 8 April 2013 - 15:07.

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: Timeshifting problems with OpenPLi 3.0 #553 westsib

  • Senior Member
  • 52 posts

+2
Neutral

Posted 8 April 2013 - 15:20

everything works ;)channel IPTV and IPTV Archives ;) 

Yep....with 2.1 :angry:

Does not work with 3.0 :(



Re: Timeshifting problems with OpenPLi 3.0 #554 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 8 April 2013 - 15:35

You have to make do without it, just as we are doing without 3.0 :D  :D  :D

 


BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: Timeshifting problems with OpenPLi 3.0 #555 westsib

  • Senior Member
  • 52 posts

+2
Neutral

Posted 8 April 2013 - 18:49

You have to make do without it, just as we are doing without 3.0 :D  :D  :D

 

Or better  IPTV throw it away :P :P :P

Sorry, off topic


Edited by westsib, 8 April 2013 - 18:50.


Re: Timeshifting problems with OpenPLi 3.0 #556 westsib

  • Senior Member
  • 52 posts

+2
Neutral

Posted 8 April 2013 - 18:51

 --


Edited by westsib, 8 April 2013 - 18:54.


Re: Timeshifting problems with OpenPLi 3.0 #557 Zenox

  • Senior Member
  • 57 posts

+1
Neutral

Posted 12 April 2013 - 08:08

I still have the same problem with timeshifting as described earlier :( Have found out what is causing it after loads of troubleshooting though...
 
When automounts is processed as usual my mount looks like this:
//<ip>/dreambox on /media/net/Dreambox type cifs (rw,mand,noatime,sec=ntlm,unc=\<ip>\dreambox,username=<user>,uid=0,noforceuid,gid=0,noforcegid,addr=<ip>,file_mode=0755,dir_mode=0755,nounix,rsize=61440,wsize=65536,actimeo=1)
 
When i mount it manually as so:
mount -t cifs //<ip>/dreambox -o username=<user>,password=<pass> /mnt/net/Dreambox
The mount looks like this:
//<ip>/dreambox on /media/net/Dreambox type cifs (rw,mand,relatime,sec=ntlm,unc=\<ip>\dreambox,username=<user>,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.1.11,file_mode=0755,dir_mode=0755,nounix,serverino,rsize=61440,wsize=65536,actimeo=1)
 
The second way of mounting works all the time when timeshifting!
 
Found out that the difference is how it is mounted. When mount uses the option "relatime", instead of "noatime", the problem is gone. The new problem is that this option is hardcoded into AutoMount.py
 
How can I get around this?
 
Would it be possible to change AutoMount.py to use "relatime" instead if that is specified as mount option (ex: "rw,relatime" in the gui). Or maybe it should be the default (I don't know about the consequences)?
 
Side note: Right know I have a script that sets things up for a workaround when rebooting the box, but I havent found out how to create a device from a mount point (like harddiskmanager.addMountedPartition(path, desc) in AutoMount.py) using a bash-script. This results in not seeing the mounts when trying to browse them from ex MoviePlayer.


Re: Timeshifting problems with OpenPLi 3.0 #558 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 12 April 2013 - 08:56

gogle

fstab cifs


GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Timeshifting problems with OpenPLi 3.0 #559 Zenox

  • Senior Member
  • 57 posts

+1
Neutral

Posted 12 April 2013 - 09:02

Ah of course. I'll add it to fstab instead. Should do as a workaround for now.



Re: Timeshifting problems with OpenPLi 3.0 #560 Dimitrij

  • PLi® Core member
  • 10,334 posts

+351
Excellent

Posted 18 April 2013 - 07:42

littlesat

message Stop timeshift? ->key exit

 File "/usr/lib/enigma2/python/Screens/InfoBarGenerics.py", line 1614, in checkTimeshiftRunningCallback
    if "movie" in answer:
TypeError: argument of type 'bool' is not iterable

Maybe so...

	def checkTimeshiftRunningCallback(self, returnFunction, answer):
+		if not answer:
+			return
		if "movie" in answer:
			self.save_timeshift_in_movie_dir = True
		if "save" in answer:
			self.save_timeshift_file = True
			self.saveTimeshiftFiles()
		returnFunction(answer != "continue")

Edited by Dima73, 18 April 2013 - 07:44.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users