Skip to content
This repository was archived by the owner on Sep 12, 2023. It is now read-only.

A simple tool for the automatic download of afreeca (and other sites)

Notifications You must be signed in to change notification settings

horsaen/afreeca-downloader-old

Folders and files

NameName
Last commit message
Last commit date

Latest commit

eedf898 · Sep 12, 2023

History

6 Commits
Jul 1, 2023
Jul 1, 2023
Sep 12, 2023
Sep 12, 2023
Jul 1, 2023
Jul 1, 2023
Jul 18, 2023
Jul 1, 2023
Jul 3, 2023

Repository files navigation

afreeca-downloader

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 ^^

Installation and Usage

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

Todo

  • 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

FFMPEG workflow

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

Matroska

ffmpeg -i <INPUT>.ts -map 0 -c copy <OUTPUT>.mkv

MP4

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 ^^

Lossless H.265

ffmpeg -i <INPUT>.ts -c:v libx265 -x265-params "lossless=1" <OUTPUT>.mkv

About

A simple tool for the automatic download of afreeca (and other sites)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages