Skip to content

Convert a directory of songs into videos to upload to YouTube

Notifications You must be signed in to change notification settings

calpb/SongToVideo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

SongToVideo

This Python script uses ffmpeg to convert a directory of songs into a directory of videos, so that they can be uploaded to YouTube. If an album art isn't specified, the script will extract the individual song's art each pass. This is perfect for directories or albums with mixed album art.

Built with ffmpeg version git-2020-03-09-608b8a8 and Python 3.8.5

Install

  1. Make sure that both Python and ffmpeg are in your system's PATH
  2. Clone this repo with git clone https://github.com/calpb/SongToVideo.git
  3. cd into the script directory
  4. Execute the script using the valid arguments, such as python songtovideo.py -i path/to/songs -f mp3

Valid Arguments

Arg Type Function
-i Path Input, the path to the directory containing your songs. Input is the only required argument.
-o Path Output, where the resulting videos should be stored. Defaults to creating a videos folder within the input folder.
-f String Format, what format your songs are encoded in. Defaults to flac.
-a Path Art, the path to the image you want to serve as the album art when the video renders. Defaults to extracting each song's album art. You will want to use this option if your music doesn't have embedded album art, or it was originally embedded in low quality.

About

Convert a directory of songs into videos to upload to YouTube

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages