catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
327 stars 80 forks source link

HTTP stream stops intermittently #975

Closed kjeacle closed 2 years ago

kjeacle commented 2 years ago

I am using minisatip v1.2.1 to feed a MythTV server. It mostly works but perhaps 20% of recordings fail. Some channels are worse than other. The http stream starts smoothly but then at some random time during the recording, it will just stop. When this happens, attempting to connect to minisatip to join the same stream using VLC will also fail. Restarting minisatip makes everything work again.

The server is running FreeBSD but because there are no native drivers for my DVBSky S952 PCIe card, minisatip is running in a dedicated bhyve VM with 128MB RAM using Alpine Linux.

Here's some log output. Recording started at 18:00 and was due to end at 19:00 but stopped at 18:46.


[02/06 18:45:56.673]: BW 286KB/s, Total BW: 4434 MB, ns/read 450, r: 25, w: 25 fw: 0, tt: 11 ms              
[02/06 18:45:57.813]: BW 277KB/s, Total BW: 4434 MB, ns/read 498, r: 25, w: 25 fw: 0, tt: 12 ms                 
[02/06 18:45:59.011]: BW 354KB/s, Total BW: 4435 MB, ns/read 394, r: 24, w: 24 fw: 0, tt: 9 ms
[02/06 18:46:28.967]: Keeping the adapter 0 open as there are active streams
Message repeated 26 times                                           
[02/06 18:59:59.806]: minisatip.c:1429 allocation_wrapper malloc allocated 32000 bytes at 0x7f948e8d4090
[02/06 18:59:59.806]: select_and_execute[7]: Close on socket 7 (sid:0) from 192.168.1.50:24556 - type http (3) errno 0
[02/06 18:59:59.806]: minisatip.c:1590 allocation_wrapper free called with argument 0x7f948e8d4090
[02/06 18:59:59.806]: Requested sid close 0 timeout 30000 type 1, sock 7, handle 7, timeout 0   
[02/06 18:59:59.806]: closing stream sid 0

I am using: -M "*:1-256" -i 32 -H 1:5 -b 752000:11550720 -B 10000, but I don't know if those options are helping. I just found them suggested while searching for solutions.

As this doesn't happen every time, it's hard to reproduce but any advice on further logging or debugging would be great. Thanks!

catalinii commented 2 years ago

Hi,

Can u upload the log of minisatip by adding -f -l http arguments and also indicate the time it happens.

Thanks

kjeacle commented 2 years ago

Here's the full log for the extract above. Recording stopped at 18:46. recording.log

catalinii commented 2 years ago

Indeed the stream stops without a reason.

I suspect a driver problem, do u have another dvb card or updated drivers?

kjeacle commented 2 years ago

I have a TeVii S480 in another MythTV box that has been working for years. I could try swapping for comparison.

Any recommendations for a new PCIe DVB-S2 twin tuner card welcome.

catalinii commented 2 years ago

I have been using enigma2 boxes for years (gigablue, vu+) for years. Also had TBS cards and I know few folks are using Digital Devices.

Jalle19 commented 2 years ago

Can't go wrong with Digital Devices 👍