VideoHelp Forum



Support our site by donate $5 directly to us Thanks!!!

Try StreamFab Downloader and download streaming video from Netflix, Amazon!



+ Reply to Thread
Results 1 to 10 of 10
  1. Member
    Join Date
    Sep 2022
    Location
    Uzayda
    Search Comp PM
    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?
    Quote Quote  
  2. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    Originally Posted by cinamews View 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?

    At a guess, try mapping the streams
    ffmpeg -i input.mkv -map 0 -c copy -hls_list_size 0 -f hls output.m3u8
    Quote Quote  
  3. Member
    Join Date
    Sep 2022
    Location
    Uzayda
    Search Comp PM
    Originally Posted by Sorenb View Post
    Originally Posted by cinamews View 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?

    At a guess, try mapping the streams
    ffmpeg -i input.mkv -map 0 -c copy -hls_list_size 0 -f hls output.m3u8
    I tried dude unfortunately unsuccessful
    Quote Quote  
  4. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    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.
    Quote Quote  
  5. Originally Posted by cinamews View 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?
    the format is webwtt. you will need to use another tool able to deal with webwtt or using the stupid way, removing subtitles from video.
    Quote Quote  
  6. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    Originally Posted by libero08 View Post
    Originally Posted by cinamews View 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?
    the format is webwtt. you will need to use another tool able to deal with webwtt or using the stupid way, removing subtitles from video.
    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.)
    Quote Quote  
  7. 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.

    Image
    [Attachment 68771 - Click to enlarge]


    Done.
    You'll find your new webvtt subtitle into the target folder.
    Quote Quote  
  8. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    Originally Posted by ProWo View Post
    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.

    Image
    [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
    subtitleedit /convert <inputsub.vtt> subrip
    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.
    And it's not feasible.
    Quote Quote  
  9. Originally Posted by Sorenb View Post
    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.
    Thanks for your opinion.
    Quote Quote  
  10. Do not send me DM's
    Join Date
    Dec 2021
    Location
    Tórshavn
    Search Comp PM
    Originally Posted by ProWo View Post
    Originally Posted by Sorenb View Post
    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.
    Thanks for your opinion.
    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?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!