Kodi Community Forum
Should I use htsp or remux to ts? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: PVR & Live TV Support (https://forum.kodi.tv/forumdisplay.php?fid=167)
+---- Forum: Tvheadend (https://forum.kodi.tv/forumdisplay.php?fid=168)
+---- Thread: Should I use htsp or remux to ts? (/showthread.php?tid=370509)



Should I use htsp or remux to ts? - Deihmos - 2022-11-22

The video stream in my iptv m3u is Codec: H264 - MPEG-4 AVC (part 10) (h264). Should I use htsp or remux the video to ts format? I am using Kodi 19.4 on Nvidia Shield. I sometimes have an issue where the video streams stop working but I am not sure if it has anything to do with this setting. I have timeshift enabled.


RE: Should I use htsp or remux to ts? - bluzee - 2022-11-23

HTSP is the network protocol.  As for video format TVHeadend only supports mpegts.  If your iptv is not mpegts you'll more than likely need to pipe through ffmpeg and remux to mpegts.


RE: Should I use htsp or remux to ts? - noggin - 2022-11-27

(2022-11-23, 07:56)bluzee Wrote: HTSP is the network protocol.  As for video format TVHeadend only supports mpegts.  If your iptv is not mpegts you'll more than likely need to pipe through ffmpeg and remux to mpegts.

Yes - TV Headend uses htsp as its protocol to send streams TO clients FROM TV Headend. (It can also stream http mpegts - which are the links behind the play buttons in the configuration-channels tab). You don't use htsp format streams as a source to your TV Headend server.

As input streams to TV Headend - as @bluzee wrote - you need your sources to be in MPEG2 transport stream format (aka mpegts) (NB this doesn't mean the video is MPEG2 - just the transport stream. The video can be MPEG2, h.264/AVC, h.265/HEVC etc.).

If your IPTV provider doesn't provide streams in this format you will need to convert them to mpegts. There are a ways of doing this with shell scripts and ffmpeg - a look around the TV Headend site will show some options.  I did this when I linked two TV Headend servers in different countries over a VPN using the Secure Reliable Transport system a couple of years ago. (That used SRT format streams to carry an MPEG2 transport streams)


RE: Should I use htsp or remux to ts? - Deihmos - 2022-11-28

Thanks for the response. I got it.