Eurocardsharing

Go Back   Eurocardsharing > Sharing receivers > VDR and Kaffeine

VDR and Kaffeine Discussion, sasc-ng and ORF HD at Sharing receivers forum; Hi, I've been a happy user of oscam/ sasc-ng / mythtv since last year. Channel lineup includes sky and orf. ...

Reply
 
LinkBack Thread Tools Display Modes
sasc-ng and ORF HD
Old
  (#1)
yacss
Junior Member
 
yacss's Avatar
 
Offline
Posts: 11

Level: 2 [♥ Bé-Yêu ♥]
Life: 0 / 28
Magic: 3 / 526
Experience: 12%

Thanks: 1
Thanked 1 Time in 1 Post
Join Date: Jul 2011
sasc-ng and ORF HD - 25-May-2012, 16:07

Hi,
I've been a happy user of oscam/ sasc-ng / mythtv since last year. Channel lineup includes sky and orf. Since about beginning of the month, ORF HD stopped working - not just on my system bot also on similar systems of some friends.

Today I finaly got round to checking what was going on: sysc-ng no longer even tried to decode the orf hd channels. some work with dvbsnoop and gdb turned up the source of the problem:

sasc-ng tries to read the PAT and all PMTs on the tuned transponder to find decryption info and what PIDs actually need decryption.

The PAT for the transceiver now incudes a refernce to a Program (SID 4915, Pid 111 for the PMT) that is not actually sent on the transponder. This makes sasc-ng wait for the 111 PMT until a timeout occurs and results in failure to get required info for decryption.

here's a patch for sasc-ng that fixes the issue:
Code:
diff -ur vdr-sasc-ng/contrib/sasc-ng/dvbloopback/src/plugin_getsid.c vdr-sasc-ng.new/contrib/sasc-ng/dvbloopback/src/plugin_getsid.c
--- vdr-sasc-ng/contrib/sasc-ng/dvbloopback/src/plugin_getsid.c	2011-07-27 07:57:52.472588165 +0200
+++ vdr-sasc-ng.new/contrib/sasc-ng/dvbloopback/src/plugin_getsid.c	2012-05-25 13:57:50.733026000 +0200
@@ -55,6 +55,7 @@
   __u16 pid;
   int   fd;
   int used;
+  int pollretries;
   int parse_err;
 };
 
@@ -229,7 +230,7 @@
       list_add(&sidnum->list, &filt->sids);
     } else {
       pat->has_nit = pid;
-      dprintf2("found NIT at PID: %d", pid);
+      dprintf2("found NIT at PID: %d\n", pid);
     }
   }
   return 0;
@@ -431,6 +432,7 @@
 static int start(char *dmxdev, struct sid_data *sid_data, int timeout) {
   unsigned char pes[4096];
   struct pollfd  pfd, pollfd[MAX_SIMULTANEOUS_PMT];
+  int pollretries[MAX_SIMULTANEOUS_PMT];
   int pat_restart = 0, done = 0, size, i;
   int ret;
 
@@ -577,14 +579,21 @@
           pollfd[count].fd=filt->fd;
           pollfd[count].events = POLLIN;
           pollfd[count].revents = 0;
+          pollretries[count] = filt->pollretries++;
           count++;
         }
       }
       dprintf3("polling %d fds\n", count);
       poll(pollfd, count, timeout);
       for(i = 0; i < count; i++) {
-        if(! (pollfd[i].revents & POLLIN))
+        if(! (pollfd[i].revents & POLLIN)) {
+          // stop waiting if no data comes for too long..
+          if (pollretries[i] >= 10) {
+            dprintf0("start: giving up wait for pid on filter %d, no data found...\n",i);
+            found++;
+          }
           continue;
+        }
         // read pmt
         while((size = read(pollfd[i].fd, pes, sizeof(pes))) >= 3) {
           struct filter *filt;
@@ -745,6 +754,8 @@
       } else {
         dprintf0("Didn't find sid for pid: %d\n", dmxcmd->pid);
       }
+    } else {
+        dprintf0("Didn't find sid for pid: %d\n", dmxcmd->pid);
     }
   }
 }
Hope this helps someone else also experiencing problems with sasc-ng and orf HD channels.
   
Reply With Quote
The Following User Says Thank You to yacss For This Useful Post:
macid (04-June-2012)
Old
  (#2)
bunghole
Junior Member
 
bunghole's Avatar
 
Offline
Posts: 18

Level: 2 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Life: 0 / 49
Magic: 6 / 1049
Experience: 97%

Thanks: 3
Thanked 0 Times in 0 Posts
Join Date: Sep 2010
05-June-2012, 15:33

The patch is already in the trunk!
   
Reply With Quote
Sponsored Links
Reply

Bookmarks

Tags
orf hd, sasc-ng


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



ECS on RSS ECS on Twitter ECS on Facebook ECS on Youtube
Follow us on:

Powered by vBulletin
Copyright 2002 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
Dreambox