{"id":22292,"date":"2022-05-11T19:20:35","date_gmt":"2022-05-11T11:20:35","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=22292"},"modified":"2022-05-18T19:13:06","modified_gmt":"2022-05-18T11:13:06","slug":"ffmpeg-guide","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/","title":{"rendered":"How to Convert Media Files With FFmpeg"},"content":{"rendered":"<p>FFmpeg is a very powerful and great <strong>command line tool used for performing various conversion operations on audio and video files<\/strong>. The good thing about this tool is that it is absolutely free to use. It is available for Windows, Linux and Mac operating systems.<\/p>\n<p>Not everyone knows how to use it though and for that purpose, I\u2019ve come up with this guide on <strong>how to use FFmpeg for Windows OS<\/strong>. From the very first step of downloading the program to cropping an audio file, this tutorial aims to help you cover the basics, so that you can play around more later on.<\/p>\n<h2>Downloading FFmpeg for Windows<\/h2>\n<p>To download the tool, <a rel=\"nofollow\" href=\"https:\/\/ffmpeg.org\/\">click here<\/a> to go to the webpage. Once you\u2019ve done that locate the download option, as shown below. The download option highlighted in <strong>green<\/strong> is for <strong>32-bit<\/strong> Windows OS while the other option in <strong>red<\/strong> is for <strong>64-bit<\/strong> Windows OS.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/downloading-ffmpeg-for-windows.jpg\" alt=\"download ffmpeg\" width=\"600\" height=\"189\"><\/figure>\n<p>To <strong>verify if your OS is 32-bit or 64-bit<\/strong>, click on the <strong>Start<\/strong> icon on the left side of your desktop then type <strong>Run<\/strong> in search bar and in run write the command of dxdiag and press the <span class=\"key\">Enter<\/span> key.<\/p>\n<p>Under the heading of <strong>\u2018System Information\u2019<\/strong>, you can easily find the name of the OS and the version being used (32-bit or 64-bit).<\/p>\n<h2>Extracting the files<\/h2>\n<p>Once you have downloaded FFmpeg, you\u2019ll have to <strong>extract the files from the .zip folder<\/strong>. For this purpose, you should have a zip extractor installed. You can download a free zip extractor called 7-zip from <a rel=\"nofollow\" href=\"https:\/\/7-zip.org\/\">here<\/a>.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/extracting-the-files.jpg\" height=\"165\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<p>After extracting the files, select all of the files, create a folder in C drive named <strong>FFmpegTool<\/strong> and paste all the files in this folder as shown below. It is important to note that you should <strong>keep the folder name and drive the same<\/strong> to avoid any problems in executing commands to perform conversions.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/extracting-the-files2.jpg\" height=\"202\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<h2>Starting FFmpeg<\/h2>\n<p>Go to <strong>Run<\/strong>, type <code>cmd<\/code> and press the <strong>Enter<\/strong> key. A command line window will appear as shown here.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/starting-ffmpeg.jpg\" height=\"304\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<p>Type <code>cd\\<\/code> and press the <strong>Enter<\/strong> key. It should appear as below.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/starting-ffmpeg2.jpg\" height=\"105\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<p>Now type <code>cd FFmpegTool<\/code>, this command <strong>will allow you to enter into the FFmpegTool folder<\/strong> which we have created earlier (be careful with the spelling as any spelling mistake in command will cause an error).<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/starting-ffmpeg3.jpg\" height=\"117\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<p>Type <code>cd bin<\/code> and press the <strong>Enter<\/strong> key to access the content in the bin folder. You should see the following.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/starting-ffmpeg4.jpg\" height=\"306\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<p>Finally, type <code>ffmpeg.exe<\/code> and press the <strong>Enter<\/strong> key. It will take 1 or 2 seconds to execute the command and you should be able to see the result shown below.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/starting-ffmpeg5.jpg\" height=\"304\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<p>If you see  text lines written on your screen (as per the above image) then it means the tool is working fine and ready to use.<\/p>\n<h2>Some important FFmpeg commands<\/h2>\n<p>Now, we\u2019ll go through some of the<strong> important commands for FFmpeg<\/strong>. Copy the video in the bin folder on which you\u2019ll perform the operations. I have copied a video called <em>samplevideo<\/em> and will use this video throughout the remainder of this post.<\/p>\n<h3> 1. Extracting audio-only from video file<\/h3>\n<p>Once you have tested that FFmpeg is working fine then type in the following command:<\/p>\n<p><code>ffmpeg -i yourvideoname.mp4 -vn -ab 128 outputaudio.mp3<\/code><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/extracting-audio-only-from-video-file.jpg\" height=\"105\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<p>Here <code>-vn<\/code> is used to extract audio and <code>-ab<\/code> is used to save audio as 128Kbps MP3 file. You can change the bit rate to 256Kbps or something else. Just change the value after <code>-ab<\/code>. All of the output files will be stored automatically in the bin folder.<\/p>\n<h3>2. Extracting video while muting audio<\/h3>\n<p>In the command written below, -an is used to remove the audio from the video file. The command should look like so:<\/p>\n<p><code>ffmpeg -i yourvideoname.mp4 -an mutevideo.mp4<\/code><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/extracting-video-while-muting-audio.jpg\" height=\"96\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<h3>3. Resizing video file<\/h3>\n<p>In the command written below, <code>-s<\/code> is used to resize the video file.The command is:<\/p>\n<p><code>ffmpeg -i yourvideoname.mp4 -s 640x480 -c:a copy resizedvideo.mp4<\/code><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/resize-the-video-file.jpg\" height=\"105\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<h3>4. Adding poster image to an audio file<\/h3>\n<p>You can <strong>add a poster image to your audio file<\/strong> easily and the output would be a video file with an image being displayed in the front and audio in the background. This is really handy when uploading MP3 files to video hosting and sharing sites.<\/p>\n<p>You must <strong>copy the image in the bin folder<\/strong>. Then execute this command:<\/p>\n<p><code>ffmpeg -loop 1 -i inputimage.jpg -i inputaudio.mp3 -c:v libx264 -c:a -strict experimental -b:a 192k -shortest outputfile.mp4<\/code><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/adding-poster-image-to-an-audio-file.jpg\" height=\"70\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<h3>5. Cut video file into a smaller clip<\/h3>\n<p>The <code>-ss<\/code> defines the starting time stamp (here starting time is the 45th second) and <code>-t<\/code> tells the total time duration for the clip. So, <code>-t<\/code> 40 means 40 second duration. The command should like this:<\/p>\n<p><code>ffmpeg -i  yourvideoname.mp4 -ss 00:00:45 -codec copy -t 40 outputclip.mp4<\/code><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/cut-video-file-into-a-smaller-clip.jpg\" height=\"64\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<h3> 6. Split a video file into multiple parts <\/h3>\n<p>Most of the hosting servers only allows for a specific size of file to be uploaded. To overcome this issue, you can <strong>use the split command to split a large video file into smaller parts<\/strong>, which is:<\/p>\n<p><code>ffmpeg -i  yourvideoname.mp4 -t 00:00:59 -c copy part1.mp4 -ss 00:00:59 -codec copy part2.mp4<\/code><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/split-a-video-file-into-multiple-parts.jpg\" height=\"64\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<p>Here <code>-t<\/code> 00:00:59 represents a part that is created from the start of the video to the 59th second of video. <code>-ss<\/code> 00:00:59 shows the starting time stamp for the video. It means that the 2nd part will start from the 59th second and will continue up to the end of the original video file.<\/p>\n<h3>7. Convert a video file from one format to another<\/h3>\n<p>You can see all of the formats supported by FFmpeg by using the following command:<\/p>\n<p><code>ffmpeg -formats<\/code><\/p>\n<p>To convert a video file from one format to another format, the following command is used:<\/p>\n<p><code>ffmpeg -i  yourvideoname.mp4 -c:v libx264 outputfilename.wmv<\/code><\/p>\n<p>The command below is an example of when converting a .mp4 file into a .wmv file.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/convert-a-video-file-from-one-format-to-another.jpg\" height=\"66\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<h3>8. Join (merge) multiple video files<\/h3>\n<p>FFmpeg can also <strong>join multiple video or audio files with the same codecs<\/strong>. Create a <em>.txt<\/em> file including a list of all the input video files that are supposed to be merged. The keyword file is followed by name, path and the format of the video files. Add all of the files in the same way in the created .txt file and save this .txt file in the bin folder.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/merge-video-files.jpg\" height=\"146\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<p>Now type the following command to join the video files:<\/p>\n<p><code>ffmpeg -f concat -i file-list.txt -c copy outputfile.mp4<\/code><\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/merge-video-files2.jpg\" height=\"66\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<h3>9. Cropping and audio file<\/h3>\n<p>To crop part of an audio file, the following command can be utilized:<\/p>\n<p><code>ffmpeg -ss 00:00:15 -t 45 -i sampleaudio.mp3 croppedaudio.mp3<\/code><\/p>\n<p>Here, <code>-ss<\/code> 00:00:15 is the staring time and <code>-t<\/code> 45 is the duration of the cropped file.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/cropping-an-audio-file.jpg\" height=\"68\" width=\"600\" alt=\"convert media files ffmpeg\"><\/figure>\n<h2>Alternatively\u2026<\/h2>\n<p>While FFmpeg is great, this free tool still may have some limitations that wouldn\u2019t do what you need to do.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.winxdvd.com\/hd-video-converter-deluxe\/\">WinX HD Video Converter<\/a>, on the other side, is a GPU-accelerated HD video converter that not only converts media files but also allows you to cut\/merge, resize videos, etc. Do check it out.<\/p>\n<figure><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/winx.jpg\" height=\"598\" width=\"880\" alt=\"convert media files ffmpeg\"><\/figure>\n<h2>Conclusion<\/h2>\n<p>We\u2019ve covered downloading and installing FFmpeg as well as some of the useful commands that you can use. You can<strong> explore the rest of the commands via the help option<\/strong> of FFmpeg. Just type in <code>ffmpeg -h<\/code> in command line. This will list all the available options and commands for these options. So why don\u2019t you try it out for yourself?<\/p>","protected":false},"excerpt":{"rendered":"<p>FFmpeg is a very powerful and great command line tool used for performing various conversion operations on audio and video files. The good thing about this tool is that it is absolutely free to use. It is available for Windows, Linux and Mac operating systems. Not everyone knows how to use it though and for&hellip;<\/p>\n","protected":false},"author":142,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3397],"tags":[3053,3073],"topic":[4521],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Convert Media Files With FFmpeg - Hongkiat<\/title>\n<meta name=\"description\" content=\"FFmpeg is a very powerful and great command line tool used for performing various conversion operations on audio and video files. The good thing about\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Convert Media Files With FFmpeg\" \/>\n<meta property=\"og:description\" content=\"FFmpeg is a very powerful and great command line tool used for performing various conversion operations on audio and video files. The good thing about\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-11T11:20:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-18T11:13:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/downloading-ffmpeg-for-windows.jpg\" \/>\n<meta name=\"author\" content=\"Fahad Khan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Fahad_Khan_TE\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fahad Khan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/\"},\"author\":{\"name\":\"Fahad Khan\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/8a8e24e5b2bacac5562a799adba100ec\"},\"headline\":\"How to Convert Media Files With FFmpeg\",\"datePublished\":\"2022-05-11T11:20:35+00:00\",\"dateModified\":\"2022-05-18T11:13:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/\"},\"wordCount\":1091,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/ffmpeg-guide\\\/downloading-ffmpeg-for-windows.jpg\",\"keywords\":[\"Command Line\",\"Video Editing Tools\"],\"articleSection\":[\"Desktop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/\",\"name\":\"How to Convert Media Files With FFmpeg - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/ffmpeg-guide\\\/downloading-ffmpeg-for-windows.jpg\",\"datePublished\":\"2022-05-11T11:20:35+00:00\",\"dateModified\":\"2022-05-18T11:13:06+00:00\",\"description\":\"FFmpeg is a very powerful and great command line tool used for performing various conversion operations on audio and video files. The good thing about\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/ffmpeg-guide\\\/downloading-ffmpeg-for-windows.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/ffmpeg-guide\\\/downloading-ffmpeg-for-windows.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/ffmpeg-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Convert Media Files With FFmpeg\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/8a8e24e5b2bacac5562a799adba100ec\",\"name\":\"Fahad Khan\",\"description\":\"Fahad Khan is a writer for Hongkiat.com. He is an energetic engineer and teacher with a love for stimulating technology and handy tools, apps and services.\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/Fahad_Khan_TE\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/fahad_khan\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Convert Media Files With FFmpeg - Hongkiat","description":"FFmpeg is a very powerful and great command line tool used for performing various conversion operations on audio and video files. The good thing about","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/","og_locale":"en_US","og_type":"article","og_title":"How to Convert Media Files With FFmpeg","og_description":"FFmpeg is a very powerful and great command line tool used for performing various conversion operations on audio and video files. The good thing about","og_url":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2022-05-11T11:20:35+00:00","article_modified_time":"2022-05-18T11:13:06+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/downloading-ffmpeg-for-windows.jpg","type":"","width":"","height":""}],"author":"Fahad Khan","twitter_card":"summary_large_image","twitter_creator":"@Fahad_Khan_TE","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Fahad Khan","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/"},"author":{"name":"Fahad Khan","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/8a8e24e5b2bacac5562a799adba100ec"},"headline":"How to Convert Media Files With FFmpeg","datePublished":"2022-05-11T11:20:35+00:00","dateModified":"2022-05-18T11:13:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/"},"wordCount":1091,"commentCount":5,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/downloading-ffmpeg-for-windows.jpg","keywords":["Command Line","Video Editing Tools"],"articleSection":["Desktop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/","url":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/","name":"How to Convert Media Files With FFmpeg - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/downloading-ffmpeg-for-windows.jpg","datePublished":"2022-05-11T11:20:35+00:00","dateModified":"2022-05-18T11:13:06+00:00","description":"FFmpeg is a very powerful and great command line tool used for performing various conversion operations on audio and video files. The good thing about","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/downloading-ffmpeg-for-windows.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/ffmpeg-guide\/downloading-ffmpeg-for-windows.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/ffmpeg-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Convert Media Files With FFmpeg"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/8a8e24e5b2bacac5562a799adba100ec","name":"Fahad Khan","description":"Fahad Khan is a writer for Hongkiat.com. He is an energetic engineer and teacher with a love for stimulating technology and handy tools, apps and services.","sameAs":["https:\/\/x.com\/Fahad_Khan_TE"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/fahad_khan\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-5Ny","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/22292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/142"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=22292"}],"version-history":[{"count":3,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/22292\/revisions"}],"predecessor-version":[{"id":59730,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/22292\/revisions\/59730"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=22292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=22292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=22292"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=22292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}