Project

General

Profile

[Solved] IPTV streams not playing in Kodi

Added by Humphrey Appleby over 8 years ago

I am new to Tvheadend, but so far have been very impressed with the ease of setup compared to other PVR software I have tried. Live television (via DVB-T and HDHomeRun Connect) also appears solid, but I am having issues with IPTV playback. When I select the IPTV channel, Kodi displays "Buffering... 0%" indefinitely. The same behaviour occurs on both OSMC (Raspbery Pi 2) and Windows.

Tvheadend scans show one service and one channel. The same stream can be played in VLC using the play link from either the Mux or Channel/EPG configuration pages in Tvheadend, and recordings from VLC can be played within Kodi. I have tried both direct access to the rtsp stream and using ffmpeg to construct a Custom MPEG-TS input as per the docs, with the same result.

Any advice would be appreciated. Please advise which logs, if any, might be of assistance.

The video specs are as follows:

Input #0, rtsp, from 'rtsp://10.0.0.13:554/main':
Metadata:
title : hdmi
comment : main
Duration: N/A, start: 11674.236989, bitrate: N/A
Program 1
Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720, 29.97 fps, 29.97 tbr, 90k tbn
Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 130 kb/s

System setup:

HTS Tvheadend 4.0.8-0499859 (FreeBSD ports install)

OSMC -
Kodi 16.0 (OSMC - Raspberry Pi 2 Model B)
Tvheadend HTSP Client 2.2.14

Windows -
Kodi 16.0 Git (Windows)
Tvheadend HTSP Client 2.2.13

EDIT:

I have enabled debug logging, and it looks like Tvheadend is remapping streams and setting up the subscription, but the data throughput is low (see attached image). The input for VLC is ~3Mbs^-1, while that destined to Kodi is a fraction of that, with output of 0.

2016-04-02 02:09:24.329 [ DEBUG]:htsp: 10.0.0.29 [ Kodi Media Center ] - subscribe to Sky using profile htsp

2016-04-02 02:09:24.329 [ DEBUG]:service: 1: Sky si 0x808b15cc0 <unknown> weight 0 prio 11 error 0
2016-04-02 02:09:24.329 [ INFO]:mpegts: IPTV Encoder in Local - tuning on IPTV
2016-04-02 02:09:24.329 [ DEBUG]:mpegts: IPTV Encoder in Local - started
2016-04-02 02:09:24.329 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0039 (57) [16/0x808b81000]
2016-04-02 02:09:24.329 [ DEBUG]:viasat_baltic: installed table handlers
2016-04-02 02:09:24.329 [ DEBUG]:viasat_baltic: grab started
2016-04-02 02:09:24.329 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0BBA (3002) [16/0x808b85000]
2016-04-02 02:09:24.329 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0BBB (3003) [16/0x808b44000]
2016-04-02 02:09:24.329 [ DEBUG]:uk_freesat: installed table handlers
2016-04-02 02:09:24.329 [ DEBUG]:uk_freesat: grab started
2016-04-02 02:09:24.329 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0012 (18) [20/0x808b46000]
2016-04-02 02:09:24.329 [ DEBUG]:eit: installed table handlers
2016-04-02 02:09:24.329 [ DEBUG]:eit: grab started
2016-04-02 02:09:24.329 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0066 (102) [8/0x80880d000]
2016-04-02 02:09:24.329 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0044 (68) [8/0x80880d000]
2016-04-02 02:09:24.329 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0045 (69) [8/0x80880d000]
2016-04-02 02:09:24.329 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0066 (102) [16/0x808b48000]
2016-04-02 02:09:24.329 [ DEBUG]:htsp: 10.0.0.29 [ Kodi Media Center ] - subscription grace 15 seconds
2016-04-02 02:09:24.329 [ INFO]:subscription: 0011: "10.0.0.29 [ Kodi Media Center ]" subscribing on channel "Sky", weight: 150, adapter: "IPTV", network: "Local", mux: "IPTV Encoder", provider: "Sky", service: "Sky", profile="htsp", hostname="10.0.0.29", client="Kodi Media Center"
2016-04-02 02:09:24.336 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0000 (0) [20/0x80a06c000]
2016-04-02 02:09:24.336 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0001 (1) [16/0x80a088000]
2016-04-02 02:09:24.336 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0010 (16) [16/0x80a070000]
2016-04-02 02:09:24.336 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0011 (17) [20/0x80a072000]
2016-04-02 02:09:24.336 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0011 (17) [16/0x80a074000]
2016-04-02 02:09:24.336 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0014 (20) [20/0x80a076000]
2016-04-02 02:09:24.336 [ DEBUG]:mpegts: IPTV Encoder in Local - open PID 0014 (20) [20/0x80a078000]
2016-04-02 02:09:24.433 [ DEBUG]:service: Local/IPTV Encoder/Sky: Status changed to [Hardware input]
2016-04-02 02:09:24.433 [ DEBUG]:service: Local/IPTV Encoder/Sky: Status changed to [Hardware input] [Input on service]
2016-04-02 02:09:24.433 [ DEBUG]:service: Local/IPTV Encoder/Sky: Status changed to [Hardware input] [Input on service] [Demuxed packets]
2016-04-02 02:09:24.433 [ DEBUG]:service: Local/IPTV Encoder/Sky: Status changed to [Hardware input] [Input on service] [Demuxed packets] [Reassembled packets]
2016-04-02 02:09:24.433 [ DEBUG]:pat: tsid 2EAF (11951)
2016-04-02 02:09:24.433 [ DEBUG]:pat: sid 0001 (1) on pid 0066 (102)
2016-04-02 02:09:24.433 [ DEBUG]:pmt: sid 0001 (1)
2016-04-02 02:09:24.433 [ DEBUG]:pmt: pcr_pid 0044
2016-04-02 02:09:24.433 [ DEBUG]:pmt: pid 0044 estype 27
2016-04-02 02:09:24.433 [ DEBUG]:pmt: type H264 position 0
2016-04-02 02:09:24.433 [ DEBUG]:pmt: language und
2016-04-02 02:09:24.433 [ DEBUG]:pmt: pid 0045 estype 15
2016-04-02 02:09:24.433 [ DEBUG]:pmt: type AAC-LATM position 0
2016-04-02 02:09:24.433 [ DEBUG]:pmt: language und
2016-04-02 02:09:24.593 [ DEBUG]:pat: completed pid 0 table 00000000 / 00000000
2016-04-02 02:09:24.593 [ DEBUG]:pmt: completed pid 102 table 00000002 / 000000ff

tvheadend.png (25.6 KB) tvheadend.png Low input rate to Kodi client from IPTV source.

Replies (1)

RE: IPTV streams not playing in Kodi - Added by Humphrey Appleby over 8 years ago

I have managed to work around this issue by adding the +genpts flag to the ffmpeg pipe.

    (1-1/1)