H
H
Horosh2942020-07-30 20:39:18
Video
Horosh294, 2020-07-30 20:39:18

How to make multiple audio tracks in m3u8 in HLS?

Hello! Using ffmpeg, I cut a large mkv video into chunks (each chunk has 8 audio tracks) now m3u8 looks like this

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:12
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-PLAYLIST-TYPE:EVENT
#EXTINF:5.505500,
3600.ts
#EXTINF:3.503500,
3601.ts
#EXTINF:3.003000,
3602.ts
#EXTINF:7.465789,
3603.ts
#EXTINF:3.128133,
3604.ts
#EXTINF:2.043700,
3605.ts
#EXTINF:3.420089,
3606.ts
#EXTINF:8.341667,
3607.ts

Etc. I integrate with PlayerJS , they write there that the choice of audio tracks should already be registered in this manifest. It's true? Just as you can see m3u8 which was created automatically does not contain any information about it. How to add correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chubahu, 2020-08-06
@chubahu

Everything can be packaged in a manifest, including audio track selection. Look at the links for HLS .m3u8 streams for testing and you will surely find an example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question