srt2hls - how to generate index.m3u8 from multiple inputs without re-encoding? #3485
Replies: 2 comments 6 replies
-
Well that was a great question and I found not one but two ways of doing this! They should be both working with the latest Method 1: muxingThis one works by muxing all the sources together into a single multitrack source and the selectively encoding subsets in each HLS streams. The plus side is that you don't have anything special to do on the HLS side. However, when using Here's some code:
Method 2: manual main playlistWith this method, you define 3 HLS outputs but none of them write the main playlist and you do it yourself instead. This is a more straightforward method but a little more advanced. Here's some code:
|
Beta Was this translation helpful? Give feedback.
-
I was also wondering if maybe there is something with the srt lib, suddenly something happens and this is the output.
and also (from syslog):
it started when I added clock_safe=false on the input 2 and 3. It gets this behavior after some hours
|
Beta Was this translation helpful? Give feedback.
-
Hi guys, I would like to transmux the 3 inputs (with different bitrates) into 3 individual playlists (high.m3u8; mid.m3u8; low.m3u8) which are then indexed into the master playlist index.m3u8. When re-encoding a single input as shown in the examples it works fine, the index,m3u8 file is generated along the other playlists (ABR). But how to achieve the same without re-encoding and with 3 inputs?
This is my script:
Beta Was this translation helpful? Give feedback.
All reactions