catalinii / minisatip

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

No subtitles #1161

Open VizDock opened 4 months ago

VizDock commented 4 months ago

I wrote it on minisatip forum, had no reply, so I thought to post here. Tvheadend using minisatip with DDCI for one CAID, and oscam for second caid. All channels using DDCI for decoding show subtitles. If I choose channel that can be decoded with DDCI and OSCAM (channel which can be decoded with both CAIDS), minisatip choose oscam and no subtitles. Also channels that can only be decoded with oscam - no subtitles. If I remove oscam connection from minisatip, and make tvheadend use oscam for decoding, then subtitles show. Even though it works, channel switching is slower, because when minisatip is in charge of decoding, I can put checkmark in tvheadend 'remove scrambled bit' and it works really fast. And I would like to use DDCI as prefered method of decoding, cos my CAM can decode 7-8 channels simultaneously. Log attached log2.zip

Jalle19 commented 4 months ago

So you mean that whenever minisatip uses oscam for decrypting, subtitles don't work?

Jalle19 commented 4 months ago

Prioritizing DDCI over oscam is another issue, I'm not sure how we want that to work.

VizDock commented 4 months ago

Whatever channel I choose from available channels which I can decode with oscam (only one caid), no subtitles. I assumed that prioritizing DDCI over oscam is another issue, but it would be nice :) I can decode only one channel at same time with oscam, and with DDCI I can decode 7-8 not sure, depends on bandwidth of channels that are opened at the same time. So it would be nice if could set DDCI as prefered, for channels that can be decoded with both DDCI and oscam.

catalinii commented 4 months ago

Can you comment those 2 lines? https://github.com/catalinii/minisatip/blob/master/src/ca.c#L299 And 300

VizDock commented 4 months ago

Can you comment those 2 lines? https://github.com/catalinii/minisatip/blob/master/src/ca.c#L299 And 300

Just did that, same outcome, no subtitles. Tried two channels, switching subtitles from Croatian to some other, nothing is shown. Here is log minisatiplog.zip

Edit: btw, I can provide remote access if it would help to make things easier

catalinii commented 4 months ago

Hi,

can you upload a log for the same channel, where 2224 is the subtitle pid ?

Thanks

VizDock commented 4 months ago

Hi I can't find any channel that I can decode with oscam and have subtitle on PID 2224 Can you choose another PID?

mathanimas commented 4 months ago

Hi,

I had a similar problem (as described on minisatip forum; with a log file that looks unsuspicious to me, but happens to contain a subtitle stream with PID 2224).

Commenting out these two lines (229 and 300) in src/ca.c did the trick for me. — Thanks!

@catalinii: While everything is working for me now, please let me know if I can assist in further debugging and/or making this patch unnecessary.

VizDock commented 4 months ago

Hi,

I had a similar problem (as described on minisatip forum; with a log file that looks unsuspicious to me, but happens to contain a subtitle stream with PID 2224).

Commenting out these two lines (229 and 300) in src/ca.c did the trick for me. — Thanks!

@catalinii: While everything is working for me now, please let me know if I can assist in further debugging and/or making this patch unnecessary.

Hi Thanks, but commenting out those two lines didn't help in my case. Each channel have several subtitle PIDs and none of them works. And basically PIDs are different on all channels. Not on same PID. Only thing in common is that they are decoded with oscam and Caid is 1830 Can't figure out anything else

pic1

Jalle19 commented 4 months ago

Can you comment those 2 lines? https://github.com/catalinii/minisatip/blob/master/src/ca.c#L299 And 300

Should we make this change permanent? Or would it be even better to somehow detect which PIDs are actually encrypted and only add those?

catalinii commented 4 months ago

Ideally yes, some CAMs are not decrypting large PMT CAs

catalinii commented 4 months ago

Yes to the detection

Jalle19 commented 4 months ago

I'm not confident I'm able to implement this, do you wanna have a go at it @catalinii ?