A simple tool for the automatic download of afreeca (and other sites)
This tool has been archived for a newer, more reliable solution, to learn more send me an email ^^
Clone repo
git clone https://github.com/horsaen/afreeca-downloader
Cd into directory and install dependencies
cd afreeca-downloader
pip3 install -r REQUIREMENTS.txt
Run
python3 main.py -h
- Allow for custom output directory
- Remove unneeded error warnings, particularly the streamlink warning about missing segments or something
- Take inspo from streamlink themselves and make this work for multiple sites (depsite the name, so funny) because that's cool
- Add to pip or whatever that is
- Multithreading
Here's just a simple guide on changing the direct output to something a bit more storage friendly
Ignore .ts segment errors:
ffmpeg -i <INPUT>.ts -map 0 -ignore_unkown -c copy <OUTPUT>.ts
ffmpeg -i <INPUT>.ts -map 0 -c copy <OUTPUT>.mkv
ffmpeg -i <INPUT>.ts -map 0 -c copy <OUTPUT>.mp4
Re-encode the video to H.264 and stream copy the audio:
ffmpeg -i input.ts -c:v libx264 -c:a copy output.mp4
Re-encode both video and audio:
ffmpeg -i input.ts -c:v libx264 -c:a aac output.mp4
Lossless H.264 example:
ffmpeg -i input.ts -c:v libx264 -crf 0 -c:a copy output.mp4
Lossless files will be huge ^^
ffmpeg -i <INPUT>.ts -c:v libx265 -x265-params "lossless=1" <OUTPUT>.mkv