[0:00] welcome to the learning zone today we're [0:01] gonna be batch converting mkv files to [0:03] mp4 files with the same exact quality [0:06] and it will not take that long but make [0:08] sure you have ffmpeg installed on your [0:10] computer if you don't have it already [0:12] installed on your computer i have a [0:13] tutorial on how to do that you can click [0:15] the link right above but first what [0:17] we're going to do is navigate to your [0:20] command prompt so you can do that by [0:21] going into the windows search bar at the [0:23] bottom typing in cmd and the command [0:26] prompt will show up and you can click on [0:28] that so now that we have our command [0:31] prompt open what we are going to do is [0:33] navigate to the directory that has all [0:35] of our mkv files so i have a folder on [0:38] my desktop called mkv and so we're going [0:41] to go there by typing in cd desktop [0:44] and what that cd does is tells it what [0:47] directory to go to so cd desktop and it [0:49] goes to the desktop and now we need to [0:51] go to our mkv folder see the mkv and now [0:54] we are in the mkv folder on our desktop [0:56] if you need to go back you do cd dot dot [0:58] and it'll go back a directory so cd mkb [1:02] so now we are where all of our files are [1:04] at and what we can do if we just want to [1:06] convert one is do ffmpeg [1:08] dash i [1:10] and then the file name file dot mkv make [1:13] sure to have the mkv in it [1:15] dash c [1:16] copy so basically this is just moving it [1:19] from the mkv container to the mp4 [1:22] container it's not re-encoding or doing [1:23] anything like that we're just moving [1:25] containers and it will be basically the [1:27] same file size basically the same file [1:29] but in dot mp4 [1:31] and then file.mp4 you can name it [1:33] whatever you want just make sure you [1:34] have the dot mp4 and then that is just [1:37] for one however we want to batch convert [1:39] we want to do a whole series of them [1:41] but what we want to do is a for loop so [1:43] we're going to do four [1:45] dash r and this will look recursively in [1:48] all of the subfolders so if you have a [1:49] bunch of folders within these folders um [1:52] it will also convert all of those [1:54] and then for the files [1:57] in [1:58] with the name [1:59] dot mkv [2:02] dot [2:04] mkv [2:05] and we're going to tell it what to do so [2:07] for all the files that are mkv files do [2:10] ffmpeg pretty much what we did before [2:14] dash i [2:15] and then this is going to be the file [2:17] name percent f [2:18] so the file [2:20] dash c [2:22] copy which is what we did before [2:25] and then what we want to do [2:26] is the new file dot mp4 so we can do [2:30] percent f dot mp4 [2:33] just like that however we also want to [2:35] clean it up a little bit by getting rid [2:37] of the dot mkv at the end so [2:39] if we just did it like this it'll be [2:41] mkv.mp4 which is a little messy looking [2:43] so we're going to do [2:45] tilde n [2:46] to get rid of that mkv at the end so [2:49] it'll now just say mp4 now if you're [2:52] doing this within a batch already you [2:54] can do percent percent f and then for [2:57] everything instead of percent f and [2:58] it'll do the same exact thing [3:01] but this should get you what you need so [3:03] now we're going to hit enter and it'll [3:05] go through and convert all of our mkv's [3:08] to mp4s it will leave all the mkvs don't [3:10] worry it's just copying them over you [3:12] can delete them later if you'd like and [3:13] just like that i think that was about [3:14] seven or so files that we converted from [3:16] mkv to mp4 they were all somewhere [3:18] around 100 to 400 megabytes big [3:21] so if you have larger files it'll [3:22] probably take a little bit longer so [3:24] thank you for james mac white on github [3:26] for sort of this example i kind of went [3:28] through that if you also need that for [3:29] mac i will leave that in the description [3:31] that's slightly different and if you [3:33] have any issues for example if you have [3:34] like a different audio type free mkv [3:36] file that mp4 doesn't support you may [3:37] have to convert it over but if you click [3:39] the link in the description it kind of [3:41] goes over all of those different [3:42] solutions so make sure to check that out [3:44] if you have any problems and if you have [3:45] any other problems in general you can [3:47] let me know in the comments and i'll try [3:48] my best to help thank you so much for [3:50] watching make sure to leave a like and [3:51] subscribe for more videos like these in [3:53] the future if you have any suggestions [3:54] for future videos let me know as well [3:56] thank you for watching i'll see you next [3:58] time this is the learning zone