kubinka0505 / YTMVG

Pack of scripts providing customizable YouTube Music Videos generation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


YTMVG

Description ๐Ÿ“

Pack of scripts providing customizable YouTube Music Videos Generation. But applicable to Shorts too.

It generates:

  • Video from image and audio file, that also can contain the embedded front cover art. ๐ŸŽฆ
  • Thumbnail with a centered image that background color is based on the subjectively selected image color clusters. ๐Ÿ–ผ๏ธ

Requirements ๐Ÿ“ฅ

Programs:

Modules:

Packages (bold links are Windows static executable binaries):

* - Required on Linux

Installation โš™๏ธ

When on Linux, install required packages by using this one-liner:

sudo apt-get install git python3-apt python3-pip python3-tk ffmpeg jpegoptim
  1. Clone the repository and move to its directory.
    git clone https://github.com/kubinka0505/YTMVG
    cd YTMVG
  2. Install required modules by inputting pip install -r requirements.txt
  3. Modify the parameters in the Config.json file. (or use command line arguments below)
  4. Type YTMVG.py -h for more info. โ„น๏ธ

Usage ๐Ÿ“

Process audio (-a) and image (-i)

YTMVG.py -a "~/Music/Song.mp3" -i "~/Pictures/Image.png"

As above, but set the video resolution (-r) to 720p and audio bitrate (-ab) to 128 kb/s

YTMVG.py -i "../Cover.jpg" -a "%UserProfile%\Downloads\Sound.ogg" -r 720p -ab 128k

Process audio with embedded cover, (no -i) encode lossless audio (-ab 257) and encode as WebM (-webm)

YTMVG.py -a "~/Music/Discography/Artist/Album/Artist - Title.flac" -ab 257 -webm

As above, but process audio URL, change color (-c) to Dry and process silently (-v -1)

YTMVG.py -a "https://website.com/Artist ft. Guest - Title (Remix).flac" -ab 257 -webm -c 1 -v -1

Presets ๐Ÿ—ƒ๏ธ

Program comes in with bundled presets located as text files in the Data/Presets directory. You may edit them or add your own.

Note

To launch the preset, use the -p flag, where argument is the preset file name without last extension.

Example: YTMVG.py -a ... -p MyPresetFile (Data/Presets/MyPresetFile.txt)


Windows Explorer Context Menu Extension โš™๏ธ

By running the !_GUI_Add.pyw file, multiple values are injected into the HKEY_CURRENT_USER registry hive.
It enables quick, clear and batch usage directly from the Explorer.exe level, as shown below.



Batch processing ๐Ÿ—ƒ๏ธ

You can configure the !_GUI_Batch_Processing.py file for your needs.


Disclaimer โš ๏ธ

Important

This program is a free and open-source tool including implementation of the algorithm responsible for creating YouTube music videos and its thumbnails.

It uses other free open-source tools and resources available in the public domain to guarantee satisfactory results, albeit the author of this particular software is not affiliated with YouTube or its associates, nor can be responsible โ€” as stated in the license file โ€” for guaranteeing its correct behavior and the consequences resulting from its improper use.


Meta Info โ„น๏ธ

All versions of this project have been tested on:

OS Distribution OS Version Python Version System Architecture (bits)
Windows โ€• 10 3.11.0 64
Linux Ubuntu LTS 22.04 3.10.6 64

About

Pack of scripts providing customizable YouTube Music Videos generation.

License:GNU General Public License v3.0


Languages

Language:Python 88.5%Language:Jupyter Notebook 11.4%Language:Shell 0.1%Language:Batchfile 0.0%