· 2 min read
Bilibili Course Download with BBDown and ffmpeg in Mac
I have paid for the course in Bilibili but I do need a way to loop it during my commute time. There are some cool tools in Windows platform to do such trick. But it will be more interesting to do it in Mac.
Declaimer
For the course in this article, I have purchased it. And I download it for my personal usage. I never distributed the licensed video in any way. In addition, as an engineer, we should have the mindset of protecting intelligent properties.
After a 30 min internet safari, I target BBDown on my local. I saw it was updated to .Net 9 several months ago. So technically it should be executable in Mac.
So I fire up my terminal and ensure I have the dotnet environment setup ready. If your machine didn’t have the .Net framework ready, here you go.
Once you have done, try to do dotnet --version in your terminal, you should be able to see the version output.
Now, follow the BBDown login tutorial from their Readme, as all Bilibili courses requires login.
BBDown loginOnce you login to it, you are ready to download the courses with the following command
BBDown https://www.bilibili.com/cheese/play/ep12345 --ffmpeg-path '/Users/jansen/Downloads/ffmpeg' --work-dir '/Users/jansen/Downloads/bilibili' -p ALLYou will need to define your ffmpeg-path as BBDown need it to encode/decode. If you don’t have it on your mac, get it from here.
If you want audio only, do the following
BBDown https://www.bilibili.com/cheese/play/ep12345 --ffmpeg-path '/Users/jansen/Downloads/ffmpeg' --work-dir '/Users/jansen/Downloads/bilibili' -p ALL --audio-onlyEnjoy!