I have an MKV that has two audio tracks: 1) commentary 2) regular movie dialog. I want to swap them so the the regular dialog track is first (and therefore the default) and within the same ffmpeg command I would like to assign a "title" to each track. But, whatever I try, I either get them staying the same sequence, or, I get two additional tracks (in the order I prefer). This is my best try so far that results in 4 audio tracks:
The goal is to accomplish this in a single ffmpeg command. Can this be done?Code:ffmpeg -i in.mkv -metadata:s:a:0 "title=Italian with Commentary in Russian" -metadata:s:a:0 language="" -metadata:s:a:1 "title=Italian" -metadata:s:a:1 language="" -map 0:a:1 -map 0:a:0 -c copy out.mp4
+ Reply to Thread
Results 1 to 10 of 10
-
-
Use clever Ffmpeg-GUI.
Load your mkv, click main, click multiplex, check the D/F field of the desired audio stream (you can check only one audio stream as default), click multiplex, done.
[Attachment 62939 - Click to enlarge] -
-
-
I accept help for the problem(s) that I present. I presented a problem to be solved with ffmpeg. The ultimate goal is to build an ffmpeg GUI from problems that I encounter, so, I am documenting solutions so that I don't forget next time. I can't learn how to do that by accepting non-ffmpeg solutions. If you don't want to provide solutions within the specifications provided, that is your problem not mine.
-
-
Take a look here, it uses -disposition
https://askubuntu.com/questions/1329432/how-to-change-default-audio-track-using-ffmpeg -
-
Similar Threads
-
ffmpeg not copying both audio tracks
By the_steve_randolph in forum Newbie / General discussionsReplies: 1Last Post: 11th Jul 2021, 12:09 -
Batch Remux Multiple files Swapping video keeping rest of tracks
By xonathan in forum Newbie / General discussionsReplies: 0Last Post: 6th Aug 2020, 13:10 -
Swapping audio from two video sources
By tpapictures in forum AudioReplies: 1Last Post: 14th Aug 2018, 23:10 -
How do I tell ffmpeg to export a image sequence to a MP4 video libx 264. Bu
By oduodui in forum EditingReplies: 3Last Post: 23rd Jun 2017, 18:12 -
running multiple files in sequence possible with ffmpeg?
By sommers in forum Newbie / General discussionsReplies: 6Last Post: 4th Jun 2017, 09:19