IPTV HLS OR TS?

by RYZONNNNN

I've done some research and I still don't realize, is it better HLS or TS? the quality is what matters least to me, what matters to me is that it stops as little as possible, which should i use?

sturmey

HLS is mostly an index of ts stream chunks. the HLS format includes updates to the index.m3u8 file that tells you the next .ts file. This allows for the stream to be updated as each new .ts file chunk gets written. This also allows the stream provider to write in different file chunks for things like ad substitution, and feed substitution for things like emergency service announcements, local feed substitution, and the like.

it's not a question of HLS or TS, HLS uses TS.

What you really need to ask about is bitrate. And also uptime. Anything under 5mb/s is going to show pixelation and movement issues, unless the resolution is low. For a 720 feed, 5 looks pretty good, for 1080, it's the bare minimum. Most people can't see a difference past 1080 - 7mb/s Sports really need a higher bitrate to look good.

soulnull8

The other person did a decent job.. but there's a few things I'll add

They're the same exact feed. The only difference is that when you request the HLS, it's chopping up the feed on the server and sending it.

But for your concern about what would "stop" as little as possible, HLS would be more resilient since it has to constantly open new sockets to the provider, and it'll usually get a head start (prebuffer) on each chunk before it's actually playing. This will be more resilient, but will also introduce inherent latency.. the .TS feed will likely be a decent length ahead of the .m3u8 (HLS) feed, but that's because it has to chop it up and send the .TS feed in chunks via the M3U8 playlist.

HLS also has the upside of being able to switch connections seamlessly.. I can watch on my phone in the house, hop into my car and drive off, and it'll keep playing even though it switched from my wifi to my cell connection. The .TS feed would have to reconnect. The M3U8 can just pull the next chunk from the LTE after it's done playing the one from the wifi.

tl:dr You'll likely want the HLS feed for your use case

dmml00

If its about xtc, doesnt matter which format you choose in the playlist generation. The video chunks are the same. It will just generate a different playlist format. Eg. in HLS, streams will have .m3u8 extension. But video is still same .ts chunks.