A helper tool for downloading, converting, editing youtube videos.
π Batch Remuxing: Remux High Quality MKV OBS recordings with lossless audio or other video files, splitting audio tracks into separate WAV files and copying the video data (no conversion) to MP4.
πΌVideo πProbing: Probe videos using ffprobe to retrieve detailed information about video files in JSON format. E.g. the video codec as H.264 or VP9. Works with piping to jq as well.
π» Open a terminal and run:
pip install git+https://github.com/hulla-bulla/yt.git
Then run:
playwright install
Done! π
To update to the latest version, simply use:
pip install --upgrade git+https://github.com/hulla-bulla/yt.git
Then run yt
in a π» terminal to use the app.
NOTE: the youtube link needs to be in quotes on windows like -> "https://www.youtube.com/watch?v=FRpq7o1mKXY" instead of https://www.youtube.com/watch?v=FRpq7o1mKXY
yt --help # view help
yt clips --help # view help for specific command
# download youtube video best quality available
yt video "https://www.youtube.com/watch?v=wA9MV-93K1I"
# download youtube audio best quality available
yt audio "https://www.youtube.com/watch?v=wA9MV-93K1I"
# Download a bunch of clips with "rust" as the keyword from playlists and or channels
yt clips rust "https://www.youtube.com/watch?v=SodXi2t1mtE&pp=ygUJcnVzdCBoeXBl" "https://www.youtube.com/watch?v=NtYHC1KNGoc&t=16s&pp=ygUJcnVzdCBoeXBl" "https://www.youtube.com/@NoBoilerplate"
yt probe video.mp4 # outputs json
yt probe video.mp4 | jq # outputs nicer json (requires jq)
python setup.py develop
yt
to test the toolpython setup.py sdist bdist_wheel