VideoHelp Forum


Try StreamFab All-in-One and rip streaming video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 17 of 17
Thread
  1. Hi,

    I have a mkv file where I need to choose the audio / subtitle stremas and set the favorite as default:

    Code:
    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:

    Code:
    -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.

    Code:
    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 !!
    Quote Quote  
  2. Try (if stream 5 is the first subtitle):
    Code:
    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:0 0 -c copy prova.mkv
    Read:
    https://ffmpeg.org/ffmpeg.html
    Search for disposition
    Quote Quote  
  3. Thank you, but not work.
    Quote Quote  
  4. Maybe like

    Code:
    mkvmerge -o NoDefault.mkv --default-track 5:no VideoFile.mkv
    Quote Quote  
  5. thank you, if possible I like to use ffmpeg.
    Quote Quote  
  6. Member netmask56's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Search Comp PM
    You can do all of this in MKVToolNix within a GUI. Takes a few minutes. Just highlight the track you want as default and change the switch in the right hand panel for audio and subtitles. Untick any tracks you don't want and remux.
    SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 7 Ultimate, QNAP NAS TS851
    Quote Quote  
  7. thank you ! I will do.
    Quote Quote  
  8. After some testing I found out the following:

    Ffmpeg marks each first stream type (video, audio, subtitle) automatically as default.
    Only if there are multiple streams of the same type (audio, subtitle) the default status can be changed with the disposition option.

    In the command
    -map 0 -disposition: 0 -disposition:3 default -disposition:4 default
    first instructs to use all streams of the source file (-map: 0); then all dispositions for all streams are cleared (-disposition: 0), then stream 3 is assigned default status (-disposition:3 default), then stream 4 is assigned default status.
    If there is only one stream type, then it will automatically become default.
    Last edited by ProWo; 24th Jun 2021 at 07:07. Reason: typo
    Quote Quote  
  9. Originally Posted by ProWo View Post
    After some testing I found out the following:

    Ffmpeg marks each first stream type (video, audio, subtitle) automatically as default.
    Only if there are multiple streams of the same type (audio, subtitle) the default status can be changed with the disposition option.

    In the command
    -map 0 -disposition: 0 -disposition:3 default -disposition:4 default
    first instructs to use all streams of the source file (-map: 0); then all dispositions for all streams are cleared (-disposition: 0), then stream 3 is assigned default status (-disposition:3 default), then stream 4 is assigned default status.
    If there is only one stream type, then it will automatically become default.
    Thank you I have tried to copy another subtitle:
    Code:
    ffmpeg.exe -y -i originale_ridotto.mkv -map 0:0 -map 0:1 -map 0:2 -map 0:5  -map 0:6 -disposition:a:1 -default-forced -disposition:a:0 +default+forced -disposition:s:0  -default -c copy prova.mkv
    so now the subtitle are two but the first still always the default.

    Any suggest ?
    Quote Quote  
  10. Show me all your streams layout of your originale_ridotto.mkv (g.e. video=0, audio1=1, audio2=2, subtitle1=3, subtitle2=4 and so on).
    Then say me, what streams should be default and default+forced.
    Quote Quote  
  11. Here the original file:

    Code:
    General
    Unique ID                                : 271738250723206880376426206628838418733 (0xCC6EE2272DCE7B9E40251F781FB4A92D)
    Complete name                            : T:\Film\metadata\Originale_ridotto.mkv
    Format                                   : Matroska
    Format version                           : Version 4
    File size                                : 627 MiB
    Duration                                 : 3 min 20 s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 26.3 Mb/s
    Writing application                      : Lavf59.3.100
    Writing library                          : Lavf59.3.100
    ErrorDetectionType                       : Per level 1
    
    Video
    ID                                       : 1
    ID in the original source medium         : 4113 (0x1011)
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L4.1
    Format settings                          : CABAC / 4 Ref Frames
    Format settings, CABAC                   : Yes
    Format settings, Reference frames        : 4 frames
    Codec ID                                 : V_MPEG4/ISO/AVC
    Duration                                 : 3 min 20 s
    Bit rate mode                            : Variable
    Bit rate                                 : 17.9 Mb/s
    Maximum bit rate                         : 38.0 Mb/s
    Width                                    : 1 920 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Variable
    Frame rate                               : 654.329 FPS
    Original frame rate                      : 23.976 (24000/1001) FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.013
    Stream size                              : 11.4 GiB
    Language                                 : English
    Default                                  : Yes
    Forced                                   : No
    Original source medium                   : Blu-ray
    
    Audio #1
    ID                                       : 2
    ID in the original source medium         : 4357 (0x1105)
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 3 min 20 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Bit depth                                : 32 bits
    Compression mode                         : Lossy
    Stream size                              : 126 MiB (20%)
    Title                                    : Stereo
    Language                                 : Italian
    Service kind                             : Complete Main
    Default                                  : Yes
    Forced                                   : No
    Original source medium                   : Blu-ray
    
    Audio #2
    ID                                       : 3
    ID in the original source medium         : 4352 (0x1100)
    Format                                   : DTS XLL
    Format/Info                              : Digital Theater Systems
    Commercial name                          : DTS-HD Master Audio
    Codec ID                                 : A_DTS
    Duration                                 : 3 min 20 s
    Bit rate mode                            : Variable
    Bit rate                                 : 4 956 kb/s
    Channel(s)                               : 8 channels
    Channel layout                           : C L R LFE Lb Rb Lss Rss
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 93.750 FPS (512 SPF)
    Bit depth                                : 24 bits
    Compression mode                         : Lossless
    Stream size                              : 3.15 GiB
    Title                                    : Surround 7.1
    Language                                 : English
    Default                                  : No
    Forced                                   : No
    Original source medium                   : Blu-ray
    
    Audio #3
    ID                                       : 4
    ID in the original source medium         : 4352 (0x1100)
    Format                                   : DTS
    Format/Info                              : Digital Theater Systems
    Codec ID                                 : A_DTS
    Duration                                 : 3 min 20 s
    Bit rate mode                            : Constant
    Bit rate                                 : 1 509 kb/s
    Channel(s)                               : 6 channels
    Channel layout                           : C L R Ls Rs LFE
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 93.750 FPS (512 SPF)
    Bit depth                                : 24 bits
    Compression mode                         : Lossy
    Stream size                              : 983 MiB
    Title                                    : Surround 5.1
    Language                                 : English
    Default                                  : No
    Forced                                   : No
    Original source medium                   : Blu-ray
    
    Audio #4
    ID                                       : 5
    ID in the original source medium         : 4353 (0x1101)
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 3 min 20 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Bit depth                                : 32 bits
    Compression mode                         : Lossy
    Stream size                              : 125 MiB (20%)
    Title                                    : Stereo
    Language                                 : English
    Service kind                             : Complete Main
    Default                                  : No
    Forced                                   : No
    Original source medium                   : Blu-ray
    
    Text #1
    ID                                       : 6
    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
    
    Text #2
    ID                                       : 7
    ID in the original source medium         : 4608 (0x1200)
    Format                                   : PGS
    Codec ID                                 : S_HDMV/PGS
    Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
    Duration                                 : 3 min 18 s
    Bit rate                                 : 39.0 kb/s
    Count of elements                        : 2498
    Stream size                              : 25.1 MiB (4%)
    Language                                 : English
    Default                                  : No
    Forced                                   : No
    Original source medium                   : Blu-ray
    
    Menu
    00:00:00.000                             : :Capitolo 01

    and here the output file:





    Code:
    General
    Unique ID                                : 67639306270200332921399926552547186001 (0x32E2DB45F71E2832CB34170F8B165551)
    Complete name                            : T:\Film\metadata\finale.mkv
    Format                                   : Matroska
    Format version                           : Version 4
    File size                                : 76.0 MiB
    Duration                                 : 3 min 20 s
    Overall bit rate                         : 3 189 kb/s
    Writing application                      : Lavf59.3.100
    Writing library                          : Lavf59.3.100
    ErrorDetectionType                       : Per level 1
    
    Video
    ID                                       : 1
    ID in the original source medium         : 4113 (0x1011)
    Format                                   : HEVC
    Format/Info                              : High Efficiency Video Coding
    Format profile                           : Main 10@L4@Main
    Codec ID                                 : V_MPEGH/ISO/HEVC
    Duration                                 : 3 min 20 s
    Bit rate                                 : 17.9 Mb/s
    Width                                    : 1 920 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Variable
    Frame rate                               : 654.875 FPS
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 10 bits
    Bits/(Pixel*Frame)                       : 0.013
    Stream size                              : 11.4 GiB
    Writing library                          : Lavc59.1.102 libsvt_hevc
    Language                                 : English
    Default                                  : Yes
    Forced                                   : No
    Color range                              : Limited
    Original source medium                   : Blu-ray
    
    Audio #1
    ID                                       : 2
    ID in the original source medium         : 4357 (0x1105)
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 3 min 20 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Bit depth                                : 32 bits
    Compression mode                         : Lossy
    Stream size                              : 126 MiB
    Title                                    : Stereo
    Language                                 : Italian
    Service kind                             : Complete Main
    Default                                  : Yes
    Forced                                   : Yes
    Original source medium                   : Blu-ray
    
    Audio #2
    ID                                       : 3
    ID in the original source medium         : 4353 (0x1101)
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 3 min 20 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Bit depth                                : 32 bits
    Compression mode                         : Lossy
    Stream size                              : 125 MiB
    Title                                    : Stereo
    Language                                 : English
    Service kind                             : Complete Main
    Default                                  : No
    Forced                                   : No
    Original source medium                   : Blu-ray
    
    Text #1
    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 (33%)
    Language                                 : Italian
    Default                                  : Yes
    Forced                                   : No
    Original source medium                   : Blu-ray
    
    Text #2
    ID                                       : 5
    ID in the original source medium         : 4608 (0x1200)
    Format                                   : PGS
    Codec ID                                 : S_HDMV/PGS
    Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
    Duration                                 : 3 min 18 s
    Bit rate                                 : 39.0 kb/s
    Count of elements                        : 2498
    Stream size                              : 25.1 MiB (33%)
    Language                                 : English
    Default                                  : No
    Forced                                   : No
    Original source medium                   : Blu-ray
    
    Menu
    00:00:00.000                             : :Capitolo 01
    for audio I can easly select the default track that I like, but I don't need any default subtitle.

    If for example I play this file with VLC player I see the subtitles, while if I play other MKV files with subtitles using VLC player I don't see the subtitles.

    My need is copy all the subtitles but I don't want see it when I play the movie, but only if I switch with the remote.

    There is a way to do it ?
    Quote Quote  
  12. for audio I can easly select the default track that I like, but I don't need any default subtitle.
    If you have subtitles. at least one has to be default.

    You posted a mediainfo report; the stream numbering here is not the same as with ffmpeg.
    To see the ffmpeg compliant numbering of the streams, you just need to open the video file with ffmpeg.
    e.g. ffmpeg -i originale_ridotto.mkv
    Quote Quote  
  13. sorry you have right:



    Code:
    ffmpeg version 2021-06-16-git-604924a069-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
      built with gcc 10.3.0 (Rev2, Built by MSYS2 project)
      configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
      libavutil      57.  0.100 / 57.  0.100
      libavcodec     59.  1.101 / 59.  1.101
      libavformat    59.  3.100 / 59.  3.100
      libavdevice    59.  0.100 / 59.  0.100
      libavfilter     8.  0.102 /  8.  0.102
      libswscale      6.  0.100 /  6.  0.100
      libswresample   4.  0.100 /  4.  0.100
      libpostproc    56.  0.100 / 56.  0.100
    [matroska,webm @ 000001d82c17b400] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
    Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
    [matroska,webm @ 000001d82c17b400] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
    Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
    Input #0, matroska,webm, from 'Originale_ridotto.mkv':
      Metadata:
        ENCODER         : Lavf59.3.100
      Duration: 00:03:20.20, start: 0.000000, bitrate: 26275 kb/s
      Chapters:
        Chapter #0:0: start 0.000000, end 200.000000
          Metadata:
            title           : Capitolo 01
      Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
        Metadata:
          BPS-eng         : 17908166
          DURATION-eng    : 01:31:03.624833333
          NUMBER_OF_FRAMES-eng: 130996
          NUMBER_OF_BYTES-eng: 12230436033
          SOURCE_ID-eng   : 001011
          _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 win(x64-release)
          _STATISTICS_WRITING_DATE_UTC-eng: 2019-08-20 08:27:57
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
          DURATION        : 00:03:20.199000000
      Stream #0:1(ita): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
        Metadata:
          title           : Stereo
          BPS-eng         : 192000
          DURATION-eng    : 01:31:37.216000000
          NUMBER_OF_FRAMES-eng: 171788
          NUMBER_OF_BYTES-eng: 131933184
          SOURCE_ID-eng   : 001105
          _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 win(x64-release)
          _STATISTICS_WRITING_DATE_UTC-eng: 2019-08-20 08:27:57
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
          DURATION        : 00:03:20.000000000
      Stream #0:2(eng): Audio: dts (DTS-HD MA), 48000 Hz, 7.1, s32p (24 bit)
        Metadata:
          title           : Surround 7.1
          BPS-eng         : 4955718
          DURATION-eng    : 01:31:02.754163888
          NUMBER_OF_FRAMES-eng: 512059
          NUMBER_OF_BYTES-eng: 3383983564
          SOURCE_ID-eng   : 001100
          _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 win(x64-release)
          _STATISTICS_WRITING_DATE_UTC-eng: 2019-08-20 08:27:57
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
          DURATION        : 00:03:20.009000000
      Stream #0:3(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
        Metadata:
          title           : Surround 5.1
          BPS-eng         : 1508781
          DURATION-eng    : 01:31:02.754163888
          NUMBER_OF_FRAMES-eng: 512059
          NUMBER_OF_BYTES-eng: 1030262708
          SOURCE_ID-eng   : 001100
          _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 win(x64-release)
          _STATISTICS_WRITING_DATE_UTC-eng: 2019-08-20 08:27:57
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
          DURATION        : 00:03:20.009000000
      Stream #0:4(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
        Metadata:
          title           : Stereo
          BPS-eng         : 191992
          DURATION-eng    : 01:30:59.784041666
          NUMBER_OF_FRAMES-eng: 170612
          NUMBER_OF_BYTES-eng: 131030016
          SOURCE_ID-eng   : 001101
          _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 win(x64-release)
          _STATISTICS_WRITING_DATE_UTC-eng: 2019-08-20 08:27:57
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
          DURATION        : 00:03:20.000000000
      Stream #0:5(ita): Subtitle: hdmv_pgs_subtitle (default)
        Metadata:
          BPS-eng         : 38797
          DURATION-eng    : 01:30:04.044479166
          NUMBER_OF_FRAMES-eng: 2306
          NUMBER_OF_BYTES-eng: 26207661
          SOURCE_ID-eng   : 001205
          _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 win(x64-release)
          _STATISTICS_WRITING_DATE_UTC-eng: 2019-08-20 08:27:57
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
          DURATION        : 00:03:16.050000000
      Stream #0:6(eng): Subtitle: hdmv_pgs_subtitle
        Metadata:
          BPS-eng         : 38959
          DURATION-eng    : 01:30:04.044479166
          NUMBER_OF_FRAMES-eng: 2498
          NUMBER_OF_BYTES-eng: 26317196
          SOURCE_ID-eng   : 001200
          _STATISTICS_WRITING_APP-eng: MakeMKV v1.14.4 win(x64-release)
          _STATISTICS_WRITING_DATE_UTC-eng: 2019-08-20 08:27:57
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
          DURATION        : 00:03:18.261000000
    At least one output file must be specified
    Quote Quote  
  14. If you have subtitles. at least one has to be default.
    No.

    BEFORE The Swedish subtitle is default.

    Code:
    Unique ID                                : 223285109232700144922718589550430786960 (0xA7FB25D6445299E083147A7F60E41590)
    Complete name                            : D:\00\Video.mkv
    Format                                   : Matroska
    Format version                           : Version 4
    File size                                : 1.17 GiB
    Duration                                 : 44 min 0 s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 3 821 kb/s
    Encoded date                             : UTC 2018-03-31 19:58:40
    Writing application                      : mkvmerge v14.0.0 ('Flow') 64bit
    Writing library                          : libebml v1.3.4 + libmatroska v1.4.5
    
    Video
    ID                                       : 1
    Format                                   : MPEG Video
    Format version                           : Version 2
    Format profile                           : Main@Main
    Format settings                          : CustomMatrix / BVOP
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Custom
    Format settings, GOP                     : M=3, N=12
    Format settings, picture structure       : Frame
    Codec ID                                 : V_MPEG2
    Codec ID/Info                            : MPEG 1 or 2 Video
    Duration                                 : 44 min 0 s
    Bit rate mode                            : Variable
    Bit rate                                 : 3 042 kb/s
    Maximum bit rate                         : 9 608 kb/s
    Width                                    : 720 pixels
    Height                                   : 576 pixels
    Display aspect ratio                     : 4:3
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 FPS
    Standard                                 : PAL
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Interlaced
    Scan order                               : Top Field First
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.293
    Time code of first frame                 : 00:00:00:00
    Time code source                         : Group of pictures header
    GOP, Open/Closed                         : Closed
    Stream size                              : 957 MiB (80%)
    Default                                  : Yes
    Forced                                   : No
    
    Audio #1
    ID                                       : 2
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 44 min 0 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Compression mode                         : Lossy
    Stream size                              : 60.4 MiB (5%)
    Service kind                             : Complete Main
    Default                                  : Yes
    Forced                                   : No
    
    Audio #2
    ID                                       : 3
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 44 min 0 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Compression mode                         : Lossy
    Stream size                              : 60.4 MiB (5%)
    Service kind                             : Complete Main
    Default                                  : No
    Forced                                   : No
    
    Audio #3
    ID                                       : 4
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 44 min 0 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Compression mode                         : Lossy
    Stream size                              : 60.4 MiB (5%)
    Service kind                             : Complete Main
    Default                                  : No
    Forced                                   : No
    
    Audio #4
    ID                                       : 5
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 44 min 0 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Compression mode                         : Lossy
    Stream size                              : 60.4 MiB (5%)
    Service kind                             : Complete Main
    Default                                  : No
    Forced                                   : No
    
    Text #1
    ID                                       : 6
    Format                                   : VobSub
    Muxing mode                              : zlib
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 42 min 33 s
    Bit rate                                 : 2 234 b/s
    Count of elements                        : 280
    Stream size                              : 697 KiB (0%)
    Language                                 : Swedish
    Default                                  : Yes
    Forced                                   : No
    
    Text #2
    ID                                       : 7
    Format                                   : VobSub
    Muxing mode                              : zlib
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 42 min 33 s
    Bit rate                                 : 2 905 b/s
    Count of elements                        : 385
    Stream size                              : 906 KiB (0%)
    Language                                 : English
    Default                                  : No
    Forced                                   : No
    
    Text #3
    ID                                       : 8
    Format                                   : VobSub
    Muxing mode                              : zlib
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 42 min 40 s
    Bit rate                                 : 2 650 b/s
    Count of elements                        : 370
    Stream size                              : 828 KiB (0%)
    Language                                 : French
    Default                                  : No
    Forced                                   : No
    
    Text #4
    ID                                       : 9
    Format                                   : VobSub
    Muxing mode                              : zlib
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 42 min 40 s
    Bit rate                                 : 2 720 b/s
    Count of elements                        : 387
    Stream size                              : 850 KiB (0%)
    Language                                 : French
    Default                                  : No
    Forced                                   : No
    AFTER Runing the code

    Code:
    mkvmerge -o NoDefault.mkv --default-track 5:no Video.mkv
    There is no default subtitles.

    Code:
    General
    Unique ID                                : 174987444822762365610316376077894787735 (0x83A55B2200CDB471951A97284AC1A297)
    Complete name                            : D:\00\NoDefault.mkv
    Format                                   : Matroska
    Format version                           : Version 4
    File size                                : 1.17 GiB
    Duration                                 : 44 min 0 s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 3 815 kb/s
    Encoded date                             : UTC 2021-06-24 14:41:52
    Writing application                      : mkvmerge v8.2.0 ('World of Adventure') 64bit
    Writing library                          : libebml v1.3.1 + libmatroska v1.4.2
    
    Video
    ID                                       : 1
    Format                                   : MPEG Video
    Format version                           : Version 2
    Format profile                           : Main@Main
    Format settings                          : CustomMatrix / BVOP
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Custom
    Format settings, GOP                     : M=3, N=12
    Format settings, picture structure       : Frame
    Codec ID                                 : V_MPEG2
    Codec ID/Info                            : MPEG 1 or 2 Video
    Duration                                 : 44 min 0 s
    Bit rate mode                            : Variable
    Bit rate                                 : 3 036 kb/s
    Maximum bit rate                         : 9 608 kb/s
    Width                                    : 720 pixels
    Height                                   : 576 pixels
    Display aspect ratio                     : 4:3
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 FPS
    Standard                                 : PAL
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Interlaced
    Scan order                               : Top Field First
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.293
    Time code of first frame                 : 00:00:00:00
    Time code source                         : Group of pictures header
    GOP, Open/Closed                         : Closed
    Stream size                              : 955 MiB (80%)
    Default                                  : Yes
    Forced                                   : No
    
    Audio #1
    ID                                       : 2
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 44 min 0 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Compression mode                         : Lossy
    Stream size                              : 60.4 MiB (5%)
    Service kind                             : Complete Main
    Default                                  : Yes
    Forced                                   : No
    
    Audio #2
    ID                                       : 3
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 44 min 0 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Compression mode                         : Lossy
    Stream size                              : 60.4 MiB (5%)
    Service kind                             : Complete Main
    Default                                  : No
    Forced                                   : No
    
    Audio #3
    ID                                       : 4
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 44 min 0 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Compression mode                         : Lossy
    Stream size                              : 60.4 MiB (5%)
    Service kind                             : Complete Main
    Default                                  : No
    Forced                                   : No
    
    Audio #4
    ID                                       : 5
    Format                                   : AC-3
    Format/Info                              : Audio Coding 3
    Commercial name                          : Dolby Digital
    Codec ID                                 : A_AC3
    Duration                                 : 44 min 0 s
    Bit rate mode                            : Constant
    Bit rate                                 : 192 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 31.250 FPS (1536 SPF)
    Compression mode                         : Lossy
    Stream size                              : 60.4 MiB (5%)
    Service kind                             : Complete Main
    Default                                  : No
    Forced                                   : No
    
    Text #1
    ID                                       : 6
    Format                                   : VobSub
    Muxing mode                              : zlib
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 42 min 33 s
    Bit rate                                 : 1 333 b/s
    Count of elements                        : 280
    Stream size                              : 416 KiB (0%)
    Language                                 : Swedish
    Default                                  : No
    Forced                                   : No
    
    Text #2
    ID                                       : 7
    Format                                   : VobSub
    Muxing mode                              : zlib
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 42 min 33 s
    Bit rate                                 : 1 726 b/s
    Count of elements                        : 385
    Stream size                              : 538 KiB (0%)
    Language                                 : English
    Default                                  : No
    Forced                                   : No
    
    Text #3
    ID                                       : 8
    Format                                   : VobSub
    Muxing mode                              : zlib
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 42 min 40 s
    Bit rate                                 : 1 623 b/s
    Count of elements                        : 370
    Stream size                              : 508 KiB (0%)
    Language                                 : French
    Default                                  : No
    Forced                                   : No
    
    Text #4
    ID                                       : 9
    Format                                   : VobSub
    Muxing mode                              : zlib
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 42 min 40 s
    Bit rate                                 : 1 666 b/s
    Count of elements                        : 387
    Stream size                              : 521 KiB (0%)
    Language                                 : French
    Default                                  : No
    Forced                                   : No
    Quote Quote  
  15. Code:
    ffmpeg.exe -y -i originale_ridotto.mkv -map 0 -disposition: 0 -disposition:1 forced -disposition:5 default -c copy prova.mkv
    Video=default
    Audio1 = default+forced
    Subtitle1 (ita) = default
    All other streams not default, not forced
    Quote Quote  
  16. Originally Posted by ProWo View Post
    Code:
    ffmpeg.exe -y -i originale_ridotto.mkv -map 0 -disposition: 0 -disposition:1 forced -disposition:5 default -c copy prova.mkv
    Video=default
    Audio1 = default+forced
    Subtitle1 (ita) = default
    All other streams not default, not forced
    is not clear if aleast one stream must be dafault is a ffmpeg limitation or it is a matroska standard.

    if with mkvmerge is possble disable all default subtiitles, I can think is a ffmpeg limitation.
    Quote Quote  
  17. It's a ffmpeg limitation.
    Quote Quote  



Similar Threads