VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. 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!

    Quote Quote  
  2. What I want is to remux into a new video and:
    Looking at the example you you posted:
    Code:
    -map 0:v:0
    selects the first video stream from source 0
    1. selecting just 1 or 2 audio tracks
    Code:
    -map 0:a:0
    selects the first audio stream from source 0
    Code:
    -map 0:a:1
    selects the second audio stream from source 0
    ->
    Code:
    -map 0:v:0 -map 0:a:0 -map 0:a:1
    selects the first video stream and the first two audio streams
    Code:
    -map 0:s:0 -map 0:s:1
    selects the first two subtitle streams

    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 Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!