catalinii / minisatip

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

Signal quality/CC errors not populated "randomly" in a minisatip instance connected as client to another minisatip server #788

Closed brainstormi closed 2 months ago

brainstormi commented 3 years ago

Hi... Due to reasons about reliability of tvheadend decrypting and certain satip client devices, I had to configure another minisatip instance in the middle acting as "proxy" in some way. Tvh connect to this instance trough TCP and this last one to another minisatip server in a different network (TCP or UDP mode has the same outcome):

TvH ----> minisatip (proxy/decrypting) ----> minisatip server (RAW TS stream, no decryption) ----> dvb-s2 usb tunner

First of all the solution run stable, no complains about there. There are some minor things I notice and I expect you can support me to understand it:

Regards,

catalinii commented 3 years ago

1) Can you check after 3 seconds after the channel is changed? Generally it should take few seconds to see the new signal. 2) CC calculation is done individually by each minisatip/tvh. If you see CC on the tvh but nothing on minisatip maybe that link is the problem.

Generally packets can be lost because of 3 main reasons:

First can appear just on the minisatip that has access to the hardware, the other 2 can appear anywhere. Related to tvh, make sure tvh uses also TCP

brainstormi commented 3 years ago

Hi @catalinii Thanks for your quick feedback. Inline with your points:

  1. Signal reporting is never displayed if it doesn't work at the beginning when changing the channel.
  2. Original CC errors reported by minisatip connected to the DVBS2 usb adapter are due to weak signal, nothing can be done there, I agree. The issue is the minisatip instance sitting in the middle between this one and tvheadend, being the only one not detecting in some cases these CC errors, it doesn't matter if it's connected through UDP or TCP, although I discarded network issues, after checking no TCP/UDP errors are reporting, no packet drops or errors after increasing OS buffers values to about 2MB (rmem_max and wmem_max). So, basically minisatip "source" detect a CC errors due to Weak Signal, minisatip bridge/proxy sometimes doesn't detect them and tvheadend at the end of this chain, also sees the same CC errors reported by the first feeding all this stream.

TvH ----> minisatip (proxy/decrypting) ----> minisatip server (RAW TS stream, no decryption) ----> dvb-s2 usb tunner

lars18th commented 1 year ago

Hi @brainstormi ,

I feel this is resolved with recent versions. Please could you check it for closing this issue? Thank you.

Jalle19 commented 2 months ago

Closing this, cannot seem to replicate it anymore