VideoHelp Forum
+ Reply to Thread
Results 1 to 10 of 10
Thread
  1. Member
    Join Date
    Sep 2022
    Location
    Uzayda
    Search Comp PM
    I have 3000 Mkv Files and I need to convert them all to m3u8 How do I do this with ffmpeg?
    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
    I have 3000 Mkv Files and I need to convert them all to m3u8 How do I do this with ffmpeg?
    Not sure why you would want to do it though.
    Code:
    ffmpeg -i input.mkv -c copy -f hls output.m3u8
    in fish you can automate (I'm sure there's a bash approach in windows, but I'm not bothered with windows. And I don't want to find out.)

    Code:
    for video in *.mkv;
           ffmpeg -i $video" -c copy -f hls "${video/.mkv).m3u8"
    end
    Quote Quote  
  3. ffmpeg -i input.mkv -c copy -hls_list_size 0 -f hls output.m3u8
    Quote Quote  
  4. Member
    Join Date
    Sep 2022
    Location
    Uzayda
    Search Comp PM
    Originally Posted by LZAA View Post
    ffmpeg -i input.mkv -c copy -hls_list_size 0 -f hls output.m3u8
    The code works, but there are 2 srt files in the Mkv that I want, when I use this code, it gives the error that the webvtt is requested. For this, how do I convert srt to webvtt and output as hls? It takes a long time to extract srt and convert webvtt one by one. Can you help me if there is an easy way for this?
    Quote Quote  
  5. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Bye bye lomero! And thread cleaned.
    Quote Quote  
  6. Member
    Join Date
    Sep 2022
    Location
    Uzayda
    Search Comp PM
    Originally Posted by Baldrick View Post
    Bye bye lomero!
    Thanks
    Quote Quote  
  7. Give a small file.
    Quote Quote  
  8. Member
    Join Date
    Sep 2022
    Location
    Uzayda
    Search Comp PM
    Originally Posted by LZAA View Post
    Give a small file.
    https://we.tl/t-zYaiGQM4kc

    Hello File 5-6 Mb Sequence Section available in mkv with english and turkish subtitles Thanks
    Quote Quote  
  9. Member DB83's Avatar
    Join Date
    Jul 2007
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by cinamews View Post
    Originally Posted by LZAA View Post
    ffmpeg -i input.mkv -c copy -hls_list_size 0 -f hls output.m3u8
    The code works......
    Being the curious sort I ran this code on 2 of my own .mkvs (no subs)


    The first was 31 secs in length and produced 5 files >> output.m3u8, output0.ts, output1.ts, output2.ts etc.


    The second was 95 mins in length and produced over 390 files >> output.m3u8, output.0.ts.........


    In both cases, ALL the files were required since the m3u8 file is simply a text file with a playlist for the others with each .ts file having a runlength of approx. 10 secs. (If I am not mistaken)


    Now the issue for me might be the construction of the source files but they do appear to me to be standard. If this is the case then the number of files increases substantially.


    Or the code is not quite right.


    Or am I missing something vital ? (I am aware that streamed .ts files are typically segmented)
    Quote Quote  



Similar Threads

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