Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bdr-pro/youtubetowallpaper
๐โจ Meet `yt_to_shots.py`, your go-to script for snagging ๐ฅ frames from YouTube vids & turning your PC into a cosmic wonderland! ๐ Download vids, extract cool shots ๐ธ, ditch the repeats ๐, & even say bye to the vid after grabbing its goodies. Perfect for those spacey wallpapers or project vibes. Supports Arabic titles too! ๐โก๏ธ๐ Dive in & let
https://github.com/bdr-pro/youtubetowallpaper
frame-extraction image-processing video-processing wallpaper-generator youtube youtube-dl
Last synced: about 1 month ago
JSON representation
๐โจ Meet `yt_to_shots.py`, your go-to script for snagging ๐ฅ frames from YouTube vids & turning your PC into a cosmic wonderland! ๐ Download vids, extract cool shots ๐ธ, ditch the repeats ๐, & even say bye to the vid after grabbing its goodies. Perfect for those spacey wallpapers or project vibes. Supports Arabic titles too! ๐โก๏ธ๐ Dive in & let
- Host: GitHub
- URL: https://github.com/bdr-pro/youtubetowallpaper
- Owner: BDR-Pro
- Created: 2024-03-15T22:56:14.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-28T14:10:57.000Z (9 months ago)
- Last Synced: 2024-03-28T15:34:48.739Z (9 months ago)
- Topics: frame-extraction, image-processing, video-processing, wallpaper-generator, youtube, youtube-dl
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ YT to Shots: Snag Your Space! ๐
## What's This Magic? โจ
Hey there, space cadet! ๐ Welcome to `yt_to_shots.py`, your new best buddy for grabbing breathtaking space visuals straight from YouTube and turning your PC into a cosmic wonder. This Python script is all about downloading those stellar YouTube videos, extracting frames like a pro photographer, ditching the deja-vu frames, and if you wish, saying "bye-bye" to the video after snagging its best shots. Whether it's for creating an out-of-this-world wallpaper collection or fueling your galactic projects, we've got you covered!
## Features That Are Outta This World! ๐
- **Download YouTube Videos** with just a URL or VideoID. ๐ฅ
- **Extract Frames** like you're jumping through space-time! Set your own intervals to capture the cosmos. ๐ธ
- **Remove Similar Frames** because who needs duplicates in a universe of infinite variety? ๐
- **Optional Video Deletion** because, after the magic, who needs the spellbook? ๐ฎ
- **Arabic Title Support** 'cause we love and respect the universal language of stars, including Arabic. ๐โก๐## Before You Launch ๐
Make sure your spaceship is equipped with the following:
- Python 3.6 or newer (the language of our space guild) ๐
- [pytube](https://pytube.io/en/latest/user/install.html) for those YouTube voyages ๐ฅ
- [OpenCV](https://opencv.org/) for our image deciphering tools ๐
- [tqdm](https://tqdm.github.io/) for watching the stars go by as we work ๐
- [scikit-image](https://scikit-image.org/) for spotting cosmic twins ๐๐
- [langdetect](https://pypi.org/project/langdetect/), because the universe speaks in mysterious ways ๐ฃ๏ธ
- [arabic-reshaper](https://pypi.org/project/arabic-reshaper/) & [python-bidi](https://pypi.org/project/python-bidi/) for when the stars align in Arabic โจHop on the terminal and run:
```sh
pip install yt-dlp pytube opencv tqdm scikit-image langdetect arabic-reshaper python-bidi
```## Let's Get This Party Started! ๐
Ready to grab those cosmic visuals? Here's how:
```sh
python yt_to_shots.py -u [options]
```### Cosmic Commands ๐
- `-u`, `--url` : The YouTube video URL or VideoID. Where your journey begins! ๐
- `-o`, `--output`: Where to store your interstellar captures. Defaults to your current starbase (folder). ๐
- `-f`, `--frame`: How many frames to skip in your cosmic leap. More skips = faster travel! ๐ธ
- `-m`, `--max`: Your cargo limit. How many frames to keep before you say "that's enough beauty for today". ๐ฆ
- `-d`, `--delete`: Wanna erase the traces of your journey? Toggle this on! ๐งน
- `-s`, `--similar`: Set your tolerance for cosmic similarities. Sometimes, one moon is just enough! ๐
- `-t`, `--txt`: Enter the path of the text file containing the list of URLs or VideoIDs. ๐
- `-q`, `--fetch`: Enter the search query to fetch videos from YouTube
- `-mr`,`--maxResults`: Enter the maxResults of the search query. Default is 50.
- `-l`, `--login`: Login to YouTube using API KEY usage python bulk_fetcher.py -l YOUR_KEY### Example Commands
```sh
python yt_to_shots.py -u "https://www.youtube.com/watch?v=CfjNMLgax2s" -o "GalaxyPics" -f 100 -m 500 -d
python yt_to_shots.py -u "ImTqvWxc2Fo" --delete
python yt_to_shots.py -u "uD4izuDMUQA" -f 20 -m 500 -d```
## It's a Wrap! ๐
There you have it, space ranger! Everything you need to fill your digital universe with wonders. Let `yt_to_shots.py` be your telescope to the cosmos, and who knows what breathtaking views you'll discover for your PC's backdrop? ๐
**Happy Exploring!** ๐