You can’t miss it. Today, the trend on YouTube is for static music videos with beautiful girls or photos, with the channel logo upfront.
I wanted to see if it was possible to create this kind of channel, fully automated with just a Python script.
The first step is to find a music source.
I wanted to find tracks not yet popular on YouTube but with a clear public interest.
I settled on the “Popular Now” playlist on Hype Machine. This was perfect as HypeMachine already as an API, so no need to go scrape the website.
Then, I needed elements to create the static image associated with the music.
For the background image, Unplash was the obvious choice. I created a collection of ~200 images that would fit for the videos. I would then only need to fetch a random one with https://source.unsplash.com/collection/<collectionid>/1920x1080.
I also needed my logo to be put on each video, so I made a quick one.
Here is what it would like at the end, after a quick merge:
I then created a folder for every channel I wanted to automate.
This allow me to easily add more channels, in less than 5 minutes.
creds.json contains the channel’s oAuth token needed to upload videos to YouTube.
info.json is a very simple file containing some needed infos for the script:
Finnaly, res/titlelayer.png is the channel’s logo to be merged.
Now the Python script.
I decided to use MoviePy to build the video, and youtube-upload to send it to YouTube.
I wrote the id of the music to a uploaded.txt file located on my Dropbox, so I could use the script on different computers without worrying that a music would be uploaded multiple times.
Then, you can either choose to manually run the script once a day or set up a cron job to do it for ya.
Unfortunately, after a while (6 months) YouTube disabled my channels after a copyright notice, without really explaining what video was the problem.
The first channel I published brought approximately 1000 subscribers and $1/day before it was shutdown, after a few months of full automation.
I would have posted my stats here but I can’t access the dashboard anymore.
I’m now looking to start another channel with royalty-free music, to be free of copyright problems and take it as far as possible.