20
ffmpeg help (lemmy.dbzer0.com)

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?

top 4 comments
sorted by: hot top controversial new old
[-] narshee@iusearchlinux.fyi 14 points 1 year ago

mkvtoolnix is the best tool for this stuff. iirc ffmpeg has some limitations in this area

[-] matey@lemmy.dbzer0.com 4 points 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 4 points 1 year ago* (last edited 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.

this post was submitted on 25 Sep 2023
20 points (91.7% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

54420 readers
190 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder

📜 c/Piracy Wiki (Community Edition):


💰 Please help cover server costs.

Ko-Fi Liberapay
Ko-fi Liberapay

founded 1 year ago
MODERATORS