Code Monkey home page Code Monkey logo

m3u8_downloader_4_yingke's Introduction

m3u8_downloader_4_yingke

映客m3u8格式历史直播记录下载器

目前已经实现ffmpeg合并视频片段,程序择日更新,如有需要,可与我联系索取

demo_gif

网址分析

项目demo测试的映客页面传送门

http://www.inke.cn/live.html?uid=3677006&id=1481727812972630

需要人为提取的房间id即为网址中的id=后面那串数字,在本例中为1481727812972630

目前实现的功能 : )

  • 下载映客m3u8格式的历史直播记录ts片段
  • 支持根据映客房间id自动下载m3u8文件
  • 支持直接读取映客m3u8文件下载
  • 以二进制方式自动合并ts片段
  • ts片段成功合并后自动清除缓存
备注:由于每个人的系统设置不同,自动清除缓存的功能在某些计算机上可能会失败,通常的原因可能是遇到了权限问题,可尝试使用管理员身份运行

环境要求

  • Python 2.7(小白不作要求)
备注:Python 3 理论上支持,但并未测试,欢迎反馈!

使用方法

方法一(Python 2.7 下工作)

Windows 10为例

开始——右键——命令提示符(管理员)

cd 切换到Python程序的目录

输入命令 python main.py

根据命令提示进行操作

备注:使用前需要配置Python环境,建议使用Anaconda
友情链接:获取最新Anaconda下载信息 传送门

方法二(CMD 下工作)【小白推荐】

Windows 10为例

开始——右键——命令提示符(管理员)

cd 切换到exe4windows文件夹的目录

输入命令 main.exe

根据命令提示进行操作

未来可能更新的地方

  • 支持录制实时的直播信号
  • 实现对ts片段进行mp4格式转换
  • 实现对ts片段更精细的拼接(从本人的能力来看,暂时不太现实,哈哈)

demo工作示意图

Python 2.7 下工作(花费72秒)

demo_gif

CMD 下工作(花费148秒)

demo_gif

更新日志

201701013 创建 v0.1

  • 框架预览版

交流讨论

m3u8_downloader_4_yingke's People

Contributors

xuyuanfang avatar

Watchers

Qi.Shi 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.