so I have a video (could be MKV or MP4) with multiple audio tracks and multiple subtitles (different languages).
What I want is to remux into a new video and:
1. selecting just 1 or 2 audio tracks
2. selecting just 1 or 2 subtitle tracks
3. making 1 audio track and 1 subtitle track (if available) as default so they are automatically selected when the video is played using VLC.
I've searched the net but cannot find what I'm looking for. I've also looked at the "man ffmpeg". I think I may have to use the -map parameter but the examples given seems to be limited to copying just the audio.
Thanks a lot!
![]()
+ Reply to Thread
Results 1 to 2 of 2
-
-
What I want is to remux into a new video and:
Code:-map 0:v:0
1. selecting just 1 or 2 audio tracksCode:-map 0:a:0
Code:-map 0:a:1
->Code:-map 0:v:0 -map 0:a:0 -map 0:a:1
Code:-map 0:s:0 -map 0:s:1
No clue about the vlc stuff, don't use it, don't like it.
afaik mp4 has no flags to mark a stream as forced, mkv does, but ffmpeg doesn't offer an option to set that flag.
mkvmerge does however, see: https://mkvtoolnix.download/doc/mkvmerge.html
-> you probably want to look at mkvmerge instead of ffmpeg)
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini
Similar Threads
-
problem with ffmpeg - cutting video and merging audio tracks
By yakov in forum EditingReplies: 0Last Post: 23rd Mar 2016, 12:00 -
Remux .mov into .mkv (with ffmpeg - or something else)
By HoraceMcMahon in forum Video ConversionReplies: 5Last Post: 29th Feb 2016, 06:19 -
ffmpeg remux wmv to mp4
By Russs in forum Newbie / General discussionsReplies: 3Last Post: 23rd Sep 2014, 05:49 -
Mkvmerge - no video after muxing several audio tracks and bd remux video
By portgas in forum Newbie / General discussionsReplies: 0Last Post: 11th Sep 2014, 07:24 -
Does FFmpeg/WinFF remux or convert?
By Thunderhead2772 in forum Video ConversionReplies: 2Last Post: 23rd Nov 2011, 18:29