Last active
February 23, 2017 01:42
-
-
Save quxiaowei/cb8c377f64e5907b69cc739aeed94c34 to your computer and use it in GitHub Desktop.
从哔哩哔哩下载剧,并将视屏片段合并 需要:youtube-dl, ffmpeg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in {1..12} | |
do | |
url=http://www.bilibili.com/video/av3794937/index_$i.html | |
echo $url | |
youtube-dl -o "SeGmEnT-$i-%(playlist_index)s.%(ext)s" $url | |
rm -f buffer_list | |
touch buffer_list | |
for file in $(ls SeGmEnT-$i-*.flv) | |
do | |
echo file "'$file'" >> buffer_list | |
done | |
ffmpeg -f concat -i buffer_list -c copy $i.mkv | |
done | |
rm -f buffer_list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
youtube-dl get