Grab vtt subtitles from m3u8 stream

I have a video stream http://content.uplynk.com/ext/6790c94a453741799d3f3fb3bc9023a4/2493079.m3u8 which can be perfectly grabbed by ffmpeg command

ffmpeg -i "http://content.uplynk.com/ext/6790c94a453741799d3f3fb3bc9023a4/2493079.m3u8" -c copy CMA.ts

In this m3u8 list there is a subtitles stream http://content-aeui1.uplynk.com/395e08dcb0b54a3781d34d0b840df075/sub3.m3u8 , which has several vtt parts.

Is there a way to grab those vtt parts into single vtt file and then convert to some common format like srt ?

Or maybe there is a way to grab video with subtitles embedded?


Solution 1:

Try this program: m3u8x

m3u8x is to help you download and save m3u8-subtitle(.vtt), and convert to (.srt).

Copy the M3U8 file and then paste its file link to m3u8x... and click download

The product link also includes a tutorial.

m3u8x image

Solution 2:

I know that the post is old, but here is a ffmpeg solution as you asked for.

ffmpeg -i 'https://example.com/link/to/subtitles_playlist.m3u8' subtitles.srt