{"id":242,"date":"2018-09-27T09:29:06","date_gmt":"2018-09-27T09:29:06","guid":{"rendered":"http:\/\/xuan.guru\/?p=242"},"modified":"2018-09-30T21:12:44","modified_gmt":"2018-09-30T21:12:44","slug":"command-line-to-convert-all-files-in-a-folder-to-mp3-using-ffmpeg","status":"publish","type":"post","link":"https:\/\/xuan.co.uk\/?p=242","title":{"rendered":"Command line to convert all files in a folder to mp3 using ffmpeg"},"content":{"rendered":"<p>ffmpeg command line to batch to convert every file in every folder to mp3 and delete original<\/p>\n<p>for \/R %%g in (*.m4a) do start \/b \/wait &#8220;&#8221; &#8220;ffmpeg&#8221; -threads 16 -i &#8220;%%g&#8221; -acodec libmp3lame &#8220;%%~dpng.mp3&#8221; &amp;&amp; del &#8220;%%g&#8221;<\/p>\n<p>change *.m4a to your source format, eg, *.wav, *.mp4, *.webm, etc<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ffmpeg command line to batch to convert every file in every folder to mp3 and delete original for \/R %%g in (*.m4a) do start \/b \/wait &#8220;&#8221; &#8220;ffmpeg&#8221; -threads 16 -i &#8220;%%g&#8221; -acodec libmp3lame &#8220;%%~dpng.mp3&#8221; &amp;&amp; del &#8220;%%g&#8221; change *.m4a to your source format, eg, *.wav, *.mp4, *.webm, etc<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[43,45,41,44,15],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-tech-tips","tag-batch","tag-convert","tag-ffmpeg","tag-folder","tag-mp3"],"_links":{"self":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=242"}],"version-history":[{"count":1,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/242\/revisions"}],"predecessor-version":[{"id":243,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/242\/revisions\/243"}],"wp:attachment":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}