Jump to content


Photo

Timeshift/recording not working after 4c12411


  • Please log in to reply
47 replies to this topic

#1 Beeker

  • PLi® Contributor
  • 1,607 posts

+203
Excellent

Posted 8 November 2015 - 22:03

https://github.com/O...9bb9b8a9c96eff8

After this commit timeshift and recording not working anymore.Black screen and time not running(still at 0:00).

DM8000 with oscam.

I revert the commit in my build-envorinment  and it's working again(tested a few times)..

Perhaps only DM8000 related. Can not test with other boxes.
 


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Timeshift/recording not working after 4c12411 #2 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 November 2015 - 22:25

The idea of this commit is to use a demux in asc order 0,1,2.. when there is descrambling involved.

Dreamboxes have less demuxes capable of descrambling. Can you post the results of command ls /dev/dvb/adapter0/ ?

Maybe there is another bug triggered from above commit in Dreamboxes.

Tomorrow this update will land to users so we'll see if others have problem too.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Timeshift/recording not working after 4c12411 #3 Beeker

  • PLi® Contributor
  • 1,607 posts

+203
Excellent

Posted 8 November 2015 - 22:35

The idea of this commit is to use a demux in asc order 0,1,2.. when there is descrambling involved.

Dreamboxes have less demuxes capable of descrambling. Can you post the results of command ls /dev/dvb/adapter0/ ?

 

 

root@dm8000:~# ls /dev/dvb/adapter0
audio0    ca3          demux3      dvr2          frontend1   net1       video0
ca0        demux0     demux4     dvr3          frontend2   net2       video1
ca1        demux1     dvr0           dvr4          frontend3   net3
ca2        demux2     dvr1          frontend0  net0            net4
root@dm8000:~#


Edited by Beeker, 8 November 2015 - 22:38.

Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Timeshift/recording not working after 4c12411 #4 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 November 2015 - 22:44

Demuxers 5 (demux0..4) and only 4 can descramble (ca0..3)

Can you run enigma2 manually (init 4 && enigma2) and see if there is error logged when you try to perform timeshift or recording?

Edited by athoik, 8 November 2015 - 22:45.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Timeshift/recording not working after 4c12411 #5 Beeker

  • PLi® Contributor
  • 1,607 posts

+203
Excellent

Posted 8 November 2015 - 22:53

<260116.904832> [eDVBSectionReader] DMX_SET_FILTER pid=3842
<260116.905988> [eDVBSectionReader] DMX_SET_FILTER pid=3003
<260116.907515> [eDVBSectionReader] DMX_SET_FILTER pid=18
<260116.908838> [eDVBSectionReader] DMX_SET_FILTER pid=18
<260116.909854> [eDVBSectionReader] DMX_SET_FILTER pid=18
<260116.910881> [eDVBSectionReader] DMX_SET_FILTER pid=5000
<260116.911983> [eDVBSectionReader] DMX_SET_FILTER pid=5000
<260116.913122> [eDVBSectionReader] DMX_SET_FILTER pid=57
<260119.492298> [eDVBServicePlay] timeshift
action ->  InfobarTimeshiftActions timeshiftStart
enable timeshift
<260119.537668> [eDVBServicePlay] timeshift
<260119.538715> [eDVBServicePlay] Start timeshift!
<260119.543431> [eDVBServicePlay] timeshift recording to /media/hdd/timeshift.pADvMW
<260119.546535> [setIoPrio] realtime level 7 ok
<260119.547510> [eFilePushThreadRecorder] THREAD START
<260119.551557> [eDVBServicePlay] timeshift
activateTimeshiftEnd
play, ...

