#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subtitles",NAME="English",LANGUAGE="en",URI="subtitles/en/subtitles.m3u8" # Created with Bento4 mp4-hls.py version 1.2.0r637 The m3u8 has two subtitles: English and Spanish, as you can see in the m3u8 itself #EXTM3U My problem is: I can't seem to find the two subtitles streams. Which means: select the first video stream for the third (index 2) program and the English language audio stream from the same third (index 2) program. So, what I really am doing is ffmpeg -i "blahblah.m3u8" -c copy -map 0:p:2:v:0 -map 0:p:2:a:m:language:eng -map 0:s:0 "output.mp4" I've managed to extract the video and audio stream because they are relatively easy: the input m3u8, according to ffprobe, contains 3 different programs, and the third program (called Program 2) is the one I need, because it contains both the highest quality video and the English highest quality audio. I'm trying to get an mp4 video from a m3u8 playlist file (in simple HLS), with audio, video and subtitles.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |