Hello, there are 2 srt files in my mkv file when I use this code
ffmpeg -i input.mkv -c copy -hls_list_size 0 -f hls output.m3u8
[Attachment 68723 - Click to enlarge]
It gives the error requesting webvtt. How can I convert srt to webvtt and output to hls for this? It takes a long time to extract srt and convert webvtt one by one. Can you help me if there is an easy way to do this?
+ Reply to Thread
Results 1 to 10 of 10
-
-
-
You may have to extract the subs and keep them separate then.
I don't recall any provider having the subs in the stream, they are usually a separate stream and link. -
-
the format is webvtt. And he has no choice but to remove the subtitles from the stream before converting the mkv to hls m3u8 (see his other thread.) From what I can gather, there is no means to embedd the webvtt into the segemented hls parts. And any professional streaming service that use hls-dash streams keep the subs as a separate stream (browser dev console, network tab and search for hls-text in the same way you would search for the mpd.)
-
You can use clever FFmpeg-GUI to convert srt to webvtt.
Load your file, click main, click encode subtitle, select your subtitle, set vtt as output, click encode subtitle.
[Attachment 68771 - Click to enlarge]
Done.
You'll find your new webvtt subtitle into the target folder. -
Why?
just use subtitleedit
it does a better job than ffmpeg does. (ffmpeg fails if there is a blank line in the vtt file.)
Either use the gui for subtitleedit, or simply convert via cmd using
And this is all beside the point, and utterly useless in regard to the OP's query. The OP wishes to include the vtt in a video convert from mkv to hls m3u8.subtitleedit /convert <inputsub.vtt> subrip
And it's not feasible. -
I'm not sure if you're being a smartarse there or not.
But do take a look at the OP's initial post
Hello, there are 2 srt files in my mkv file when I use this code
ffmpeg -i input.mkv -c copy -hls_list_size 0 -f hls output.m3u8
Image
[Attachment 68723 - Click to enlarge]
It gives the error requesting webvtt. How can I convert srt to webvtt and output to hls for this? It takes a long time to extract srt and convert webvtt one by one. Can you help me if there is an easy way to do this?
Similar Threads
-
Using ffmpeg to dowload webvtt subtitles
By ecolek in forum Video Streaming DownloadingReplies: 24Last Post: 20th Jun 2021, 05:12 -
Can't extract webvtt subtitle with ffmpeg
By [ss]vegeta in forum SubtitleReplies: 3Last Post: 18th Jun 2021, 18:20 -
using ffmpeg to convert a mkv or mp4 to MPEG-4 suitable for a DVD player
By NeilTelford in forum Video ConversionReplies: 5Last Post: 3rd Jun 2021, 11:55 -
How to merge segmented webvtt subtitle files and output to SRT file?
By smokeweedevryday in forum SubtitleReplies: 0Last Post: 8th Mar 2020, 11:29 -
HELP !! Convert sub(SRT and SSA) to MKV with MkvToMp4.
By piggy21212 in forum Newbie / General discussionsReplies: 5Last Post: 25th Nov 2019, 02:14



Quote