<260119.555806> [eTSMPEGDecoder] decoder state: play, vpid=ffffffff, apid=ffffffff
<260119.556154> [eDVBPCR0] DEMUX_STOP ok
<260119.556929> [eDVBPCR0] destroy
<260119.557529> [eDVBVideo0] DEMUX_STOP  ok
<260119.574511> [eDVBVideo0] VIDEO_STOP ok
<260119.575658> [eDVBVideo0] destroy
<260119.576214> [eDVBAudio0] AUDIO_STOP ok
<260119.596122> [eDVBAudio0] DEMUX_STOP ok
<260119.596615> [eDVBAudio0] AUDIO_CONTINUE ok
<260119.597239> [eDVBAudio0] destroy
cleaning up
TuxTxt cache cleared
<260119.609790> [eDVBServicePMTHandler] alloc PVR
<260119.610389> [eDVBChannel] getDemux cap=01
<260119.610602> [eDVBResourceManager] allocate demux cap=01
<260119.610729> [eDVBResourceManager] no free demux found
<260119.610911> [eDVBServicePMTHandler] Allocating -decoding a demux for PVR channel failed.
<260119.611116> [eDVBServicePlay] switchToTimeshift, in pause mode now.
<260119.611254> [eDVBServicePlay] pause
<260119.611413> [eDVBServicePlay] have 1 video stream(s) (0c81), and 1 audio stream(s) (0c8b), and the pcr pid is 0c81, and the text pid is ffffffff
<260119.613313> [eDVBServicePlay] timeshift
<260119.614279> [eDVBServicePlay] timeshift
<260119.615748> [eDVBServicePlay] timeshift
<260119.617323> [eDVBServicePlay] timeshift
resolved to PAUSE
<260119.618536> [eDVBServicePlay] pause
<260119.619891> [eDVBServicePlay] timeshift
<260119.620700> [eDVBServicePlay] timeshift
<260119.636969> [eDVBServicePlay] timeshift
<260119.637830> [eDVBServicePlay] timeshift
<260119.703553> [eDVBServicePlay] seekTo -90000
<260119.704920> [eDVBServicePlay] timeshift
<260119.706267> [eDVBServicePlay] timeshift
New timeshift filename:  20151108 2251 - Film1 Premiere HD - The Hundred-Foot Journey
<260120.636163> [eDVBLocalTimerHandler] diff is 0
<260120.636585> [eDVBLocalTimerHandler] diff < 120 .. use Transponder Time
<260120.636825> [eDVBLocalTimerHandler] not changed
<260120.637624> [eDVBChannel] getDemux cap=00
<260123.914372> [eEPGCache] abort non avail netmed schedule reading
<260123.915196> [eEPGCache] abort non avail netmed schedule other reading
<260123.915558> [eEPGCache] abort non avail FreeSat schedule_other reading
<260123.915893> [eEPGCache] abort non avail viasat reading
<260123.919780> [eEPGCache] nownext finished(1447019511)
<260161.932567> [eEPGCache] schedule other finished(1447019549)
<260161.944341> [eEPGCache] schedule finished(1447019549)
<260161.945375> [eEPGCache] stop caching events(1447019549)
<260161.945636> [eEPGCache] next update in 60 min


Edited by Beeker, 8 November 2015 - 22:57.

Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Timeshift/recording not working after 4c12411 #6 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 November 2015 - 23:16

Interesting, you run out of demuxers!

Are you using "Descramble receiving http streams" config? (Under settings)

If yes can you disable it?
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Timeshift/recording not working after 4c12411 #7 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 November 2015 - 23:23

Can you try also this one on file dvb.cpp

-if (fe)
+if (fe || (cap & iDVBChannel::capDecode))
			{
				++i;
			}

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Timeshift/recording not working after 4c12411 #8 Beeker

  • PLi® Contributor
  • 1,607 posts

+203
Excellent

Posted 8 November 2015 - 23:27

-Descramble receiving http streams- was disabled already. But Yes or No..It makes no different. Both setting don't work for timeshift/record.


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Timeshift/recording not working after 4c12411 #9 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 November 2015 - 23:41

Try that: https://github.com/a...350a8948a7ca54b

Patch https://github.com/a...48a7ca54b.patch
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Timeshift/recording not working after 4c12411 #10 Beeker

  • PLi® Contributor
  • 1,607 posts

+203
Excellent

Posted 8 November 2015 - 23:47

Now i have this:

