Bug #3733
Parallel Recording/Streaming from 2 or 3 satip devices fail after some time
0%
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
History
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...
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);
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]
Updated by C K over 8 years ago
Jaroslav Kysela wrote:
Could you try this change?
Replace "iff" with "diff" and patch
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
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).
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.
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...