Grab vtt subtitles from m3u8 stream

I have a video stream which can be perfectly grabbed by ffmpeg command

ffmpeg -i "" -c copy CMA.ts

In this m3u8 list there is a subtitles stream , 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?

2

3 Answers

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

ffmpeg -i ' subtitles.srt
2

I would also suggest an ffmpeg solution, but with a different script:

ffmpeg -user_agent "Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0" -referer "about:blank" -i "" -c copy "subtitle_eng.vtt"

Then convert the downloaded .vtt file to .srt (by Subtitle Edit for example)

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

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like