Coder Social home page Coder Social logo

github-actions-youtube-dl's Introduction

github-actions-youtube-dl

使用 GitHub Actions 下载 YouTube 视频。

原理

使用 GitHub Actions 的服务器,从 YouTube 下载视频。将需要下载的视频添加到 playlist.txt 文件中,每次 push 的时候,github action 读取 playlist.txt 列表,并下载列表中的所有视频。

使用

  • 点右上角 Fork 按钮复制本 GitHub 仓库
  • 在自己的项目中,点上方 Actions 选项卡进入项目 GitHub Actions 页面, 点击绿色按钮 “I understand my workflows, go ahead and enable them” 开启自动提交功能
  • 编辑 playlist.txt 文件,将视频的 url 添加到列表中
  • 等待 github action 执行成功,视频会出现在 downloads 目录

Roadmap

  • 使用 GitHub Action 下载视频
  • 从列表中下载多个视频
  • 自定义配置
  • CDN 加速

License

github-actions-youtube-dl is released under the MIT License. See the bundled LICENSE file for details.

github-actions-youtube-dl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

github-actions-youtube-dl's Issues

Good idea?

https://www.bilimoe.com/jsdelivr-m3u8/

之前想过用您的方法下载视频然后通过 jsdelivr 作为跳板引入到网页中,结果发现 jsdelivr 限制单文件最大 20M ,不知道上面的方法能否解决这个问题。

不过又有了新的问题,如何在 github actions 中使用切片技术(如 FFmpeg )将视频切片(感觉很关键),然后白女票 jsdelivr CDN 加速呢?

如何改格式?

你好,想請教要如何修改下載影片的格式,我實在找不到參數位置......

优化下载体验建议

youtube-dl的维护没有跟上youtube,建议使用yt-dlp,二者使用方式基本上一致
但youtube-dl的下载速度很慢,不会大于70kb/s,而后者没有这个问题

使用 Github Actions 执行任务,比如人声分离。

项目地址:
https://github.com/pansong291/github-action-tasks

通过 issue 触发流程,仅限「创建 issue」和「创建 issue 评论」。等待 Github Actions 执行成功,查阅执行日志,找到压缩包下载链接。

下一步打算将下载链接提取出来,使用机器人或者其他的通知方式。

参考了作者的这个下载视频的项目,也参考了 @Sweetlemon68 的建议,使用了 Mikubill/transfer 项目进行大文件传输。

其中使用到 ffmpeg 的以下命令进行分割音频,对于分割视频应该也适用:

ffmpeg -i /path/to/input -f segment -segment_time 600 -c copy /path/to/output/file_%d.nut

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.