Skip to content

hulla-bulla/yt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yt

A helper tool for downloading, converting, editing youtube videos.

Features

🎥 YouTube

  • 📥 Download YouTube Videos: Download videos from YouTube in the best quality available.
  • 🎵 Download Audio Only: Extract audio from YouTube videos and save them as high-quality MP3 files.
  • ✂️ Clip Downloading: Download specific clips from YouTube videos based on search queries within video transcripts. The search can be from a channel, playlist, or video.
  • 🔄 Automatic VP9 to H.264 Conversion: When downloading videos from YouTube, not all of them can be edited in Premiere Pro and other video editing tools. YT automatically converts videos encoded with VP9 to H.264, ensuring compatibility with editing software like Premiere Pro.

💻 Other

📽️ OBS

  • 🔄 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.

📄 Google Docs

  • 📝 Google Docs Integration:
    • Parse comments and calculate script length from Google Docs exported text files.
    • Calculate script length in minutes based on WordsPerMinute (WPM) excluding comments.

🚀 Installation

  1. 🐍 Download and install Python here

  2. 💻 Open a terminal and run:

    pip install git+https://github.com/hulla-bulla/yt.git
  3. Then run:

    playwright install
  4. Done! 🎉

🔄 Update to a Newer Version

To update to the latest version, simply use:

pip install --upgrade git+https://github.com/hulla-bulla/yt.git

🎈 How to use

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)

💩 Development

  1. create venv & activate
  2. python setup.py develop
  3. type yt to test the tool

package for deploy

python setup.py sdist bdist_wheel

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages