[0:00] when I was scrolling through YouTube [0:01] shorts yesterday I came across these [0:03] videos seeing random facts about the [0:05] world here's an example meet the [0:06] immortal jellyfish a mesmerizing [0:08] creature that defies the boundaries of [0:10] life and death and I just thought how [0:12] easy these would be to automate with [0:13] literally little to no effort here's how [0:16] that went I wanted to use Python to do [0:18] this project since you can easily edit [0:19] videos with it using a library called [0:22] movie pie and because this is [0:23] essentially free money method I named it [0:25] money printer first of all I created a [0:27] very simple front end where you can [0:29] enter your video idea and it will [0:30] automatically generate the video for you [0:33] since I already know how to use the Bing [0:35] version of cgt with python from previous [0:37] projects I let it create a video script [0:39] based on the provided user idea now that [0:42] I have the script next up is to find [0:43] good stock videos based on Search terms [0:46] that jpt also generated for me for this [0:48] I used the pixels API which is very easy [0:50] to use and also free there is one [0:52] problem however I don't know the [0:54] resolution of the videos that the pixels [0:56] API provides me with so I need to [0:57] manually resize them using movie pie [0:59] which is a pain since most of the time [1:01] it simply renders this weird TV glitch [1:03] screen but somehow I managed to fix it [1:05] by cropping the video clips instead of [1:07] resizing them now I had to find a form [1:09] of Texas speech which didn't sound too [1:11] robotic but I obviously don't have [1:13] enough money for the 11 Labs API so we [1:15] went with a Tik Tok TTS unofficial API [1:18] from GitHub and it was converting the [1:19] sentences in my script just fine there's [1:21] a platform called assembly Ai and this [1:23] is what I used to get a transcript of my [1:25] just generated Texas speech as it would [1:27] include timestamps and it can save the [1:29] sub it in the SRT format movie piie [1:32] comes in clutch Again by letting me burn [1:34] subtitles into the video easily by [1:36] concatenating the original video file [1:38] with a subti clip class instance which [1:40] just needs the path to my just exported [1:43] SRT file with that the application is [1:45] basically finished Let's test it out [1:47] okay let's run our back end all right [1:49] should be running now let's click on [1:52] generate and now wait right now it's [1:55] generating or generating our [1:58] script it's generated it now these are [2:01] the Search terms which we are going to [2:03] use with the pixels API here are the [2:05] videos it shows now it's downloading [2:08] those okay it prints the script again [2:12] now it's completing the text of speech [2:14] using the Tik Tok API or unofficial API [2:18] all right now it's generated the [2:19] subtitles with the assembly Ai and last [2:23] but not least it's combining everything [2:24] together and once this is done we should [2:27] have our output. MP4 I'm going to speed [2:30] up this process a little bit cuz it's [2:31] boring all right it seems like we still [2:34] have to do something so I'm going to [2:36] take that sacrifice because I'd rather [2:38] wait a little while than edit all these [2:40] videos myself so I'm fine with that [2:43] great now it's done with that said let's [2:45] have a look at our video the Amazon [2:48] rainforest is the largest tropical [2:50] rainforest in the world covering an area [2:52] of approximately 5.5 million square km [2:56] it is home to a diverse range of plant [2:58] and animal species many of which are [3:01] found nowhere else on Earth this looks [3:03] good enough just so you don't think this [3:05] was just some useless project I actually [3:07] tested these clips on a channel and here [3:09] are the [3:11] results as you can see I did get a [3:14] couple 1K views shorts which is pretty [3:16] impressive for an automation bot in my [3:18] opinion if you guys want the code like [3:20] And subscribe as I'll be posting it on [3:22] GitHub in the upcoming days till next [3:28] time oh