VideoHelp Forum
+ Reply to Thread
Results 1 to 9 of 9
Thread
  1. sorry for my bad English
    For a certain reason, i have m3u8(s) file on my PC,
    I can play it (stream it) on Media Player Classic flawlessly,
    but I like to download and convert it to mp4,
    [yes, I know the m3u8 is a playlist and does not contain any streams]

    I tried ffmpeg to convert, and ffplay to play, but both failed,
    I tried vlc "convert", but only the first "scene" that converted,

    any clue, tips, link, software, google keyword is enough,
    please help me!
    Last edited by kucing; 11th Jun 2024 at 09:52. Reason: [Solved]
    Quote Quote  
  2. Originally Posted by kucing View Post
    sorry for my bad English
    For a certain reason, i have m3u8(s) file on my PC,
    I can play it (stream it) on Media Player Classic flawlessly,
    but I like to download and convert it to mp4,
    [yes, I know the m3u8 is a playlist and does not contain any streams]

    I tried ffmpeg to convert, and ffplay to play, but both failed,
    I tried vlc "convert", but only the first "scene" that converted,

    any clue, tips, link, software, google keyword is enough,
    please help me!
    Is that a protected video ? If not google m3u8 to mp4 converter and convert.
    Quote Quote  
  3. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    Install ffmpeg, download and put yt-dl.exe to the folder with ffmpeg.exe. Create .bat file in the same folder with lines:

    Code:
    yt-dlp ytsearch:yourfilename.m3u8
    pause
    Put your .m3u8 to the same folder and run that .bat file. The yt-dlp will find proper links in .m3u8 and download mp4 in max available resolution to the same folder.
    It is sometimes possible that you'll get a .webm file instead (if it has the max resolution), then you'll need some debugging in your .bat.
    Quote Quote  
  4. @Sagnik
    no it not protected, and all m3u8 to mp4 converter usually very inconvinient to use

    @Alex_ander
    it not youtube video

    after i google, i download the "ts parts" inside m3u8 as jpg,
    in m3u8, find and replace all "ts" to "jpg"

    then convert it using ffmpeg
    ffmpeg -i D:\video001.m3u8 -acodec copy -vcodec copy D:\video001.mp4
    Last edited by kucing; 11th Jun 2024 at 06:44.
    Quote Quote  
  5. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    Originally Posted by kucing View Post
    it not youtube video
    It's source doesn't matter (it even could be an iPlayer source - inside UK, of course).

    An m3u8 file is a text file with links to the streaming server. Since you are able to use it in a standalone player, your file contains full path URLs (like 'master' m3u8 files do). You can also manually choose a link from it to a version with desired resolution, then use that specific link in yt-dlp.
    Quote Quote  
  6. i tried
    yt-dlp ytsearch:E:\video001.m3u8
    and the result is same as
    I tried vlc "convert", but only the first "scene" that converted,

    i like to provide link, but i afraid i will get banned

    edit:
    nevermind
    Last edited by kucing; 11th Jun 2024 at 09:54.
    Quote Quote  
  7. Member Alex_ander's Avatar
    Join Date
    Oct 2006
    Location
    Russian Federation
    Search Comp PM
    If you actually have downloaded all .ts numbered parts (not m3u8, which are text files with links), you only need Windows to join them:

    Code:
    copy /b *.ts joined_files.ts
    The resulting .ts can then be converted to mp4, if necessary, e.g. by demuxing it in TSMuxer and remuxing in My MP4Box GUI.
    Quote Quote  
  8. why not using ffmpeg to convert it like my way?
    ffmpeg -i D:\video001.m3u8 -acodec copy -vcodec copy D:\video001.mp4
    Quote Quote  
  9. Originally Posted by kucing View Post
    why not using ffmpeg to convert it like my way?
    ffmpeg -i D:\video001.m3u8 -acodec copy -vcodec copy D:\video001.mp4
    Yes, this is the best solution. The audio and video are simply remuxed into an mp4 container.
    Quote Quote  



Similar Threads

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