Bug #6201
emm=1 causes TVH to crash/restart?
0%
Description
I have been trying to get TVH working with OSCAM stream relay. One of the options that stream relay requires is the EMM included in the stream.
Using https://github.com/dave-p/TVH-API-docs/wiki/Other-Functions#stream
This is what I am trying to do http://10.0.1.200:9981/stream/service/64e5d2cc7df21db69292e27db6bd6f3f?profile=pass&descramble=0&emm=1
Requesting that address crashes/restarts TVH.
History
Updated by Flole Systems about 2 years ago
- Status changed from New to Invalid
No stacktrace provided
Updated by Chris G about 2 years ago
Is this what you wanted?
It gives `Assertion failed...` then restarts.
2022-09-13 17:00:22.331 [ INFO] subscription: 0001: "HTTP" subscribing to service "19.2E/11914H/Sky Sport Top Event HD", weight: 100, adapter: "TurboSight TBS 6908 DVB-S/S2 #3 : DVB-S #0", network: "19.2E", mux: "11914H", provider: "SKY", profile="pass", hostname="10.0.1.184", client="VLC/3.0.16 LibVLC/3.0.16" Assertion failed: s->s_cat_mon == NULL (src/input/mpegts/mpegts_input.c: mpegts_input_open_cat_monitor: 824) 2022-09-13 17:00:23.017 [ INFO] main: Log started 2022-09-13 17:00:23.017 [ INFO] http: Starting HTTP server 0.0.0.0:9981 2022-09-13 17:00:23.018 [ INFO] htsp: Starting HTSP server 0.0.0.0:9982 2022-09-13 17:00:23.069 [ INFO] config: loaded 2022-09-13 17:00:23.069 [ INFO] config: scanfile (re)initialization with path /config/scan_tables 2022-09-13 17:00:23.070 [ INFO] transcode: 'video' context type registered 2022-09-13 17:00:23.070 [ INFO] transcode: 'audio' context type registered 2022-09-13 17:00:23.070 [ INFO] transcode: '&TVHH264Decoder' decoder helper registered 2022-09-13 17:00:23.070 [ INFO] transcode: '&TVHTHEORADecoder' decoder helper registered 2022-09-13 17:00:23.070 [ INFO] transcode: '&TVHAACDecoder' decoder helper registered 2022-09-13 17:00:23.070 [ INFO] transcode: '&TVHVORBISDecoder' decoder helper registered 2022-09-13 17:00:23.070 [ INFO] transcode: '&TVHOPUSDecoder' decoder helper registered 2022-09-13 17:00:23.070 [ INFO] transcode: '&TVHMPEG2VIDEOEncoder' encoder helper registered 2022-09-13 17:00:23.070 [ INFO] transcode: '&TVHH264Encoder' encoder helper registered 2022-09-13 17:00:23.070 [ INFO] transcode: '&TVHHEVCEncoder' encoder helper registered 2022-09-13 17:00:23.070 [ INFO] transcode: '&TVHAACEncoder' encoder helper registered 2022-09-13 17:00:23.070 [ INFO] codec: 'mpeg2video' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'mp2' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'aac' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'vorbis' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'flac' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'libx264' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'libx265' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'libvpx' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'libvpx-vp9' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'libtheora' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'libvorbis' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'libopus' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'h264_vaapi' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'hevc_vaapi' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'vp8_vaapi' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'vp9_vaapi' encoder registered 2022-09-13 17:00:23.070 [ INFO] codec: 'webtv-h264' codec profile created 2022-09-13 17:00:23.070 [ INFO] codec: 'webtv-vorbis' codec profile created 2022-09-13 17:00:23.070 [ INFO] codec: 'webtv-vp8' codec profile created 2022-09-13 17:00:23.070 [ INFO] codec: 'webtv-aac' codec profile created 2022-09-13 17:00:23.184 [ INFO] capmt: OSCAM active 2022-09-13 17:00:23.184 [ INFO] capmt: NCAM active 2022-09-13 17:00:23.184 [ INFO] descrambler: adding CAID 2600/FFFF as ConstCW interval 10000ms pc 20 ep default (BISS) 2022-09-13 17:00:23.184 [ INFO] descrambler: adding CAID 0E00/FFFF as MultiPID interval 1000ms pc 2 ep default (PowerVu) 2022-09-13 17:00:23.185 [ INFO] capmt: OSCAM: mode 5 connected to 10.0.1.200:9001 (single) 2022-09-13 17:00:23.185 [ INFO] capmt: NCAM: mode 5 connected to 10.0.1.200:9002 (single) 2022-09-13 17:00:23.186 [ INFO] capmt: NCAM: Connected to server 'NCam Unofficial, build git010c03c (x86_64-alpine-linux-musl); e1mk' (protocol version 3) 2022-09-13 17:00:23.186 [ INFO] capmt: OSCAM: Connected to server 'OSCam v1.20_svn, build r11712-798 (x86_64-alpine-linux-musl); ' (protocol version 3) 2022-09-13 17:00:25.857 [ INFO] iptv: Using 12 input thread(s) 2022-09-13 17:00:25.862 [ INFO] scanfile: DVB-S - loaded 1 regions with 80 networks 2022-09-13 17:00:25.888 [ INFO] linuxdvb: adapter added /dev/dvb/adapter5 2022-09-13 17:00:25.889 [ INFO] linuxdvb: adapter added /dev/dvb/adapter4 2022-09-13 17:00:25.892 [ INFO] linuxdvb: adapter added /dev/dvb/adapter3 2022-09-13 17:00:26.150 [ INFO] linuxdvb: adapter added /dev/dvb/adapter2 2022-09-13 17:00:26.153 [ INFO] linuxdvb: adapter added /dev/dvb/adapter1 2022-09-13 17:00:26.156 [ INFO] linuxdvb: adapter added /dev/dvb/adapter0 2022-09-13 17:00:26.383 [ INFO] dvr: Creating new configuration '' 2022-09-13 17:00:26.384 [ INFO] epggrab: module uk_freesat created 2022-09-13 17:00:26.384 [ INFO] epggrab: module uk_freesat_eit created 2022-09-13 17:00:26.384 [ INFO] epggrab: module uk_freeview created 2022-09-13 17:00:26.384 [ INFO] epggrab: module nz_freeview2 created 2022-09-13 17:00:26.384 [ INFO] epggrab: module nz_freeview1 created 2022-09-13 17:00:26.384 [ INFO] epggrab: module viasat_baltic created 2022-09-13 17:00:26.384 [ INFO] epggrab: module Bulsatcom_39E created 2022-09-13 17:00:26.384 [ INFO] epggrab: module uk_cable_virgin created 2022-09-13 17:00:26.384 [ INFO] epggrab: module eit created 2022-09-13 17:00:26.384 [ INFO] epggrab: module psip created 2022-09-13 17:00:26.388 [ INFO] epggrab: module opentv-skyit created 2022-09-13 17:00:26.389 [ INFO] epggrab: module opentv-skynz created 2022-09-13 17:00:26.389 [ INFO] epggrab: module opentv-ausat created 2022-09-13 17:00:26.389 [ INFO] epggrab: module opentv-skyuk created 2022-09-13 17:00:26.390 [ INFO] epggrab: module xmltv created 2022-09-13 17:00:26.393 [ INFO] spawn: Executing "/usr/bin/tv_find_grabbers" 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_url created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_wg created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_file created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_eu_epgdata created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_ch_search created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_uk_tvguide created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_it created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_zz_sdjson_sqlite created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_zz_sdjson created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_fi created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_na_dtv created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_eu_xmltvse created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_na_dd created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_is created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_ar created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_huro created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_fr created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_tr created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_combiner created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_fi_sv created 2022-09-13 17:00:30.121 [ INFO] epggrab: module /usr/bin/tv_grab_na_tvmedia created 2022-09-13 17:00:30.193 [ INFO] tbl-eit: scraper eit attempt to load config "eit" 2022-09-13 17:00:30.193 [ INFO] tbl-eit: scraper eit no scraper config files found 2022-09-13 17:00:30.193 [ INFO] tbl-eit: scraper uk_freesat attempt to load config "uk_freesat" 2022-09-13 17:00:30.195 [ INFO] tbl-eit: scraper uk_freesat loaded config "uk" 2022-09-13 17:00:30.248 [ INFO] epgdb: gzip format detected, inflating (ratio 20.1% deflated size 3055084) 2022-09-13 17:00:30.321 [ INFO] epgdb: parsing 15168149 bytes 2022-09-13 17:00:31.098 [ INFO] epgdb: loaded v3 2022-09-13 17:00:31.098 [ INFO] epgdb: config 1 2022-09-13 17:00:31.098 [ INFO] epgdb: broadcasts 42352 2022-09-13 17:00:31.119 [ INFO] dvr: Purging obsolete autorec entries for current schedule 2022-09-13 17:00:31.140 [ NOTICE] START: HTS Tvheadend version 4.3-2030~gca756e3f7 started, running as PID:2068 UID:1000 GID:1000, CWD:/run/s6/legacy-services/tvheadend CNF:/config
Updated by Flole Systems about 2 years ago
- Status changed from Invalid to New
Are you running multiple streams of the same service simultaneously?
Updated by Chris G about 2 years ago
No I am not.
I just tried `emm=1` whilst streaming the same service with `emm=0` and it no longer causes TVH to restart.
It only has issues if the service is not already running with `emm=0`... Not that I can tell if its actually working or not. I am not sure how to tell if the EMM is included in the stream or not.
Updated by Chris G about 2 years ago
Thanks for that. I just tried it and requesting a stream with emm=1 no longer restarts TVH.
Do you have any idea how I can test if its working?
I am trying to use OSCAM stream relay. I have made a simple python app that sits between OSCAM and TVH to convert E2 service refs to the TVH service stream URLS. The setup is working in that VLC plays the stream (TVH > my app > OSCAM > VLC), but OSCAM doesn't appear to make any effort to decrypt it. I'm wondering if the emm/ecm data is present? I do not really understand how any of this stuff works. I just know that stream relay is required for the latest changes to the Sky DE package on 19.2E.
Updated by Chris G about 2 years ago
The log shows this while streaming.
2022-09-15 14:20:32.213 mpegts: 11914H in 19.2E - open PID 1008 (4104) failed, dupe sub (owner 0x7fb89d246d30)