Project

General

Profile

Bug #3733

Parallel Recording/Streaming from 2 or 3 satip devices fail after some time

Added by Nihil Baxter over 8 years ago. Updated over 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
PVR / DVR
Target version:
-
Start date:
2016-04-18
Due date:
% Done:

0%

Estimated time:
Found in version:
all latest
Affected Versions:

Description

I cannot say after which build parallel recording from 2 or 3 satip devices starts to fail, last i tested was build 1797 i think.
But after starting 3 recordings it runs normally for some minutes, then 2 of the recordings stop with "No input source available...." in log and

weight 0 prio 10 error 203
weight 300 prio 10 error 0
weight 300 prio 10 error 0

One recording runs normally till the end, same occurs if watching streams over satip or htsp (one window with dvbviewer, 2 with vlcplayer, 2 of thema stops after some time).
Didn't see that behavior before, but i don't record more than one program at time very often so its not clear with which build its broken.


Files

tvh.log (278 KB) tvh.log Nihil Baxter, 2016-04-18 16:18

History

#1

Updated by Nihil Baxter over 8 years ago

Seems i found a workaround. Disabling "RTSP/TCP (embedded data)"-option in satip-device config did the trick, now i'm running 3 recordings from 3 different muxes and till now no error. Btw, i wonder if that was the problem as i used this option marked for long time without errors and i'm using tvheadend as satip-backend too...

#2

Updated by Jaroslav Kysela over 8 years ago

Could you try this change?

diff --git a/src/httpc.c b/src/httpc.c
index da91f9a..de5ea52 100644
--- a/src/httpc.c
+++ b/src/httpc.c
@@ -980,7 +980,7 @@ retry:
   }

   if (hc->hc_rsize < r + hc->hc_rpos) {
-    if (hc->hc_rsize + r > hc->hc_io_size + 16*1024)
+    if (hc->hc_rsize + r > hc->hc_io_size + 20*1024)
       return http_client_flush(hc, -EMSGSIZE);
     hc->hc_rsize += r;
     hc->hc_rbuf = realloc(hc->hc_rbuf, hc->hc_rsize + 1);
#3

Updated by Jaroslav Kysela over 8 years ago

For my purposes (error -90 means EMSGSIZE - Message too long):

[  ERROR]:satip: OPi: SAT>IP DVB-C Tuner #1 (192.168.0.13:9983) - RTSP error -90 (Die Nachricht ist zu lang) [9874-0]
[  ERROR]:satip: Pi2 : SAT>IP DVB-C Tuner #2 (192.168.0.17:9983) - RTSP error -90 (Die Nachricht ist zu lang) [9874-0]
#4

Updated by Nihil Baxter over 8 years ago

Mmm, howto do that, doing new build?

#5

Updated by C K over 8 years ago

Jaroslav Kysela wrote:

Could you try this change?

Replace "iff" with "diff" and patch

#6

Updated by Nihil Baxter over 8 years ago

Sry, but i never did a patch, only building from repo, so i don't know how to do that ;)

#7

Updated by Jaroslav Kysela over 8 years ago

Just change the number 16 to 20 in src/httpc.c around line 980 - see patch (diff).

#8

Updated by Nihil Baxter over 8 years ago

OK, i did that, builded and installed it, but no difference. If I enable rtsp embedded data setting, i get "no input source available" after some minutes.

#9

Updated by Jaroslav Kysela over 8 years ago

Provide '--trace httpc'.

#10

Updated by Nihil Baxter over 8 years ago

I did a trace, but while doing this it seems that problem isn't there anymore. Don't know why, the only thing i did was rebooting the device, maybe that did the trick, weird.
So its "fixed" but i will need to do some more tests...

#11

Updated by Jaroslav Kysela over 8 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF