I got a decrypted "ORF2St_HD" stream from an undisclosed source.
I can play the stream in VLC without a problem. At the national/local transition, there is a small glitch in the picture and sound, but otherwise the stream keeps playing.
When I feed the stream into TVH as a mux dump, the stream works up until the national/local transition, it then has a glitch and plays for a few more seconds before the stream dies.
I was watching the PIDs in the Status/Streaming screen and I briefly saw more PIDs appear before the stream stopped.
In the log, I can see that the transition is recognised, but I then get lots of decryption messages as the stream fails.
2025-11-02 10:57:05.747 [ DEBUG]:tbl-base: pmt: Service "TSfile Network/Multiplex [onid:0001 tsid:03ED]/ORF2St HD" PMT (version 12) updated, PCR PID changed, New elementary stream, Stream deleted, Language changed, Audio type changed
2025-11-02 10:57:31.885 [ DEBUG]:tbl-base: pmt: Service "TSfile Network/Multiplex [onid:0001 tsid:03ED]/ORF2St HD" PMT (version 14) updated, PCR PID changed, New elementary stream, Stream deleted, Language changed, Audio type changed
*** Here TVH sees the encryption change.
2025-11-02 10:57:40.241 [ DEBUG]:tbl-base: pmt: Service "TSfile Network/Multiplex [onid:0001 tsid:03ED]/ORF2St HD" PMT (version 15) updated, New CA stream, New CAID
2025-11-02 10:57:40.270 [ DEBUG]:service: TSfile Network/Multiplex [onid:0001 tsid:03ED]/ORF2St HD: Status changed to [Hardware input] [Input on service] [Demuxed packets] [Reassembled packets] [No available descrambler] [No access]
2025-11-02 10:57:40.765 [WARNING]:subscription: 0002: service instance is bad, reason: No descrambler
2025-11-02 10:57:42.768 [ DEBUG]:service: 1: ORF2St HD si 0x7ca0d800d960 TSFile weight 0 prio 10 error 400 (No descrambler)
2025-11-02 10:57:42.768 [WARNING]:webui: Couldn't start streaming /stream/channel/e5e7f551b803728611ee0d156e5f2fc0?ticket=2f75f2bda6b7eab98daeb2e86128d6765fc8357a, No descrambler
I think that the problem is not with the change of programme PIDs, but with the change in encryption status.
Looking at dvb_psi_pmt.c, it does recognise some changes to CA parameters, and I can see some of those messages in the log. TVH seems to be recognising the change in encryption, it is just not applying those changes correctly.
Perhaps the PMT_UPDATE_CAID_DELETED flag is not being set correctly. The stream is not CHANGING encryption, it is LOSING encryption.
I'm afraid that I am probably getting close to the end of what I can achieve on my system. In Australia, our DVB-T is not encrypted and our encrypted pay TV services all have proprietary set-top-boxes. I don't have the resources, or domain knowledge, to proceed much further.