{"id":778,"date":"2018-02-20T02:16:01","date_gmt":"2018-02-20T07:16:01","guid":{"rendered":"http:\/\/main.jmah.net\/?p=778"},"modified":"2021-05-09T13:28:11","modified_gmt":"2021-05-09T17:28:11","slug":"add-a-new-audio-track-to-existing-file","status":"publish","type":"post","link":"https:\/\/main.jmah.net\/?p=778","title":{"rendered":"Add a new audio track to an existing file"},"content":{"rendered":"<p><a href=\"http:\/\/main.jmah.net\/?attachment_id=714\" rel=\"attachment wp-att-714\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-714\" src=\"http:\/\/main.jmah.net\/wp-content\/uploads\/2017\/01\/ffmpeg-e1484897077295.jpg\" alt=\"\" width=\"300\" height=\"168\" \/><\/a>There is yet another common use of FFMPEG, i.e. adding a new audio track to an existing file which can be a video-only file or a video file already with an audio track. A use case will be adding a second audio track to a file already with video and sound. The following is an example of the command to add audio.dts audio track to an existing mkv file:<\/p>\n<p><strong>ffmpeg -i input.mkv -i audio.dts -map 0 -map 1 -c copy output.mkv<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is yet another common use of FFMPEG, i.e. adding a new audio track to an existing file which can be a video-only file or a video file already with an audio track. A use case will be adding a &hellip; <a href=\"https:\/\/main.jmah.net\/?p=778\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-778","post","type-post","status-publish","format-standard","hentry","category-ffmpeg","category-research-information-technology"],"_links":{"self":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/778","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=778"}],"version-history":[{"count":4,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/778\/revisions"}],"predecessor-version":[{"id":782,"href":"https:\/\/main.jmah.net\/index.php?rest_route=\/wp\/v2\/posts\/778\/revisions\/782"}],"wp:attachment":[{"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/main.jmah.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}