2021-05-13, 03:31 PM
Hello Grace,
Yes, technically it's possible to put each layer into different folder.
For example:
D:/hls_output/low/stream.m3u8
D:/hls_output/med/stream.m3u8
D:/hls_output/high/stream.m3u8
And refer to them in the master playlist D:/hls_output/master.m3u8
However, this is currently not supported in TotalCodeStudio. The master playlist will not have reference to the stream.m3u8 placed in subfolders.
If you are familiar with M3U8 metadata, there is a temporary workaround modifying the master.m3u8 as below:
Assuming you have HLS sub folders as above example.
1. Open master.m3u8 file with a text editor.
2. Modify the reference to the metadata as below:
*The texts in bold were inserted.
#EXT-X-STREAM-INF:BANDWIDTH=1365300,AVERAGE-BANDWIDTH=1322303,FRAME-RATE=29.97,CODECS="mp4a.40.2,avc1.64001e",RESOLUTION=768x432,VIDEO="video_group"
low/stream.ts.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2281488,AVERAGE-BANDWIDTH=2251631,FRAME-RATE=29.97,CODECS="mp4a.40.2,avc1.64001f",RESOLUTION=960x540,VIDEO="video_group"
med/stream.ts.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=8221741,AVERAGE-BANDWIDTH=8163533,FRAME-RATE=29.97,CODECS="mp4a.40.2,avc1.640028",RESOLUTION=1920x1080,VIDEO="video_group"
high/stream.ts.m3u8
Now the master play list has reference to stream.m3u8 placed in each subfolder.
Usage of subfolders must be useful for other customers too. I’ll pitch it to the team and see what they think about adding this ability.
Hiroyuki Komatsu
App Support
MainConcept
Yes, technically it's possible to put each layer into different folder.
For example:
D:/hls_output/low/stream.m3u8
D:/hls_output/med/stream.m3u8
D:/hls_output/high/stream.m3u8
And refer to them in the master playlist D:/hls_output/master.m3u8
However, this is currently not supported in TotalCodeStudio. The master playlist will not have reference to the stream.m3u8 placed in subfolders.
If you are familiar with M3U8 metadata, there is a temporary workaround modifying the master.m3u8 as below:
Assuming you have HLS sub folders as above example.
1. Open master.m3u8 file with a text editor.
2. Modify the reference to the metadata as below:
*The texts in bold were inserted.
#EXT-X-STREAM-INF:BANDWIDTH=1365300,AVERAGE-BANDWIDTH=1322303,FRAME-RATE=29.97,CODECS="mp4a.40.2,avc1.64001e",RESOLUTION=768x432,VIDEO="video_group"
low/stream.ts.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2281488,AVERAGE-BANDWIDTH=2251631,FRAME-RATE=29.97,CODECS="mp4a.40.2,avc1.64001f",RESOLUTION=960x540,VIDEO="video_group"
med/stream.ts.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=8221741,AVERAGE-BANDWIDTH=8163533,FRAME-RATE=29.97,CODECS="mp4a.40.2,avc1.640028",RESOLUTION=1920x1080,VIDEO="video_group"
high/stream.ts.m3u8
Now the master play list has reference to stream.m3u8 placed in each subfolder.
Usage of subfolders must be useful for other customers too. I’ll pitch it to the team and see what they think about adding this ability.
Hiroyuki Komatsu
App Support
MainConcept