How to Transmux MPEG-TS to HLS?

Any other question that don't fit into the other support categorizes.
Post Reply
parkerc
Posts: 2
Joined: Tue Jul 23, 2019 4:57 pm

How to Transmux MPEG-TS to HLS?

Post by parkerc » Tue Jul 23, 2019 5:02 pm

Hi,

I’d like to convert/transmux my mpeg.ts streams (via HDHomerun) so they can work via iOS / Safari - I understand a HLS stream which Apple supports/promotes would be the best course of action.

Please could someone advise how best to do this and what the setting would be?

An example of the current mpeg.ts stream is this.

http://192.168.102.217:5004/auto/v1?

Aman
Posts: 3
Joined: Sun Aug 11, 2019 11:08 pm

Re: How to Transmux MPEG-TS to HLS?

Post by Aman » Sun Aug 11, 2019 11:30 pm

Firstly,
192.168.102.217 is reserved for internal networks and cannot be routed externally,
so I cannot use your media, however, I can show a few ways to do it.

Code: Select all

ffmpeg -i file.ts -flags +cgop -g 60 -hls_list_size 0 one.m3u8

if you want to preserve your codecs

Code: Select all

ffmpeg -i file.ts -c copy -hls_list_size 0 two.m3u8
If you want to preserve your codecs and your original ts file, you can use the single file hls flag

Code: Select all

ffmpeg -i file.ts -c copy -hls_list_size 0 -hls_flags single_file three.m3u8
There are lots of other options and settings documented here https://ffmpeg.org/ffmpeg-formats.html#hls-2

parkerc
Posts: 2
Joined: Tue Jul 23, 2019 4:57 pm

Re: How to Transmux MPEG-TS to HLS?

Post by parkerc » Sun Aug 18, 2019 11:10 pm

Many thanks

As I’m very new to this, please forgive the perhaps obvious question, is a mpeg.ts ‘stream’ also a ‘file’ ?

Maybe I’m missing something , but why would you want to preserve your codec and your original ‘file’ ?

Post Reply
'