leychan / video-downloader
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- guzzlehttp/guzzle: ^7.2
- league/climate: >=3.7.0
This package is auto-updated.
Last update: 2025-05-08 00:18:35 UTC
README
download video from websites
背景
在b站听到一个up翻唱的歌曲很好听,但是up没有上传音频版本,只有视频版本,于是萌生了下载视频然后提取音频的想法,就写了这个小工具
支持的站点
- B站
- youtube (需代理)
功能
目前b站可使用的功能:
- 根据url下载视频
- 多段视频合并为一个视频(依赖ffmpeg)
- 分离音频(依赖ffmpeg)
使用
使用 composer
$ composer require leychan/video-downloader:1.0.3
新建index.php
文件
<?php require_once __DIR__ . '/vendor/autoload.php'; (new \video\Application())->run();
$ composer install
$ php -f index.php
直接git clone
$ git clone https://github.com/leychan/video-downloader
$ cd video-downloader
$ composer install
$ php -f index.php