Giter Site home page Giter Site logo

songs-to-youtube's Introduction

icon

songs-to-youtube

Convert audio files to videos and upload them to YouTube automatically.

Example

Features

  • Extracts album covers from audio files
  • Extracts other metadata which can be used in template strings for the video title/description etc.
  • Can concatenate songs to upload an album as a single video
  • Can upload an album as a playlist of multiple videos
  • Encodes multiple videos in parallel
  • Supports multiple users, multiple presets
  • Does not use YouTube API; upload up to 50-100 videos per day

Pre-installation

  • FFmpeg binary is required to convert songs into videos
  • Firefox and geckodriver binaries are required to upload to YouTube
  • Make sure FFmpeg and geckodriver are both in your PATH environment variable

Installation

There are two ways to install this program:

PyInstaller

Download the latest release for your platform here, unzip the archive, and run the songs-to-youtube executable.

Run from source

If you have issues running the exectuable, you can try running the program from the source code:

  1. Download the source code
  2. Install required Python modules with python3 -m pip install -r requirements.txt
  3. Run the program with python3 main.py

Notes

  • Before you upload any videos, you must sign in to a YouTube account (File > Settings > Add new user)
  • You can drag and drop songs on the main window to add them to the queue. The order in which they are uploaded goes from top to bottom
  • You can also drag and drop images onto a song's current album art to change it
  • You probably shouldn't change the output file extension from .avi
  • You can use acodec copy in the FFmpeg command to avoid re-encoding audio, but beware that it will cause weird errors for certain audio codecs, including FLAC
  • YouTube titles and descriptions do not allow angled brackets in them

Template strings

Write ~{key} in any text field and it will be replaced with an appropriate value. To see the available keys, right click on an album or song and select "View metadata." Here are some useful values:

Song metadata

  • ~{song_dir} - directory of the input audio file
  • ~{song_file} - file name of the input audio
  • ~{tags.album} - name of the song's album
  • ~{tags.artist} - name of the song's artist
  • ~{tags.title} - name of the song
  • ~{tags.date} - year of release
  • ~{tags.comment.text} - comment used by bandcamp to link to the artist's page

Album metadata

  • ~{album_dir} - directory of the album
  • ~{timestamps} - special key that generates timestamps based on song lengths
  • ~{song.tags.artist} - name of the album's artist (usually)

The first song of an album can have its keys accessed by the album by prefixing the key with song.

songs-to-youtube's People

Contributors

7x11x13 avatar tommy-mor avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.