Skip to content

Automating the creation of Lyric videos on Youtube...

Notifications You must be signed in to change notification settings

theriley106/LyricVideos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How does this work

Youtube videos are pulled using youtube-dl, and OCR is done on each unique frame in the video. This gives us a general idea of the song lyrics with a timestamp range that matches the audio in the song.

We can then generate a new lyric video by recreating each frame and mending the frames together using ffmpeg. The transitions and audio can then be added, and the final result is a video that's indistinguishable from other lyric videos on Youtube that follow the same style.

Using the Tool

$ ./create -f songs.txt

or

$ ./create nine in the afternoon

Note: This program is not intended to facilitate copyright infringement by any means. Youtube is extremely good at removing copyrighted material from their site -- please only use this with Royalty Free music or music that you have permission to upload to Youtube.

Video Quality

OCR

Everything works by default with no external APIs, but I've found that using the AWS Rekognition API results in significantly higher quality videos compared to ones that only use tesseract on your local machine.

Tesseract is still the default with this program, but you can use AWS Rekognition by running ./setupAWS.

$ ./setupAWS
What is your AWS Access Token?
my_fake_access_token

What is your AWS Secret key?
my_fake_secret_key

AWS Token: my_fake_access_token
AWS Secret Key: my_fake_secret_key

Does this look correct? (y/n)
AWS Rekognition has been setup

Program Limitations

This program does not work as well with Lyric videos that use transitions between words. For example:

Alternatively, videos with little/no transition between lyrics work really well. For example:

We remedy this by downloading multiple lyric videos, and choosing the "best" one based on the number of unique frames in the video.

The idea is that a lower number of unique frames likely means that the video is not using transitions.

About

Automating the creation of Lyric videos on Youtube...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published