I checked out 2.4.5 from git, and that worked even better Some few offset warnings but all patches applied clean and compiled.
Posts by corvy
-
-
Hello HelmutB I did actually revert to original and apply them both again but still the error on the 3 first hunks. When I manually checked I could see that the information was allready there so that might be the issue. I did compile and it works just fine.
I might go for the newest 2.4.5 source, but I was hesitant due to it not being released yet. Thanks for the support!
-
Hello again, found that I needed to apply the first patch and then optionally the second.
But still I get this.
Coderoot@timeshift:/home/timeshift/Nedlastinger/vdr-2.4.4# patch -p1 < ../camtweaks-patch/vdr-2.4.4-camtweaks-2.4.1_scaForceNewCat.patch patching file ci.c Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] y Hunk #1 FAILED at 123. Hunk #2 FAILED at 154. Hunk #3 FAILED at 213. Hunk #4 succeeded at 279 (offset 3 lines).
Now it does compile so I will give this a whirl. It comes down to my lacking german skills... Thanks!
-
Hello HelmutB, was trying to update from 2.4.1 to 2.4.4. Downloaded the patch but I cannot get it to apply cleanly. Am I doing something wrong?
Diff
Display Moreroot@timeshift:/home/timeshift/Nedlastinger/vdr-2.4.4# patch < ../camtweaks-patch/vdr-2.4.4-camtweaks-2.4.1_scaForceNewCat.patch patching file ci.c Hunk #1 succeeded at 117 (offset -6 lines). Hunk #2 succeeded at 149 (offset -6 lines). Hunk #3 succeeded at 208 with fuzz 1 (offset -7 lines). Hunk #4 FAILED at 279. 1 out of 4 hunks FAILED -- saving rejects to file ci.c.rej root@timeshift:/home/timeshift/Nedlastinger/vdr-2.4.4# cat ci.c.rej --- ci.c.orig 2020-07-16 20:59:06.930115072 +0200 +++ ci.c 2020-07-17 17:34:51.073445956 +0200 @@ -279,6 +282,11 @@ void cCaPidReceiver::Receive(const uchar } } if (MtdCamSlot || ScaMapper) { + if (scaForceNewCat) { + catVersion = (catVersion + 0xF) & 0x1F; // pretend a version change + uchar *c = const_cast<uchar *>(p + 5); + *c = (*c & ~0x3E) | (catVersion << 1); // patch version + } // update crc32 uint32_t crc = SI::CRC32::crc32((const char *)p, length - 4, 0xFFFFFFFF); // <TableIdCAT....>[crc32] uchar *c = const_cast<uchar *>(p + length - 4);
-
I am suspecting a poor cable connection. There are more of these than before:
CodeFeb 24 12:13:57 timeshift vdr: [670] read incomplete section - len = 264, r = 268 Feb 24 12:14:08 timeshift vdr: [670] read incomplete section - len = 278, r = 158 Feb 24 12:14:21 timeshift vdr: [670] read incomplete section - len = 457, r = 700
So I will check the cables to see if that works better. Also I have removed the EnableCaModuleTweaks. The TV6 channel was encrypted but it was my wife running the TV at the time so not sure exactly what happened. I have after this error tried the same channel and it works fine.
I think my next order of business is to double-check the coax signal cable.
-
I found that the disable of emergency exit did not stick. I reconfigured this again now and it seems to work. Will keep monitoring.
-
Sadly the server started acting up again this morning. I really do not understand why it suddenly starts crashing.
Updated logs: https://pastebin.com/XEYd1vKj
Should I enable more logging? My run command is "
/usr/local/bin/vdr -P vnsiserver -P ddci2 -d".
-
[Blocked Image: https://i.paste.pics/ff99e690d93cafebf80e1cfa66873eff.png]
Sports in TV today so really important it works. ???
Thanks all for the help. I think it's solved!
-
Yes that sounds right HelmutB. It seems to be crashing when there was many streams being decrypted at the same time. It actually improved when I turned off the machine and powdered it off.
But now we have many hours if use and no crashing. Very happy wife ???
-
I repatched with the new camtweaks and recompiled vdr+plugins. Now it seems more stable. Been running for 3 hours, and that is more than the 5 minutes I got yesterday.
Thanks for the tip davie2000, I will check this file for sure!
-
Not sure what you mean with 5 PIDS to be hones HelmutB but I am still having issues.
The only change I made here was I tried to remove some scheduled recordings and also I disabled the emergency exit (thanks seahawk1986)
I will try the new camtweaks patch now!
-
Thanks for the tip seahawk1986 I will try to stop the recordings and see if that remedies anything.
-
I have been running VDR stable for a long time with ddci2 and MCD patch. This afternoon I suddenly struggle with exit errors all the time. Anyone got any tips?
Logs: https://pastebin.com/2W0rwknn
I am running on a Linux Mint install, fairly updated. The VDR is 2.4.1 with select patches and Digital Devices video card, multi decoding and Conax CAM. All of which have been working just fine for a long time.
-
Hello again HelmutB. Not sure how I fixed it but I went into the GUI setup, enabled CA tweaks under miscellaneous. First time I enabled it and exited it did not stick, but second time I enabled and then chose restart from the GUI and then it worked. Now Camtweaks works again. The others error remains but the WAF is back on-track
-
Hello HelmutB I have just now upgraded to vdr-2.4.1 and this new patch. In my log I get the following error:
Code
Display MoreAug 5 14:30:49 timeshift vdr: [23725] loading /var/lib/vdr/setup.conf Aug 5 14:30:49 timeshift vdr: [23725] ERROR: unknown config parameter: EnableCaModuleTweaks = 1 Aug 5 14:30:49 timeshift vdr: [23725] loading /var/lib/vdr/sources.conf Aug 5 14:30:49 timeshift vdr: [23725] loading /var/lib/vdr/diseqc.conf Aug 5 14:30:49 timeshift vdr: [23725] loading /var/lib/vdr/scr.conf Aug 5 14:30:49 timeshift vdr: [23725] loading /var/lib/vdr/channels.conf Aug 5 14:30:49 timeshift vdr: [23725] loading /var/lib/vdr/timers.conf Aug 5 14:30:49 timeshift vdr: [23725] loading /var/lib/vdr/svdrphosts.conf Aug 5 14:30:49 timeshift vdr: [23725] loading /var/lib/vdr/keymacros.conf Aug 5 14:30:49 timeshift vdr: [23725] loading /var/lib/vdr/camresponses.conf Aug 5 14:30:49 timeshift vdr: [23725] loading /var/lib/vdr/camtweaks.conf
Should I worry about this? Just remove this from setup.conf?
It also seems I cannot get multichannel decrypt:
CodeAug 5 14:30:50 timeshift vdr: [23752] VNSI: Welcome client 'XBMC Media Center' with protocol version '13' Aug 5 14:30:51 timeshift vdr: [23744] CAM 1: module ready Aug 5 14:30:51 timeshift vdr: [23746] CAM 2: no module present Aug 5 14:30:53 timeshift vdr: [23744] CAM 1: Conax Conditional Access, 01, CAFE, BABE Aug 5 14:30:58 timeshift vdr: [23744] CAM 1: system ids: 0B00 Aug 5 14:31:01 timeshift vdr: [23744] CAM 1: doesn't reply to QUERY - only a single channel can be decrypted Aug 5 14:31:01 timeshift vdr: [23725] CAM 1: ready, master (Conax Conditional Access) Aug 5 14:31:01 timeshift vdr: [23725] CAM 2: ready, master (empty) Aug 5 14:31:01 timeshift vdr: [23725] switching to channel 1 C-70-9-101 (NRK1 Østlandssendingen) Aug 5 14:31:01 timeshift vdr: [23756] SVDRP server handler thread started (pid=23725, tid=23756, prio=low)
Second part is this:
Code
Display MoreAug 5 14:31:01 timeshift vdr: [23741] VNSI: Requesting clients to reload channel list Aug 5 14:31:01 timeshift vdr: [23741] VNSI: Requesting clients to reload timers Aug 5 14:31:06 timeshift vdr: [23741] VNSI: Requesting clients to reload channel list Aug 5 14:31:28 timeshift vdr: [23742] --- begin invalid lock sequence report Aug 5 14:31:28 timeshift vdr: [23742] 23730 - - - - - - - - - - U Aug 5 14:31:28 timeshift vdr: [23742] 23730 - W - - - - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23730 - * - - W - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23730 - * - - U - - - - - U Aug 5 14:31:28 timeshift vdr: [23742] 23730 - U - - - - - - - - U Aug 5 14:31:28 timeshift vdr: [23742] 23730 - W - - - - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23730 - * - - W - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23730 - * - - U - - - - - U Aug 5 14:31:28 timeshift vdr: [23742] 23730 - U - - - - - - - - U Aug 5 14:31:28 timeshift vdr: [23742] 23730 - W - - - - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23730 - * - - W - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23730 - * - - U - - - - - U Aug 5 14:31:28 timeshift vdr: [23742] 23730 - U - - - - - - - - U Aug 5 14:31:28 timeshift vdr: [23742] 23730 - W - - - - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23730 - * - - W - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23730 - * - - U - - - - - U Aug 5 14:31:28 timeshift vdr: [23742] 23730 - U - - - - - - - - U Aug 5 14:31:28 timeshift vdr: [23742] 23742 W - - - - - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23742 * - - - R - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23742 * - R - * - - - - - L Aug 5 14:31:28 timeshift vdr: [23742] 23742 invalid lock sequence: 3 Recordings Aug 5 14:31:28 timeshift vdr: [23742] full backtrace: Aug 5 14:31:28 timeshift vdr: [23742] /usr/local/bin/vdr cStateLock::Lock(cStateKey&, bool, int) calling ?? at ??:0 Aug 5 14:31:28 timeshift vdr: [23742] /usr/local/lib/vdr/libvdr-vnsiserver.so.2.4.1 CVNSITimers::Action() at recording.h:237 at ?? at recording.h:299 at CVNSITimers::Action() at vnsitimer.c:459 Aug 5 14:31:28 timeshift vdr: [23742] /usr/local/bin/vdr cThread::StartThread(cThread*) calling ?? at ??:0 Aug 5 14:31:28 timeshift vdr: [23742] /lib/x86_64-linux-gnu/libpthread.so.0 at pthread_create.c:463 Aug 5 14:31:28 timeshift vdr: [23742] /lib/x86_64-linux-gnu/libc.so.6 clone at clone.S:97 Aug 5 14:31:28 timeshift vdr: [23742] --- end invalid lock sequence report Aug 5 14:31:28 timeshift vdr: [23742] --- THERE WILL BE NO FURTHER REPORTS UNTIL VDR IS RESTARTED!
camtweaks.conf:
Code
Display More# --- CaModule-Tweaks configfile (experimental) --- # CAM lines are added by VDR # Format [ (*) -> user configurable ]: # (*)Flags,(*)Limit,<AppManufacturer:ManufacturerCode,CamTitle> # # Flags (uint32) : OR'ed combination of: # CAMTWEAK_ENABLED 0x1 - enable/disable tweaks for this module # CAMTWEAK_FORCE_MCD 0x2 - force multi channel decryption (skip CA_PMT querying) # CAMTWEAK_AVOID_MTD 0x4 - not all CAMs will work with the MTD generated PIDs # # Limit (int) : the number of programs the CAM can decrypt simultaneously # : (applies only if CAMTWEAK_FORCE_MCD is set): # 0 -> no limit (for testing, up to VDR/CAM failure), 1 -> no MCD, 2...n -> a save CAM limit # # Example: 0x3,2,<... -> tweaks enabled, MCD forced, MTD allowed, CAM can deyrypt 2 programs # 0x3,4,<CAFE:BABE,Conax Conditional Access> 0x0,0,<0B00:04B1,Conax 4.00e>
I also have the DDCI2 and VNSISERVER plugins compiled and enabled.
-
Well .. if this is my issue it seems to not have a solution for now. Very strange stuff. Maybe I could do with just restarting the VNSI server plugin of VDR to solve it?
-
Hello, been working fine until today. Suddenly I got error "no data".
Here I captured the logs before I fixed it with a reboot:
QuoteJun 3 22:23:04 timeshift vdr: [1739] loading /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
Jun 3 22:23:04 timeshift vdr: [1739] VNSI: Klient med ID 159 tilkoblet: 10.0.0.114:58572
3.6 22:23:04 tidsforskyvningen VDR: [14052] VNSI klient 159-> 10.0.0.114:58572 tråd startet (PID = 1721 Tid = 14052, prio = høy)
Jun 3 22:23:04 timeshift vdr: [14052] VNSI: Velkommen klient 'XBMC Media Center' med protokollversjon '13'
Jun 3 22:23:04 timeshift vdr: [14052] VNSI: LiveStreamer :: Lukk - lukk
Jun 3 22:23:04 timeshift vdr: [14052] VNSI: lukk videoinngang ...
Jun 3 22:23:04 timeshift vdr: [14052] CAM 1/2: gjenbruk av MTD CAM-sporet
Jun 3 22:23:04 timeshift vdr: [14052] CAM 1: Tilordnet til enhet 2
3.6 22:23:04 tidsforskyvningen VDR: [14052] VNSI: ble funnet følgende anordning: 0x55ce5d55b240 (2) for å motta, prioritet = 0
Juni 3 22:23:04 timeshift vdr: [14052] BuildCaPmts: [1] ActiveProgs: 0 of 1
Jun 3 22:23:04 timeshift vdr: [14053] enhet 2 mottaker tråd startet (pid = 1721, tid = 14053, prio = høy)
Jun 3 22:23:04 timeshift vdr: [14052] SendCaPmts: [0] aktiver i CAM: 0 -> 0
Jun 3 22:23:04 timeshift vdr: [14052] VNSI: Dummy-mottaker (0x7f45d400bf10) aktivert
Jun 3 22:23:04 timeshift vdr: [14054] enhet 2 TS buffer tråd startet (pid = 1721, tid = 14054, prio = høy)
Jun 3 22:23:04 timeshift vdr: [14052] VNSI: aktiver live mottaker: 1
Juni 3 22:23:04 timeshift vdr: [14052] BuildCaPmts: [1] ActiveProgs: 1 of 1
Jun 3 22:23:04 timeshift vdr: [14052] SendCaPmts: [1] aktiver i CAM: 0 -> 1
Jun 3 22:23:04 timeshift vdr: [14052] VNSI: Vellykket byttet til kanal 1 - NRK1 Østlandssendingen
Jun 3 22:23:04 timeshift vdr: [14052] VNSI: Startet streaming av kanal NRK1 Østlandssendingen (timeout 10 sekunder)
Jun 3 22:23:04 timeshift vdr: [14055] cLiveStreamer stream prosessor tråd startet (pid = 1721, tid = 14055, prio = høy)
Jun 3 22:23:04 timeshift vdr: [1739] loading /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
Jun 3 22:23:04 timeshift vdr: [1739] VNSI: Klient med ID 160 tilkoblet: 10.0.0.114:58573
Jun 3 22:23:04 timeshift vdr: [14056] VNSI Client 160-> 10.0.0.114:58573 tråd startet (pid = 1721, tid = 14056, prio = høy)
Jun 3 22:23:04 timeshift vdr: [14056] VNSI: Velkommen klient 'XBMC Media Center' med protokollversjon '13'
Jun 3 22:23:04 timeshift vdr: [14056] VNSI klient 160-> 10.0.0.114:58573 tråd avsluttet (pid = 1721, tid = 14056)
3 juni 22:23:04 timeshift kernel: [746320,263812] dvb_frontend: dvb_frontend_get_frequency_limits: frekvensintervall: tuner: 48000000 ... 864 millioner, frontend: 47000000 ... 865 000 000
Jun 3 22:23:04 timeshift vdr: [1740] VNSI: fjerner klient med ID 160 fra klientliste
Jun 3 22:23:05 timeshift vdr: [14055] VNSI: Laget strøm for pid = 512 og type = 8
3.6 22:23:05 tidsforskyvningen VDR: [14055] VNSI: Laget strøm for PID = 641 og type = 1
Jun 3 22:23:05 timeshift vdr: [14055] VNSI: Laget strøm for pid = 640 og type = 5
3.6 22:23:05 tidsforskyvningen VDR: [14055] VNSI: Laget strøm for PID = 600 og type = 10
3.6 22:23:05 tidsforskyvningen VDR: [14055] VNSI: Laget strøm for PID = 601 og type = 10
3.6 22:23:05 tidsforskyvningen VDR: [14055] VNSI: Laget strøm for PID = 3003 og type = 12
Jun 3 22:23:14 timeshift vdr: [14055] VNSI: Kanal: ingen data 16
After a reboot it works, logs::
QuoteJun 3 22:27:03 timeshift vdr: [1836] CAM 1: Ufordelt fra enhet 2
Jun 3 22:27:03 timeshift vdr: [1836] VNSI: Dummy-mottaker (0x7f6040111400) deaktivert
Jun 3 22:27:03 timeshift vdr: [1836] VNSI: Lukk videoinngang ...
Jun 3 22:27:03 timeshift vdr: [1836] VNSI: cxSocket :: les (fd = 33): eof, tilkobling lukket
Jun 3 22:27:03 timeshift vdr: [1836] VNSI Client 4-> 10.0.0.114:58777 tråd avsluttet (pid = 1304, tid = 1836)
Jun 3 22:27:03 timeshift vdr: [1323] loading /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
Jun 3 22:27:03 timeshift vdr: [1323] VNSI: Klient med ID 6 tilkoblet: 10.0.0.114:58783
Jun 3 22:27:03 timeshift vdr: [1896] VNSI Client 6-> 10.0.0.114:58783 tråd startet (pid = 1304, tid = 1896, prio = høy)
Jun 3 22:27:03 timeshift vdr: [1896] VNSI: Velkommen klient 'XBMC Media Center' med protokollversjon '13'
Jun 3 22:27:03 timeshift vdr: [1896] VNSI: LiveStreamer :: Lukk - lukk
Jun 3 22:27:03 timeshift vdr: [1896] VNSI: lukk videoinngang ...
Jun 3 22:27:03 timeshift vdr: [1896] CAM 1: CanDecrypt (163)
Jun 3 22:27:03 timeshift vdr: [1896] CAM 1: CanDecrypt (163) grense 4 - aktiv 0 -> SANT
Jun 3 22:27:03 timeshift vdr: [1896] CAM 1: CanDecrypt (163)
Jun 3 22:27:03 timeshift vdr: [1896] CAM 1: CanDecrypt (163) grense 4 - aktiv 0 -> SANT
Jun 3 22:27:03 timeshift vdr: [1896] VNSI: Vellykket funnet følgende enhet: 0x556bfc061ed0 (1) for mottak, prioritet = 0
Juni 3 22:27:03 timeshift vdr: [1896] BuildCaPmts: [1] ActiveProgs: 1 of 2
Jun 3 22:27:03 timeshift vdr: [1896] SendCaPmts: [0] aktiver i CAM: 0 -> 1
Jun 3 22:27:03 timeshift vdr: [1896] VNSI: Dummy-mottaker (0x7f604000b380) aktivert
Jun 3 22:27:03 timeshift vdr: [1896] VNSI: aktiver live mottaker: 1
Juni 3 22:27:03 timeshift vdr: [1896] BuildCaPmts: [1] ActiveProgs: 2 of 2
Juni 3 22:27:03 timeshift vdr: [1896] SendCaPmts: [1] aktiver i CAM: 1 -> 2
Jun 3 22:27:03 timeshift vdr: [1896] VNSI: Vellykket byttet til kanal 6 - TV2 Livsstil HD
Jun 3 22:27:03 timeshift vdr: [1896] VNSI: Start streaming TV2 Livsstil HD (timeout 10 sekunder)
Jun 3 22:27:03 timeshift vdr: [1897] cLiveStreamer stream prosessor tråd startet (pid = 1304, tid = 1897, prio = høy)
Jun 3 22:27:03 timeshift vdr: [1323] loading /var/lib/vdr/plugins/vnsiserver/allowed_hosts.conf
Jun 3 22:27:03 timeshift vdr: [1323] VNSI: Klient med ID 7 tilkoblet: 10.0.0.114:58784
Jun 3 22:27:03 timeshift vdr: [1898] VNSI Client 7-> 10.0.0.114:58784 tråd startet (pid = 1304, tid = 1898, prio = høy)
Jun 3 22:27:03 timeshift vdr: [1898] VNSI: Velkommen klient 'XBMC Media Center' med protokollversjon '13'
Jun 3 22:27:03 timeshift vdr: [1898] VNSI Client 7-> 10.0.0.114:58784 tråd avsluttet (pid = 1304, tid = 1898)
Jun 3 22:27:03 timeshift vdr: [1842] enhet 2 TS buffer tråd endte (pid = 1304, tid = 1842)
Jun 3 22:27:03 timeshift vdr: [1841] bufferstatistikk: 114680 (2%) brukt
Jun 3 22:27:03 timeshift vdr: [1841] enhet 2 mottaker tråd endte (pid = 1304, tid = 1841)
Jun 3 22:27:03 timeshift vdr: [1324] VNSI: fjerner klient med ID 4 fra klientliste
Jun 3 22:27:03 timeshift vdr: [1324] VNSI: fjerner klient med ID 7 fra klientliste
Jun 3 22:27:03 timeshift vdr: [1897] VNSI: Laget strøm for pid = 1069 og type = 8
Jun 3 22:27:03 timeshift vdr: [1897] VNSI: Laget strøm for pid = 3168 og type = 2
Jun 3 22:27:04 timeshift vdr: [1897] VNSI: Lydstrømskifte, pid: 3168, kanaler: 2, samplerate: 48000
3 juni 22:27:04 timeshift vdr: [1897] VNSI: Video stream endring, pid: 1069, bredde: 1280, høyde: 720, aspekt: 1,777778
3 juni 22:27:04 timeshift kernel: [160.533873] dvb_frontend: dvb_frontend_get_frequency_limits: frekvensintervall: tuner: 48000000 ... 864 000 000, frontend: 47000000 ... 865 000 000
Complete syslog attached.
-
-
So HelmutB should I apply both of these patches or only the check_all one? My german is not good enough
-
I tried to manually patch, and it compiles fine. I think the reason is that I have the CAT debug enabled.
If you would be bothered to double-check that this patch is correctly applied. I have compiled, installed and tested - so far it looks good.