{"id":47456,"date":"2019-09-09T07:40:38","date_gmt":"2019-09-09T12:40:38","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=47456"},"modified":"2021-12-08T13:03:16","modified_gmt":"2021-12-08T18:03:16","slug":"convert-media-files-ffmpeg","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/","title":{"rendered":"How to Convert Media Files with FFmpeg"},"content":{"rendered":"\n<p><strong>In this article:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#supported\">Supported File Types<\/a><\/li><li><a href=\"#audio\">Convert Audio Files<\/a><\/li><li><a href=\"#video\">Convert Video Files<\/a><\/li><li><a href=\"#extract\">Extract Audio from Videos<\/a><\/li><\/ul>\n\n\n\n<p>There are many <a href=\"\/support\/edu\/live-broadcasting\/free-audio-editors\/\">free audio editors<\/a> and <a href=\"\/support\/edu\/live-broadcasting\/free-video-editors\/\">video editors<\/a> that can convert between multiple formats, add metadata, and add effects to improve sound quality &#8211; e.g. Audacity noise cancellation. But sometimes all you need is a different file format. Many <em>audiophiles<\/em> prefer Free Lossless Audio Codec (FLAC) and Ogg Vorbis (OGG), but many music platforms prefer an uncompressed 16-32 bit Windows audio (Wav) file or different levels of compressed MP3. This is can be quickly achieved in a terminal with FFmpeg.<\/p>\n\n\n\n<p>VPS \/ Dedicated server administrators, and Linux desktop users can install FFmpeg for in-depth recording, streaming, and conversion functions for <em>Flac, Mp3, Ogg, Raw, Wav, Mkv, Mov, Mp4, Webm, and more<\/em>.<\/p>\n\n\n\n<p class=\"alert alert-info\">If you don&#8217;t have FFmpeg installed on your VPS or Dedicated server, <a href=\"\/support\/amp\/how-to-get-great-technical-support\/\">email our 24\/7 Live Support<\/a> to request a free installation.<\/p>\n\n\n\n<p>Below we&#8217;ll <strong>cover supported file types and converting a file in FFmpeg<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"supported\">Supported File Types<\/h2>\n\n\n\n<p>Before getting started, you should know how to check for file types and codecs you may need to convert.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li><a href=\"\/support\/server\/ssh\/do-you-provide-ssh-access\/\">Log in to SSH<\/a> or <a href=\"\/support\/edu\/cpanel\/how-to-launch-the-cpanel-terminal\/\">cPanel Terminal<\/a><\/li><li>List FFmpeg-supported file types with the command <code>ffmpeg -formats<\/code><\/li><li>(Optional) Filter the results for a specific format for faster results: <code>ffmpeg -formats | grep mp3<\/code><\/li><li>List supported codecs with the command <code>ffmpeg -codecs<\/code><\/li><li><a href=\"\/support\/server\/linux\/using-the-linux-cd-command\/\">Navigate to your media files directory<\/a> with <code>cd<\/code> command<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"audio\">Audio Files<\/h3>\n\n\n\n<p><strong>Convert audio files<\/strong> with the command <code>ffmpeg -i input.ogg output.mp3<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"video\">Video Files<\/h3>\n\n\n\n<p><strong>Convert video files<\/strong> with the command <code>ffmpeg -i input.mp4 output.webm<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"multiple\">Convert Multiple Files<\/h3>\n\n\n\n<p><strong>Convert a file to multiple files <\/strong>by adding more filenames with a different extension to the end of the command:<br><code>ffmpeg -i input.mp3 output.wav <strong>output.<\/strong><strong>ogg<\/strong><strong> output.<\/strong><strong>mp4<\/strong><\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"extract\">Extract Audio from Video<\/h3>\n\n\n\n<p>Extract the audio from a recorded video with the command <code>ffmpeg -i input.mp4 -vn audio-only.ogg<\/code><\/p>\n\n\n\n<p>This is helpful for sharing broadcasts <a href=\"\/support\/edu\/live-broadcasting\/screencasting-tools\/\">live streams and <\/a><a href=\"\/support\/edu\/live-broadcasting\/screencasting-tools\/\">screencasts<\/a> on <a href=\"\/support\/edu\/live-broadcasting\/podcast-websites\/\">podcast platforms<\/a>. <\/p>\n\n\n\n<p class=\"alert alert-info\">Want to self-host your podcasts? Check out the <a href=\"\/support\/edu\/wordpress\/powerpress-podcast-episodes-wordpress\/\">PowerPress<\/a><a href=\"\/support\/edu\/wordpress\/powerpress-podcast-episodes-wordpress\/\"> Podcasting plugin<\/a> with our NGINX-powered <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\">WordPress Hosting<\/a>.<\/p>\n\n\n\n<p>You can use the <code>ffmpeg -version<\/code> and <code>ffmpeg -help<\/code> commands for troubleshooting information. Learn more from our <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/\"  >Live Broadcasting channel<\/a> and <a href=\"https:\/\/ffmpeg.org\/ffmpeg.html\">FFmpeg.org<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article: Supported File Types Convert Audio Files Convert Video Files Extract Audio from Videos There are many free audio editors and video editors that can convert between multiple formats, add metadata, and add effects to improve sound quality &#8211; e.g. Audacity noise cancellation. But sometimes all you need is a different file format.<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4304],"tags":[],"class_list":["post-47456","post","type-post","status-publish","format-standard","hentry","category-live-broadcasting"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Convert Media Files with FFmpeg | InMotion Hosting<\/title>\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.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/\" \/>\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 | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In this article: Supported File Types Convert Audio Files Convert Video Files Extract Audio from Videos There are many free audio editors and video editors that can convert between multiple formats, add metadata, and add effects to improve sound quality &#8211; e.g. Audacity noise cancellation. But sometimes all you need is a different file format. Read More &gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-09-09T12:40:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-08T18:03:16+00:00\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"How to Convert Media Files with FFmpeg\",\"datePublished\":\"2019-09-09T12:40:38+00:00\",\"dateModified\":\"2021-12-08T18:03:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/\"},\"wordCount\":332,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Live Broadcasting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/\",\"name\":\"How to Convert Media Files with FFmpeg | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2019-09-09T12:40:38+00:00\",\"dateModified\":\"2021-12-08T18:03:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Convert Media Files with FFmpeg\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Convert Media Files with FFmpeg | InMotion Hosting","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.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/","og_locale":"en_US","og_type":"article","og_title":"How to Convert Media Files with FFmpeg | InMotion Hosting","og_description":"In this article: Supported File Types Convert Audio Files Convert Video Files Extract Audio from Videos There are many free audio editors and video editors that can convert between multiple formats, add metadata, and add effects to improve sound quality &#8211; e.g. Audacity noise cancellation. But sometimes all you need is a different file format. Read More >","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2019-09-09T12:40:38+00:00","article_modified_time":"2021-12-08T18:03:16+00:00","author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"How to Convert Media Files with FFmpeg","datePublished":"2019-09-09T12:40:38+00:00","dateModified":"2021-12-08T18:03:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/"},"wordCount":332,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Live Broadcasting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/","name":"How to Convert Media Files with FFmpeg | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2019-09-09T12:40:38+00:00","dateModified":"2021-12-08T18:03:16+00:00","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/live-broadcasting\/convert-media-files-ffmpeg\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Convert Media Files with FFmpeg"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/47456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=47456"}],"version-history":[{"count":8,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/47456\/revisions"}],"predecessor-version":[{"id":83239,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/47456\/revisions\/83239"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=47456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=47456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=47456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}