Opened 3 years ago

Closed 3 years ago

#9300 closed defect (worksforme)

Disable default subtitle

Reported by: Marco Panza Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: subtitles
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Hi,

I have many mkv files where I need to choose the audio / subtitle streams and set the favorite as default:

ffmpeg.exe -y -i originale_ridotto.mkv -map 0:0 -map 0:1 -map 0:2 -map 0:5 -disposition:a:1 -default-forced -disposition:a:0 +default+forced -disposition:s -default -c copy prova.mkv

With this command I can choose the audio track that I like and make the first audio as default and work for audio but not work for subtitles

I have tried:

-disposition:s -default
-disposition:s:0 -default
-default_mode infer_no_subs

but in all case the stream 5 (subtitle) is always default. I like to copy multiple subtitles and remove all default.

Text
ID                                       : 4
ID in the original source medium         : 4613 (0x1205)
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 3 min 16 s
Bit rate                                 : 38.8 kb/s
Count of elements                        : 2306
Stream size                              : 25.0 MiB (4%)
Language                                 : Italian
Default                                  : Yes
Forced                                   : No
Original source medium                   : Blu-ray

Thare is a way to disable all subtitles ?

Thank you !!

Change History (3)

comment:1 by Marco Panza, 3 years ago

Status: newopen

comment:2 by Carl Eugen Hoyos, 3 years ago

Version: 4.3.2unspecified

Please test current FFmpeg git head and provide the command line you tested together with the complete, uncut console output and an input sample to make this a valid ticket.

comment:3 by mkver, 3 years ago

Resolution: worksforme
Status: openclosed

As has already been said, your ticket is very incomplete; but given that your Mediainfo log contains the line "ID in the original source medium : 4613 (0x1205)" one can infer that your input file is a Matroska file (most likely one created by MakeMKV) and that it contains a subtitle stream marked as default. Therefore what you want can be achieved by e.g. "-disposition:s -default -default_mode infer_no_subs" (the former to disable the default disposition in the input, the latter to not make the muxer infer the disposition for subtitles).

Note: See TracTickets for help on using tickets.