Download TS files from video stream

前端 未结 14 1572
遥遥无期
遥遥无期 2020-12-22 17:55

Videos on most sites make use of progressive downloading, which means that the video is downloaded to my computer, and easy to trace. There are lots of extensions out there

相关标签:
14条回答
  • 2020-12-22 18:36

    1) Please read instructions by @aalhanane (after "paste URL m3u8" step you have to type name for the file, eg "video" then click on "hand" icon next to "quality" and only after that you should select "one on one" and "download").

    2) The stream splits video and audio, so you need to download them separately and then use the same m3u8x to join them https://youtu.be/he-tDNiVl2M (optionally convert to mp4).

    3) m3u8x can download video without any issues but in my case it cannot extract audio links. So I simply downloaded the *.m3u8 file and searched for line which contains GROUP-ID="audio-0" and then scroll right and copied the link (!including token!) and paste it straight into "Quality URL" field of m3u8x app. Then "one on one" and download it similar to video stream.

    Once I had both video and audio, I joined and success =)

    p.s. in case automatic extraction will stop working in the future, you can use the same method to extract video links manually.

    0 讨论(0)
  • 2020-12-22 18:38

    While this shouldn't have ever been asked on SO and got through the vetting processing in the first place, I have no idea... but I'm giving my answer anyway.

    After exploring basically all of the options presented here, it turns out the simplest is often the best.

    First download ffmpeg from: https://evermeet.cx/ffmpeg/

    Next, after you have got your .m3u8 playlist file (most probably from the webpage source or network traffic), run this command:

    ffmpeg -i "http://host/folder/file.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4
    

    I tried running it from a locally saved m4u8 file, and it didn't work, because the ffmpeg download procedure downloads the chunks which are relative to the URL, so make sure you use the website url.

    0 讨论(0)
提交回复
热议问题