diff --git a/dvb.cpp b/dvb.cpp
index 5ddc009..37b7646 100644
--- a/lib/dvb/dvb.cpp
+++ b/lib/dvb/dvb.cpp
@@ -943,7 +943,7 @@ RESULT eDVBResourceManager::allocateDemux(eDVBRegisteredFrontend *fe, ePtr<eDVBA
 		iDVBAdapter *adapter = fe ? fe->m_adapter : m_adapter.begin(); /* look for a demux on the same adapter as the frontend, or the first adapter for dvr playback */
 		int source = fe ? fe->m_frontend->getDVBID() : -1;
 		cap |= capHoldDecodeReference; // this is checked in eDVBChannel::getDemux
-		if (!fe && !(cap & iDVBChannel::capDecode))
+		if (fe || (cap & iDVBChannel::capDecode))
 		{
 			eDebug("[eDVBResourceManager] pvr playback, start with last demux");
 			/*
@@ -953,7 +953,7 @@ RESULT eDVBResourceManager::allocateDemux(eDVBRegisteredFrontend *fe, ePtr<eDVBA
 			 * and start with the last for pvr playback
 			 */
 			i = m_demux.end();
-			--i;
+			++i;
 		}
 		while (i != m_demux.end())
 		{

Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Timeshift/recording not working after 4c12411 #11 Beeker

  • PLi® Contributor
  • 1,607 posts

+203
Excellent

Posted 8 November 2015 - 23:56

I can't use

-			if (fe)

Because it's not in the latest code of dvb.cpp.

iDVBAdapter *adapter = fe ? fe->m_adapter : m_adapter.begin(); /* look for a demux on the same adapter as the frontend, or the first adapter for dvr playback */
		int source = fe ? fe->m_frontend->getDVBID() : -1;
		cap |= capHoldDecodeReference; // this is checked in eDVBChannel::getDemux
		if (!fe && !(cap & iDVBChannel::capDecode))
		{
			eDebug("[eDVBResourceManager] pvr playback, start with last demux");
			/*
			 * For pvr playback, start with the last demux.
			 * On some hardware, we have less ca devices than demuxes,
			 * so we should try to leave the first demuxes for live tv,
			 * and start with the last for pvr playback
			 */
			i = m_demux.end();
			--i;
		}
		while (i != m_demux.end())
		{
			if (i->m_adapter == adapter)
			{
				if (!i->m_inuse)
				{
					/* mark the first unused dem

Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Timeshift/recording not working after 4c12411 #12 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 8 November 2015 - 23:58

It is few lines below, use the patch from my previous post.

Edited by athoik, 8 November 2015 - 23:58.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Timeshift/recording not working after 4c12411 #13 Beeker

  • PLi® Contributor
  • 1,607 posts

+203
Excellent

Posted 9 November 2015 - 00:05

Ok..i missed that. i try your patch now.


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Timeshift/recording not working after 4c12411 #14 Beeker

  • PLi® Contributor
  • 1,607 posts

+203
Excellent

Posted 9 November 2015 - 00:14

Now timeshift and rec working with your patch.


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Timeshift/recording not working after 4c12411 #15 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 9 November 2015 - 00:17

Nice! Thanks for testing.

Edited by athoik, 9 November 2015 - 00:18.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Timeshift/recording not working after 4c12411 #16 Beeker

  • PLi® Contributor
  • 1,607 posts

+203
Excellent

Posted 9 November 2015 - 00:20

You're welcome.


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Timeshift/recording not working after 4c12411 #17 wheelwright

  • Member
  • 21 posts

0
Neutral

Posted 9 November 2015 - 19:16

my vu solo2 also has this issue since I updated today 9.11.15, will this problem be fixed if I update tomorrow?

Re: Timeshift/recording not working after 4c12411 #18 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 9 November 2015 - 19:49

Correct, tomorrow the fix will be in.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Timeshift/recording not working after 4c12411 #19 wheelwright

  • Member
  • 21 posts

0
Neutral

Posted 9 November 2015 - 20:44

athoik, thanks for the reply.
Can I ask why previously recorded TV programs are affected (black screen) but download media plays OK..... are only certain media types affected with black screen play back issues?

Re: Timeshift/recording not working after 4c12411 #20 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 9 November 2015 - 21:02

You can check Demuxers (all/CA) in OpenPLi wiki to get an idea http://wiki.openpli.org/comparison

The boxes that have less CA demuxers had issues if you where trying to descramble http streams
(and http streams are handled like pvr/recording).

PS. It was a nasty bug, but code will become simpler soon

Edited by athoik, 9 November 2015 - 21:03.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916


8 user(s) are reading this topic

0 members, 8 guests, 0 anonymous users