{"id":118264,"date":"2021-06-15T03:20:24","date_gmt":"2021-06-15T03:20:24","guid":{"rendered":"https:\/\/www.leawo.org\/entips\/?p=118264"},"modified":"2021-07-07T07:13:31","modified_gmt":"2021-07-07T07:13:31","slug":"how-to-use-ffmpeg-to-convert-mkv-to-mp4-1400","status":"publish","type":"post","link":"https:\/\/www.leawo.org\/entips\/how-to-use-ffmpeg-to-convert-mkv-to-mp4-1400.html","title":{"rendered":"How to Use FFmpeg to Convert MKV to MP4"},"content":{"rendered":"<p><i>\u201cI simply want to convert video files from MKV to MP4-h264 without losing quality, but I\u2019m not sure how to use this with the help of FFmpeg? Can you please show me the detailed guide to use FFmpeg to convert MKV to MP4 files?\u201d<\/i><\/p>\n<p>As a leading multimedia framework, <a href=\"https:\/\/www.ffmpeg.org\/\" title=\"FFmpeg\" target=\"_blank\" rel=\"nofollow noopener\"><strong>FFmpeg<\/strong><\/a> is able to decode, encode, transcode, mux, demux, stream, filter, play and <strong><a title=\"burn video to DVD\" href=\"https:\/\/www.leawo.org\/tutorial\/how-to-crop-a-video-without-losing-quality-in-ffmpeg-1400.html\" target=\"_blank\" rel=\"noopener noreferrer\">crop multimedia files<\/a><\/strong>. It supports the most obscure ancient formats up to the cutting edge. It is also highly portable: FFmpeg compiles, runs, and passes our testing infrastructure FATE across Linux, Mac OS X, Microsoft Windows, the BSDs, Solaris, etc. under a wide variety of build environments, machine architectures, and configurations. In this guide, we would like to show you a full guide of <b>using FFmpeg to convert video files from MKV to MP4<\/b> without quality loss.<\/p>\n<div class=\"anchor-list-green\">\n<p align=\"center\">Outline<\/p>\n<ul class=\"pl40\">\n<li> <a href=\"#part1\">Part 1: How to install FFmpeg on Windows <\/a> <\/li>\n<li> <a href=\"#part2\">Part 2: Detailed guide on converting MKV to MP4 with FFmpeg <\/a> <\/li>\n<li> <a href=\"#part3\">Part 3: Best alternative to FFmpeg to convert MKV to MP4 <\/a> <\/li>\n<li> <a href=\"#part4\">Conclusion<\/a> <\/li>\n<\/ul>\n<\/div>\n<h2 class=\"wp-part pl20 mt10\" id=\"part1\"><strong>Part 1: How to install FFmpeg on Windows <\/strong><\/h2>\n<p>When it comes to using FFmpeg, many people might get lost in even the installation of FFmpeg. Such kind of command-line programs are not very familiar to regular customers. Programmers would be good at and familiar with these command-line programs.<\/p>\n<div class=\"tc2\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/ffmpeg-1.jpg\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/ffmpeg-1.jpg\" title=\"ffmpeg\" alt=\"ffmpeg\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<p class=\"subtitle\">You could follow the below guide to learn how to install FFmpeg on your computer:<\/p>\n<ol class=\"list-disc\">\n<li>Go to <b>https:\/\/ffmpeg.org\/download.html<\/b>. It contains the latest FFmpeg install packages and binary files. Make sure you have unzipping programs installed like WinRAR or 7Zip. <\/li>\n<li>Click the blue square Windows logo.<\/li>\n<li>Click \"<strong>Windows builds from gyan.dev<\/strong>\" option to a page that contains FFmpeg builds specifically for Windows that contains all of the hardware libraries you could possibly need. <\/li>\n<li>Scroll down to the \"<strong>git<\/strong>\" section, and then click <b>https:\/\/www.gyan.dev\/ffmpeg\/builds\/ffmpeg-git-full.7z<\/b> to download ffmpeg-git-full.7z installer. This link downloads the latest FFmpeg files to your PC in a compressed format to specific folder.<\/li>\n<li>Open the download folder that contains the FFmpeg installer and then right click it to choose \"<strong>Extract Here<\/strong>\" option to extract the download FFmpeg file. <\/li>\n<li>Simple one click on the folder to rename the extracted folder to FFmpeg, and then press the Enter key.<\/li>\n<li>Open the bin file from your FFmpeg build folder. <\/li>\n<div class=\"tc\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/ffmpeg-bin-2.png\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/ffmpeg-bin-2.png\" title=\"\" alt=\"\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<li>And then copy and paste the files with .exe extension to your \u201c<b>C:\\Windows\\System32<\/b>\u201d directory.<\/li>\n<div class=\"tc\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/ffmpeg-bin-3.png\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/ffmpeg-bin-3.png\" title=\"\" alt=\"\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<\/ol>\n<p>With FFmpeg installed successfully, now you could try to convert video files from MKV files to MP4 or others.<\/p>\n<h2 class=\"wp-part pl20 mt10\" id=\"part2\"><strong>Part 2: Detailed guide on converting MKV to MP4 with FFmpeg <\/strong><\/h2>\n<p>Now, it turns to convert MKV to MP4 with FFmpeg on your computer. It\u2019s quite easy and simple. Once you have learned how to convert MKV to MP4 with FFmpeg, you could use FFmpeg to convert video files between any format.<\/p>\n<p>You could follow the below guide to learn the detailed steps on how to convert MKV to MP4 with FFmpeg:<\/p>\n<p><b>Step 1:<\/b> Press the Windows icon and S key on your keyboard to open the search bar, and then input <b>cmd<\/b> command before pressing the \u201cEnter\u201d button.<\/p>\n<div class=\"tc2\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/search-bar-command-4.png\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/search-bar-command-4.png\" title=\"\" alt=\"\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<p><b>Step 2:<\/b> Once the Command Prompt interface shows out, enter <b>FFmpeg<\/b> and then press Enter key on your keyboard. This will launch FFmpeg.<\/p>\n<div class=\"tc2\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/cmd.jpg\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/cmd.jpg\" title=\"\" alt=\"\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<p><b>Step 3:<\/b> Then, input the command line before you press the Enter key on the keyboard:<\/p>\n<div class=\"anchor-list-blue\">\n<ul class=\"pl40\">\n<li>ffmpeg -i C:\\Users\\GAGI-D\\Desktop\\landscape.mp4 C:\\Users\\GAGI-D\\Desktop\\landscape.mkv <\/li>\n<\/ul>\n<\/div>\n<div class=\"tc2\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/convert-mkvto-mp4-via-ffmpeg-6.png\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/convert-mkvto-mp4-via-ffmpeg-6.png\" title=\"convert-mkvto-mp4\" alt=\"convert-mkvto-mp4\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<p><span class=\"bg-gray\">Note:<\/span> Please change \u201c<i>C:\\Users\\GAGI-D\\Desktop\\landscape.mp4<\/i>\u201d and \u201c<i>C:\\Users\\GAGI-D\\Desktop\\landscape.mkv<\/i>\u201d according to your own file and destination directory.<\/p>\n<p><b>Step 4:<\/b> After the conversion completes, you could then open the target folder to view the converted video files. Now, they are MP4 files.<\/p>\n<h2 class=\"wp-part pl20 mt10\" id=\"part3\"><strong>Part 3: Best alternative to FFmpeg to convert MKV to MP4<\/strong><\/h2>\n<p>If you still feel hard of understanding the above MKV to MP4 conversion with FFmpeg, we would like to recommend you a better FFmpeg alternative to help you convert MKV to MP4 files or other files in easier way. That\u2019s <strong><a title=\"Leawo MKV to MP4 Converter\" href=\"https:\/\/www.leawo.org\/video-converter-ultimate\/\" target=\"_blank\" rel=\"noopener noreferrer\">Leawo Leawo MKV to MP4 Converter<\/a><\/strong>, a comprehensive video\/DVD media pack that could help you convert video\/DVD files between various formats, copy and back up DVD, convert and <strong><a title=\"burn video to DVD\" href=\"https:\/\/www.leawo.org\/video-converter-ultimate\/burn.html\" target=\"_blank\" rel=\"noopener noreferrer\">burn video to DVD<\/a><\/strong>, turn photos to slideshow video, burn photos to DVD, etc. It\u2019s much easier to use for converting DVD\/video files compared to FFmpeg.<\/p>\n<p>The below guide would show you how to use FFmpeg alternative to convert MKV to MP4 files. You need to firstly download and install Leawo MKV to MP4 Converter on your computer. Get source MKV files ready for converting.<\/p>\n<p><span style=\"color: #ff6600;\"><strong>Note<\/strong><\/span>: Leawo Video Converter Ultimate is a module built in <strong><a title=\"Leawo Prof. Media\" href=\"https:\/\/www.leawo.org\/total-media-converter-ultimate\/\" target=\"_blank\" rel=\"noopener noreferrer\">Leawo Prof. Media<\/a><\/strong>.<\/p>\n<ul class=\"rec\">\n<li><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2020\/12\/video-converter-ultimate.jpg\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2020\/12\/video-converter-ultimate.jpg\" title=\"Leawo Video Converter Ultimate\" alt=\"Leawo MKV to MP4 Converter\"  src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\"><\/a><\/li>\n<li>\n<h3><a href=\"\/video-converter-ultimate\/\" title=\"Leawo Video Converter Ultimate\" target=\"_blank\" rel=\"noopener\"><strong>Leawo Video Converter Ultimate<\/strong><\/a><\/h3>\n<p>Convert Any Videos and Audios<br \/>\n<strong><a title=\"convert 2D to 3D\" href=\"https:\/\/www.leawo.org\/video-converter-ultimate\/2d-to-3d.html\" target=\"_blank\" rel=\"noopener noreferrer\">converting video from 2D to 3D<\/a><\/strong><br \/>\nOutput for Any Apple and Android Devices<br \/>\nDownload Videos and Audios from 1000+ Sites<br \/>\nProfessional Photo Slideshow Maker and Burner<br \/>\nGreatly Enhance Blu-ray\/DVD\/Video Output Effects<\/p>\n<div><span><\/span><a href=\"https:\/\/www.leawo.org\/downloads\/video-converter-ultimate.html\" class=\"rec-dl-win\">Windows<\/a><a href=\"https:\/\/www.leawo.org\/downloads\/video-converter-ultimate-mac.html\" class=\"rec-buy-mac\">Mac<\/a><\/div>\n<\/li>\n<\/ul>\n<h3 class=\"title6\">Step 1:\u00a0Load source MKV files<\/h3>\n<p>Launch Leawo Prof. Media, and then open the \"Convert\" tab, and then click \"Add Video\" button to browse and add source MKV files for converting. You could add either MKV video files or MKV video folder for batch conversion.<\/p>\n<div class=\"tc2\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/add-source-files-7.jpg\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/add-source-files-7.jpg\" title=\"add-source-files\" alt=\"Leawo MKV to MP4 Converter\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<div class=\"anchor-list-green-bg\">\n<p>Note<\/p>\n<ul>\n<p>After loading source MKV video files, you could select subtitles and audio tracks, play source movies, edit MKV video files, snap screenshots, merge MKV files into one, etc.<\/p>\n<\/ul>\n<\/div>\n<h3 class=\"title6\">Step 2:\u00a0Set output format<\/h3>\n<p>Next to the \u201cAdd Photo\u201d button, click the drop-down box and select \u201cChange\u201d. You will then arrive at the\u00a0Profile\u00a0panel. Open the \"Format\u00a0>\u00a0Common Video\" group to select either MP4 Video as output. You could also choose other formats from either \u201cFormat\u201d or \u201cDevice\u201d group according to your needs.<\/p>\n<div class=\"tc2\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/set-format-8.jpg\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/set-format-8.jpg\" title=\"\" alt=\"Leawo MKV to MP4 Converter\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<p><span class=\"bg-gray\">Optional settings:<\/span> After you\u2019ve set the output format, click the same drop-down box and click \u201cEdit\u201d option and then you could adjust video and audio parameters of selected profile, including: video codec, audio codec, bit rate, aspect ratio, frame rate, channel, etc.<\/p>\n<div class=\"tc2\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/set-parameters-9.jpg\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/set-parameters-9.jpg\" title=\"set-parameters\" alt=\"Leawo MKV to MP4 Converter\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<h3 class=\"title6\">Step 3:\u00a0Set output directory<\/h3>\n<p>Back to the main program interface, click the green \u201cConvert\u201d button. You could then set an output directory on the right popup sidebar in the \"Save to\" box. The required space could be viewed here as well.<\/p>\n<div class=\"tc2\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2020\/10\/Best-Movies-on-Redbox-Convert-Redbox-DVDBlu-ray-for-backup-1.jpg\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2020\/10\/Best-Movies-on-Redbox-Convert-Redbox-DVDBlu-ray-for-backup-1.jpg\" title=\"\" alt=\"Leawo MKV to MP4 Converter\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<h3 class=\"title6\">Step 4:\u00a0Convert MKV to MP4 files<\/h3>\n<p>Click the bottom \u201cConvert\u201d button on the right sidebar to start converting MKV files to MP4 files on your computer. You then only need to wait for the conversion to complete. Once the conversion completes, you could easily transfer the converted video files to your devices for unlimited playback.<\/p>\n<div class=\"tc2\"><a href=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/converting-mkv-to-mp4-11.jpg\" onClick=\"return hs.expand(this)\"><img decoding=\"async\" data-src=\"https:\/\/www.leawo.org\/tutorial\/wp-content\/uploads\/2021\/06\/converting-mkv-to-mp4-11.jpg\" title=\"\" alt=\"Leawo MKV to MP4 Converter\" width=\"500\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/a><\/div>\n<p><b>Note:<\/b> If you are using a Mac computer, you could turn to <strong><a title=\"Leawo Video Converter Ultimate for Mac\" href=\"https:\/\/www.leawo.org\/video-converter-ultimate-mac\/\" target=\"_blank\" rel=\"noopener noreferrer\">Leawo Video Converter Ultimate for Mac<\/a><\/strong> to convert video files on Mac computer, like MP4 to MKV, MKV to MOV, <strong><a title=\"avi to mp4\" href=\"https:\/\/www.leawo.org\/tutorial\/how-to-convert-avi-to-mp4-on-mac-with-mac-avi-to-mp4-converter.html\" target=\"_blank\" rel=\"noopener noreferrer\">AVI to MP4<\/a><\/strong>, etc.<\/p>\n<h2 class=\"wp-part pl20 mt10\" id=\"part4\"><strong>Conclusion<\/strong><\/h2>\n<p>You could easily see that FFmpeg could help you convert video files between various formats without changing the video and audio quality. However, it\u2019s really complicated to use. Quite a few regular netizens could handle the conversion with FFmpeg well, except those programmers. On the contrast, Leawo MKV to MP4 Converter offers an easier and better service for you to convert media files between various formats. It\u2019s quite practical, useful, and yet easy to use. You simply need to download and install the program on your computer, then follow the on-screen instructions to easily convert media files, including DVD, video, audio and image files. Besides the basic converting feature, Leawo MKV to MP4 Converter even provides many side bonus features, such as video editing feature, 2D to 3D conversion, media playback, merging files, etc. Without doubt, Leawo MKV to MP4 Converter would be a better choice for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u201cI simply want to convert video files from MKV to MP4-h264 without losing quality, but I\u2019m not sure how to use this with the help of FFmpeg? Can you please show me the detailed guide to use FFmpeg to convert &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/www.leawo.org\/entips\/how-to-use-ffmpeg-to-convert-mkv-to-mp4-1400.html\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":27,"featured_media":118259,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[266,335,220],"tags":[58],"class_list":["post-118264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-burn-video-to-dvd","category-convert-video","category-converter-alternatives","tag-video-converter-ultimate"],"acf":[],"aioseo_notices":[],"views":8367,"_links":{"self":[{"href":"https:\/\/www.leawo.org\/entips\/wp-json\/wp\/v2\/posts\/118264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.leawo.org\/entips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.leawo.org\/entips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.leawo.org\/entips\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.leawo.org\/entips\/wp-json\/wp\/v2\/comments?post=118264"}],"version-history":[{"count":0,"href":"https:\/\/www.leawo.org\/entips\/wp-json\/wp\/v2\/posts\/118264\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.leawo.org\/entips\/wp-json\/wp\/v2\/media\/118259"}],"wp:attachment":[{"href":"https:\/\/www.leawo.org\/entips\/wp-json\/wp\/v2\/media?parent=118264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.leawo.org\/entips\/wp-json\/wp\/v2\/categories?post=118264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.leawo.org\/entips\/wp-json\/wp\/v2\/tags?post=118264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}