rablentain
rablentain

Reputation: 6725

Converting to HLS VS MPEGTS

I am creating streamable audio by using ffmpeg like this:

ffmpeg -i test.mp3 -vn -ac 2 -acodec aac -f segment -segment_format mpegts -segment_time 10 -segment_list playlist.m3u8 playlist-%05d.ts

My goal was to create content in the HLS format and it seems to work (it is playable by hls.js). I just wonder about the segment_format which is mpegts, is that correct? By reading the answer here mpegts seems to be a different format than HLS. Which is it?

The ffmpeg script above is generating .ts-files for the chunks and an .m3u8-file for the playlist. Is it possible to play this playlist on all devices that supports m3u-playlist? What is the difference between old Winamp-m3u-playlists and the hls format?

Is the .ts files still in the same content type as the mp3?

Upvotes: 1

Views: 2265

Answers (1)

szatmary
szatmary

Reputation: 31120

mpegts seems to be a different format than HLS. Which is it?

It’s both. HLS is not a file type, it a collect of technologies used together to encode and deliver media over Http. One of the technologies is TS

Is it possible to play this playlist on all devices that supports m3u-playlist?

All devices? Probably not. Nobody can guarantee something to work on all devices. You need to test the devices you care about.

Is the .ts files still in the same content type as the mp3?

What do you mean by “content type”? Your ffmpeg command has a mp3 an input and a ts wrapped aac stream out. So no, I guess. Unless by content type you mean audio, then yes.

Upvotes: 1

Related Questions