I have some files that have multiple audio tracks and several subtitle tracks, all of which are marked default. I’d like to remove the default from all the subtitle tracks and all-but-one of the audio tracks (and possibly move the audio track to be the first track). How would I do that?

    • matey@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      Okay, looks like you can do it in ffmpeg, but you have to map every audio stream individually in the command to rearrange them.

  • TwilightKiddy@programming.dev
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    I believe you can remove (default) with -disposition:stream 0 so, if you have three subtitle tracks, all marked as default, and you want only second with that mark, you’d do something like this:

    ffmpeg -i input.mkv -c copy -disposition:s:0 0 -disposition:s:2 0 output.mkv

    And if you want to mark a stream as default, you do -disposition:stream default.