Code Monkey home page Code Monkey logo

m3u8-dlwrapper's Introduction

๐Ÿ“น HLS Download Wrapper

version dotnetframework ffmpeg icon portable license

WPF interface bridging the m3u8 stream download utility of FFmpeg.

๐Ÿ’ก How This Works

Visit m3u8-dlwrapper.zip for the built binaries, or build the WPF project using Visual Studio on your own. Unzip and run m3u8-dlwrapper.exe on a Windows x64 machine. Enter the clip info to start downloading a .m3u8 stream.

These are what the tool actually does in the backend:

Option FFmpeg Command
2x checked ffmpeg.exe -user_agent "{UserAgent}" -headers "{Cookie}" -i {M3U8Link} -filter_complex "[0:v]setpts=PTS/2[v];[0:a]atempo=2[a]" -map "[v]" -map "[a]" -bsf:a aac_adtstoasc {SaveAs.mp4}
2x unchecked ffmpeg.exe -user_agent "{UserAgent}" -headers "{Cookie}" -i {M3U8Link} -c copy -bsf:a aac_adtstoasc {SaveAs.mp4}

All the STDOUT and STDERR (100 latest lines) of ffmpeg.exe wil be redirect and kept in the text area.

๐Ÿ–‡๏ธ How to Use - HLS (.m3u8) Link Retrieval

Chromium's DevTools panel (F12) is very useful. HLS links can be easily captured under "Network" tab when using ".m3u8" as the filter. Noted that this no longer works for Youtube and Bilibili, but it's still worth trying on some other video sites.

๐ŸŒ How to Use - User Agent

Sometimes your request to a HLS link might be rejected due to incorrect user agent. Override the browser agent to your own with help of the online query: https://www.whatismybrowser.com/detect/what-is-my-user-agent

๐Ÿช How to Use - Cookie

For those sites requiring sign-in and memberships to view videos, cookies play an important role. You might need to duplicate some cookies in order to make the tool works. Take a look at what are being used by clicking at the begining of the URL field:

m3u8-dlwrapper's People

Contributors

der3318 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

dangquochuy1993

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.