Git Product home page Git Product logo

famd's Introduction

famd

flutter aria2 m3u8 downloader,使用flutter+aria2+m3u8开发的一个M3U8下载器。

使用说明 https://www.bilibili.com/video/BV1nH4y1Z7aG

初学者的第一个flutter应用,代码写的乱七八糟的。参考价值不大,可借鉴开发思路。

开发思路

1、解析m3u8文件获取里面ts列表,m3u8的视频是由很多个ts文件组成的,所以首先就先要解析m3u8文件获取里面ts列表的下载地址
2、调用cmd命令启动aria2
3、使用http请求aria2 RPC服务,把ts列表加入aria2下载,aria2是支持RPC服务的,使用http请求来操作aria2就可以了
4、如果ts是加密的,先解密ts文件,m3u8里面会有key,用那个key解密ts文件就可以了,如果没有key,说明ts没加密,不用解密ts
5、下载完成后调用cmd命令使用ffmpeg把下载的ts列表合并成一个视频

项目运行

flutter run -d windows

注意:因为ffmpeg.exe太大,所以没上传提交上来,请自行下载ffmpeg.exe放到 windows/bin/plugin/ffmpeg/ffmpeg.exe

famd's People

Contributors

roomanl avatar

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.