[0:00] hello so I thought I'll make an [0:01] introduction here into movie pie it's [0:04] sort of a python Library dedicated to [0:06] video editing so let's say he wants to [0:09] do something programmatically or you [0:10] didn't have the tools for video edit [0:12] video editing you can use this free [0:13] python Library so let's just jump into [0:16] it so first thing you need to do is go [0:18] into your terminal shell and install [0:20] um movie Pi so something like bit [0:28] and that should run and it's installed [0:30] quick [0:31] now you need to add your Imports so [0:34] we're going to say from moviepi dot [0:37] editor import Star which means [0:40] everything from that Library [0:42] and then we're gonna say let's load the [0:44] first file of video file into memory so [0:47] the files you want to join together are [0:49] these two so the basic example we're [0:52] going to do here is we're going to get [0:53] this file and this file and then just [0:56] join them together to make a final [0:58] output file so let's just show you what [1:00] it looks like [1:01] if we open that in Explorer [1:05] so you can see it looks something like [1:07] that [1:09] and this one looks something like that [1:13] and hopefully they'll be joined together [1:14] as one file so the first thing we need [1:16] to do is load the first file into memory [1:23] video file and then we have to get the [1:28] the path to that file so if we copy that [1:30] path by doing copy path reference [1:33] absolute path and we put the r in front [1:38] and then we get our second video equals [1:42] video file [1:44] and then the second video file path [1:49] or in front [1:53] now you might be wondering what the r [1:54] does here it just allows us to use this [1:56] type of backslash to denote a path [1:59] otherwise it gets a bit confusing [2:02] so yeah we're gonna say final [2:05] video equals uh concatening [2:09] and then we're going to put a list in [2:11] here so first video second video [2:14] and then the method we're going to [2:16] specify here is compose [2:19] so what this basically does is it's [2:22] getting the video Here video here so the [2:24] first one second one [2:26] taking that in as a list so the order [2:28] does matter here so this one will be [2:29] shown first then this one [2:31] and then it's combining them through a [2:33] compose method that's useful if you have [2:35] two file sizes of the different [2:38] uh resolution size [2:40] final video dot far right and let's call [2:44] this Final in this [2:47] video dot MP4 [2:50] all right let's run this [2:54] so I should be doing some magic and [2:57] usually the first one is sound so audio [3:00] and now we're doing the visual aspect [3:03] that we're joining over [3:07] and hopefully if all goes well you [3:09] should have a final file that you can [3:11] open up [3:13] and if one of the file is slightly [3:16] bigger then you'll you'll just see I'll [3:19] just show you his knee done [3:22] yeah so if we open that up in Explorer [3:26] open that [3:28] you can see here [3:29] this was a smaller file you can see the [3:31] kind of Slide the side bits are a bit [3:34] padded inwards [3:36] and if we move over to the other one you [3:39] can see that takes up the whole window [3:41] so yeah this is a simple example of how [3:43] to use movie pipe [3:45] um like subscribe and I'll see in the [3:46] next video bye