Project

General

Profile

Actions

Bug #4193

closed

Descrambled services/muxes are regocnized as scrambled and can not be played.

Added by Paul Brunniem about 8 years ago. Updated about 8 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Descrambling
Target version:
-
Start date:
2017-01-25
Due date:
% Done:

100%

Estimated time:
Found in version:
4.1-2405~geb495a0~xenial
Affected Versions:

Description

Hi,
I have a setup with an IPTV .m3u List and an automatic Network. The List is provided by an enigma2 receiver with CI+ module. The Receiver gives mpeg-ts streams with descrambled video and audio. But, TVH recognizes the services extracted from the muxes as encrypted (services tab -> column "Encrypted"). So playing a mux with VLC is possible but playing the service is not possible (no output). Mapping the service to a channel is possible, but I'm not able to play it ether. I guess TVH fails here because the stream is encrypted (but is not) and I have no descrambling things configured.

I whould expect that TVH gives the output to the client even if it can not descramble or that there is a possibility to say TVH that a service is not encrypted.

I wrote about the issue in the forum. https://tvheadend.org/boards/5/topics/24497

Here are the results of my investigation so far:

The tv receiver delivers mpeg-ts streams. Here is an example from tvheadend.

Channel Junior:
Is encrypted, can be watched in the receiver and in TVH over the muxes tab.
VLC shows following codec info on playback:

Stream 0
    Type: Video
    Original ID: 1791
    Codec: H264 - MPEG-4 AVC (part 10) (h264)
    Resolution: 720x578
    Display resolution: 720x576
    Frame rate: 25
    Decoded format: Planar 4:2:0 YUV
Stream 1
    Type: Audio
    Original ID: 1792
    Codec: MPEG Audio layer 1/2 (mpga)
    Language: German
    Channels: Stereo
    Sample rate: 48000 Hz
    Bitrate: 192 kb/s
Program 19
    Scrambled: Yes

On the services tab TVH has created the service entry (encrypted: yes) with following info:

Index    PID    Type    Language    Details
     0x06ff /  1791    PCR          
     0x0066 /   102    PMT          
4    0x06ff /  1791    H264          
5    0x0700 /  1792    MPEG2AUDIO    ger     
1    0x1b70 /  7024    CA         CAIDS: 09c4:000000
2    0x1a70 /  6768    CA         CAIDS: 098c:000000
3    0x1f70 /  8048    CA         CAIDS: 09af:000000

After filtering and reordering (without PCR and PMT)
Index    PID    Type    Language    Details
4    0x06ff /  1791    H264          
5    0x0700 /  1792    MPEG2AUDIO    ger     
1    0x1b70 /  7024    CA         CAIDS: 09c4:000000
2    0x1a70 /  6768    CA         CAIDS: 098c:000000
3    0x1f70 /  8048    CA         CAIDS: 09af:000000

When I play the service, VLC can not play it (no error or something, just no output) and shows following codec info:

Stream 0
    Type: Video
    Original ID: 1791
    Codec: H264 - MPEG-4 AVC (part 10) (h264)
Stream 1
    Type: Audio
    Original ID: 1792
    Codec: MPEG Audio layer 1/2 (mpga)
    Language: German
    Description: clean effects

There are no errors in TVH web interface log all the time.

My solution in the meantime is to push the IPTV mpeg-ts through ffmpeg pipe to filter all unknown streams. So the CA streams are filtered.

The pipe looks like this:

pipe:///usr/bin/ffmpeg -loglevel fatal -i http://INPUT -map 0 -c copy -ignore_unknown -metadata service_provider=PROVIDER -metadata service_name=CHANNEL -f mpegts -tune zerolatency pipe:1

After that TVH generates the services without encrypted flag and I'm able to play the services, map them to channels, watch in Kodi and do records over TVH.

But:
It is slower and sometimes not really stable.

P.S.: I don't know if the category is right.


Files

debuglog_20170202_214200.txt (6.72 KB) debuglog_20170202_214200.txt Paul Brunniem, 2017-02-02 21:49
debuglog_vlc_20170202_221500.log (4.98 KB) debuglog_vlc_20170202_221500.log Paul Brunniem, 2017-02-02 22:19
debuglog_tvh_20170202_221500.log (18.2 KB) debuglog_tvh_20170202_221500.log Paul Brunniem, 2017-02-02 22:19
debuglog_vlc_20170202_223400.log (8.25 KB) debuglog_vlc_20170202_223400.log Paul Brunniem, 2017-02-02 22:36
debuglog_tvh_20170202_223400.log (6.97 KB) debuglog_tvh_20170202_223400.log Paul Brunniem, 2017-02-02 22:36
tracelog_tvh_20170206_210300.txt (2.31 MB) tracelog_tvh_20170206_210300.txt Paul Brunniem, 2017-02-06 21:06
tracelog_tvh_oscam_default_20170207_222500.txt (632 KB) tracelog_tvh_oscam_default_20170207_222500.txt oscam_default Paul Brunniem, 2017-02-07 22:26
tracelog_tvh_oscam_newest_20170207_223000.txt (572 KB) tracelog_tvh_oscam_newest_20170207_223000.txt oscam_newest Paul Brunniem, 2017-02-07 22:31
debuglog_vlc_directplay_20170207_194200.log (23.4 KB) debuglog_vlc_directplay_20170207_194200.log Paul Brunniem, 2017-02-07 23:05
tvheadend_gdb_valgrind_force_ca_ffff.txt (15.1 KB) tvheadend_gdb_valgrind_force_ca_ffff.txt Joe User, 2017-02-10 17:47
tracelog_tvh_20170219_215100.txt (813 KB) tracelog_tvh_20170219_215100.txt Paul Brunniem, 2017-02-19 21:58
debuglog_vlc_20170219_220000.log (16.2 KB) debuglog_vlc_20170219_220000.log Paul Brunniem, 2017-02-19 22:03
debuglog_vlc_20170220_203200.log (16.6 KB) debuglog_vlc_20170220_203200.log Paul Brunniem, 2017-02-20 22:58
tracelog_tvh_htsp_20170220_225400.txt (1.8 MB) tracelog_tvh_htsp_20170220_225400.txt Paul Brunniem, 2017-02-20 22:59
tracelog_tvh_20170220_203200.txt (3.67 MB) tracelog_tvh_20170220_203200.txt Paul Brunniem, 2017-02-20 22:59
tracelog_tvh_htsp_20170221_213500.txt (1.23 MB) tracelog_tvh_htsp_20170221_213500.txt Paul Brunniem, 2017-02-21 21:40
Actions

Also available in: Atom PDF