Last active
July 30, 2020 00:53
-
-
Save abcdlsj/fc8c2869e754504e197f0dc596008ad3 to your computer and use it in GitHub Desktop.
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
需要下载 ffmpeg + jq | |
sudo pacman -S xxx | |
首先测试: | |
cat entry.json | jq .page_data | jq .download_subtitle | sed 's/ //g' | sed 's/\"//g' | sed 's/\;//g' | sed 's/\//-/g' | |
是否获取到视频文件名,如果获取到直接执行下面的 ffmpeg 命令 | |
如果没有:cat entry.json | jq .page_data 后自己找下,文件名在哪 | |
实测,国际版 bilibili,需要使用 | |
ffmpeg -i 64/video.m4s -i 64/audio.m4s -codec copy $(cat entry.json | jq .page_data | jq .part | sed 's/ //g' | sed 's/\"//g' | sed 's/\;//g' | sed 's/\//-/g').mp4 | |
分辨率如果也有不同,就自行修改 | |
命令: | |
ffmpeg -i 64/video.m4s -i 64/audio.m4s -codec copy $(cat entry.json | jq .page_data | jq .download_subtitle | sed 's/ //g' | sed 's/\"//g' | sed 's/\;//g' | sed 's/\//-/g').mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment