One of the reasons I started programming is because I always liked working on something and then be able to let the computer "work for you" while you do anything else...
And today I will showcase how I created an automatism to create 100+ shorts while I was away from the computer exercising.
As a short introduction, it's worth mentioning that I'm currently on a 75 days challenge (you can read this post to see more about it) and this is the first week but since this post is about how I created the automatism, for more information and progress, feel free to subscribe to my free newsletter.
To create that automatism, I tried to mix several tools, more precisely the following:
Basically, the initial idea for this channel was kind of a quiz, so to simplify it, the video structure would be like 4 screens:
Once I had the structure in mind, I tried to think of the cheapest approach to create these videos but that could create interesting results.
For the voices, instead of generating audio for each video, I manually generated up to 10 different (yet similar) introductions, and 10 conclusions using ElevenLabs. And within remotion, every time I was creating a video I would get one of these audios using a random approach.
The same was done for the backgrounds. To have the different videos looking different, I created some visuals with LeonardoAI (manually) and then when creating the video, one random background would be selected at every execution.
To scrap the content, I came up with a bash script that used htmlq to extract the needed information for my videos.
And mixing all these elements, there was a remotion project that by calling it with different parameters, it would arrange the different pieces and animate them so that it looked good.
Example call:
pnpm exec remotion render --audio-codec mp3 --props='{"xxxx": "xxxx"}' --output out/xxxx.mp4
Then, I created a second script that iterated over a list of 100+ topics, and for each of them, was calling the previous command. That way, when I finished exercising, I had 100+ videos created ready to be published to youtube shorts.
I'm proud of the results, and the part I like the most is that it didn't result on an expensive test. If I sum up all the credits used for the audio and the visuals, it was less than 1€, so if it works, it will be a really good investment.
Now is time to upload and program them all and see if it was a good niche, but with what I did, I have the basics to create different kind of videos with remotion.
If you reached this, thanks for reading. If you want more details of the challenge process, check my free newsletter and please leave in the comments any suggestion or question you may have.
great
Can we see what was created?
For the moment I'd prefer to keep it private until seeing if it works fine, but if you follow my journey (either here, in twitter or in my newsletter) sooner or later I'll show it.
How long does it take to create 100 Shorts?
Short answer: around 1-2 minutes...
However, I had to spend some time building the scrap script and then the video "engine" using remotion. So I needed around 6-8 hours to build everything, and from there, after every 2 minutes I can have on short done.
Nice, I see you have a newsletter as well now. I am subscribing.
I'm interested to see the results of these shorts as well, hope to see that in the future updates.
Keep going
Great idea! I wonder how you get audios from 10 of manually created audios by using approach!
This I can share, I just have 10 audios named 1.mp3 to 10.mp3 in the "public/audios/intro/" directory and then in the code, I get one of them using the Math library:
const introAudio: number = Math.floor(Math.random() * 10) + 1;
Later I use it like:
<Audio src={staticFile(
audios/intro/${introAudio}.mp3
)} />thanks for the apply!
I would like to use this tool. Maybe you could check if there's a market for your short generation tool
Another comment has told the same, so I may think on extending it to make it more dynamic and then maybe serve it as a tool.
If I end up doing it I'll let you know (or follow me on X where I will tell it)
Have you posted about it in subreddits?
No, I didn't. Which subreddits would you suggest?
I didn't dive in subreddit yet, but I may try to post in some of them. Thank you so much!
Nice - I started with scripts like this myself and eventually built out a full app Shorts Generator based on it. Still early days on whats possible in this space!
Check it out => shortsgenerator.com
How is the business going for shortsgenerator?
Wow, nice domain name!
ha thanks was happy to get that!