{"id":6022,"date":"2016-06-23T14:22:34","date_gmt":"2016-06-23T06:22:34","guid":{"rendered":"https:\/\/kyle.ai\/blog\/?p=6022"},"modified":"2016-06-23T14:22:34","modified_gmt":"2016-06-23T06:22:34","slug":"%e5%88%a9%e7%94%a8-ffmpeg-%e8%bf%9b%e8%a1%8c%e9%9f%b3%e9%a2%91%e6%a0%bc%e5%bc%8f%e8%bd%ac%e6%8d%a2","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/6022.html","title":{"rendered":"\u5229\u7528 ffmpeg \u8fdb\u884c\u97f3\u9891\u683c\u5f0f\u8f6c\u6362"},"content":{"rendered":"<h1 id=\"h1-audio\">1.\u00a0Audio<\/h1>\n<h2 id=\"h1-1-wav-waveform-audio-file-format\">1.1.\u00a0WAV &#8211; Waveform Audio File Format<\/h2>\n<h3 id=\"h1-1-1-wav-to-mp3\">1.1.1.\u00a0wav to mp3<\/h3>\n<p>Convert wav to mp3 with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.wav -acodec libmp3lame audio.mp3<\/pre>\n<h3 id=\"h1-1-2-wav-to-ogg\">1.1.2.\u00a0wav to ogg<\/h3>\n<p>Convert wav to ogg with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.wav  -acodec libvorbis audio.ogg<\/pre>\n<h3 id=\"h1-1-3-wav-to-aac\">1.1.3.\u00a0wav to aac<\/h3>\n<p>Convert wav to acc with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.wav  -acodec libfaac audio.aac<\/pre>\n<h3 id=\"h1-1-4-wav-to-ac3\">1.1.4.\u00a0wav to ac3<\/h3>\n<p>Convert wav to ac3 with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.wav -acodec ac3 audio.mp3<\/pre>\n<h2 id=\"h1-2-ogg-free-open-standard-container\">1.2.\u00a0OGG &#8211; Free, open standard container<\/h2>\n<h3 id=\"h1-2-1-ogg-to-mp3\">1.2.1.\u00a0ogg to mp3<\/h3>\n<p>Convert ogg to mp3 with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.ogg -acodec libmp3lame audio.mp3<\/pre>\n<h3 id=\"h1-2-2-ogg-to-wav\">1.2.2.\u00a0ogg to wav<\/h3>\n<p>Convert ogg to wav with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.ogg audio.wav<\/pre>\n<h3 id=\"h1-2-3-ogg-to-aac\">1.2.3.\u00a0ogg to aac<\/h3>\n<p>Convert ogg to aac with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.ogg  -acodec libfaac audio.aac<\/pre>\n<h3 id=\"h1-2-4-ogg-to-ac3\">1.2.4.\u00a0ogg to ac3<\/h3>\n<p>Convert ogg to ac3 with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.ogg -acodec ac3 audio.ac3<\/pre>\n<h2 id=\"h1-3-ac3-acoustic-coder-3\">1.3.\u00a0AC3 &#8211; Acoustic Coder 3<\/h2>\n<h3 id=\"h1-3-1-ac3-to-mp3\">1.3.1.\u00a0ac3 to mp3<\/h3>\n<p>Convert ac3 to mp3 with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.ac3 -acodec libmp3lame audio.mp3<\/pre>\n<h3 id=\"h1-3-2-ac3-to-wav\">1.3.2.\u00a0ac3 to wav<\/h3>\n<p>Convert ac3 to wav with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.ac3 audio.wav<\/pre>\n<h3 id=\"h1-3-3-ac3-to-aac\">1.3.3.\u00a0ac3 to aac<\/h3>\n<p>Convert ac3 to aac with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.ac3  -acodec libfaac audio.aac<\/pre>\n<h3 id=\"h1-3-4-ac3-to-ogg\">1.3.4.\u00a0ac3 to ogg<\/h3>\n<p>Convert ac3 to ogg with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.ac3 -acodec libvorbis audio.ogg<\/pre>\n<h2 id=\"h1-4-aac-advanced-audio-coding\">1.4.\u00a0AAC &#8211; Advanced Audio Coding<\/h2>\n<h3 id=\"h1-4-1-aac-to-mp3\">1.4.1.\u00a0aac to mp3<\/h3>\n<p>Convert aac to mp3 with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.aac -acodec libmp3lame audio.mp3<\/pre>\n<h3 id=\"h1-4-2-aac-to-wav\">1.4.2.\u00a0aac to wav<\/h3>\n<p>Convert aac to wav with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.aac audio.wav<\/pre>\n<h3 id=\"h1-4-3-aac-to-ac3\">1.4.3.\u00a0aac to ac3<\/h3>\n<p>Convert aac to ac3 with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.aac  -acodec ac3 audio.ac3<\/pre>\n<h3 id=\"h1-4-4-aac-to-ogg\">1.4.4.\u00a0aac to ogg<\/h3>\n<p>Convert aac to ogg with ffmpeg:<\/p>\n<pre>ffmpeg -i audio.aac -libvorbis audio.ogg<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>1.\u00a0Audio 1.1.\u00a0WAV &#8211; Waveform Audio File Format 1. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-6022","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6022","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=6022"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6022\/revisions"}],"predecessor-version":[{"id":6023,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/6022\/revisions\/6023"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=6022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=6022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=6022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}