VideoHelp Forum
+ Reply to Thread
Results 1 to 8 of 8
Thread
  1. Hello everyone.
    This is my first post, and I'm somewhat new to this field.

    I have this video file, which has 3 audio tracks. Currently, Audio #3 is the default audio track. What I want is to,
    make Audio #1 as the default audio track,
    remove Audio #2,
    while keeping everything else the same as the source.

    Here is the MediaInfo of the source file.
    Code:
    General
    Unique ID                                : 240280729378745007439953695493743031178 (0xB4C4629AF546917106232EF5244DB38A)
    Complete name                            : E:\input.mkv
    Format                                   : Matroska
    Format version                           : Version 4
    File size                                : 647 MiB
    Duration                                 : 42 min 15 s
    Overall bit rate                         : 2 141 kb/s
    Encoded date                             : UTC 2019-06-27 17:43:12
    Writing application                      : mkvmerge v32.0.0 ('Astral Progressions') 64-bit
    Writing library                          : libebml v1.3.7 + libmatroska v1.5.0
    Writing frontend                         : StaxRip v1.9.0.0
     
    Video
    ID                                       : 1
    Format                                   : HEVC
    Format/Info                              : High Efficiency Video Coding
    Format profile                           : Main 10@L3@Main
    Codec ID                                 : V_MPEGH/ISO/HEVC
    Duration                                 : 42 min 15 s
    Bit rate                                 : 1 420 kb/s
    Width                                    : 720 pixels
    Height                                   : 576 pixels
    Display aspect ratio                     : 16:9
    Original display aspect ratio            : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 FPS
    Standard                                 : PAL
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 10 bits
    Bits/(Pixel*Frame)                       : 0.137
    Stream size                              : 429 MiB (66%)
    Title                                    : Encoded by M
    Writing library                          : x265 3.0_Au+16-0018ca1ca42f:[Windows][MSVC 1916][64 bit] 10bit
    Encoding settings                        : cpuid=1111039 / frame-threads=3 / numa-pools=12 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=720x576 / interlace=0 / total-frames=63375 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=25 / keyint=250 / gop-lookahead=0 / bframes=8 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=80 / lookahead-slices=0 / scenecut=40 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=5 / merange=57 / temporal-mvp / weightp / weightb / no-analyze-src-pics / deblock=-3:-3 / no-sao / no-sao-non-deblock / rd=4 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.50 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=22.5 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=3 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=4 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / qp-adaptation-range=1.00
    Default                                  : Yes
    Forced                                   : No
     
    Audio #1
    ID                                       : 2
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : A_AAC-2
    Duration                                 : 42 min 14 s
    Bit rate                                 : 140 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Delay relative to video                  : 20 ms
    Stream size                              : 42.3 MiB (7%)
    Title                                    : Original
    Language                                 : English
    Default                                  : No
    Forced                                   : No
     
    Audio #2
    ID                                       : 3
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : A_AAC-2
    Duration                                 : 42 min 14 s
    Bit rate                                 : 419 kb/s
    Channel(s)                               : 6 channels
    Channel layout                           : C L R Ls Rs LFE
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Delay relative to video                  : 20 ms
    Stream size                              : 127 MiB (20%)
    Title                                    : DVD
    Language                                 : English
    Default                                  : No
    Forced                                   : No
     
    Audio #3
    ID                                       : 6
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : A_AAC-2
    Duration                                 : 42 min 14 s
    Bit rate                                 : 152 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Delay relative to video                  : 20 ms
    Stream size                              : 45.8 MiB (7%)
    Title                                    : Commentary
    Language                                 : English
    Default                                  : Yes
    Forced                                   : No
     
    Text #1
    ID                                       : 4
    Format                                   : VobSub
    Muxing mode                              : zlib
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 41 min 50 s
    Bit rate                                 : 5 017 b/s
    Frame rate                               : 0.214 FPS
    Count of elements                        : 538
    Stream size                              : 1.50 MiB (0%)
    Language                                 : English
    Default                                  : Yes
    Forced                                   : No
     
    Text #2
    ID                                       : 5
    Format                                   : VobSub
    Muxing mode                              : zlib
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 41 min 53 s
    Bit rate                                 : 7 684 b/s
    Frame rate                               : 0.267 FPS
    Count of elements                        : 671
    Stream size                              : 2.30 MiB (0%)
    Title                                    : Commentary
    Language                                 : English
    Default                                  : No
    Forced                                   : No
     
    Menu
    00:00:00.080                             : en:Chapter 01
    00:03:41.120                             : en:Chapter 02
    00:08:06.440                             : en:Chapter 03
    00:11:58.240                             : en:Chapter 04
    00:15:14.960                             : en:Chapter 05
    00:18:26.160                             : en:Chapter 06
    00:21:39.480                             : en:Chapter 07
    00:24:59.480                             : en:Chapter 08
    00:26:27.560                             : en:Chapter 09
    00:29:32.000                             : en:Chapter 10
    00:33:18.040                             : en:Chapter 11
    00:39:34.560                             : en:Chapter 12
    What is the best way to do this? I appreciate any help you can provide.
    Quote Quote  
  2. Use clever FFmpeg-GUI.
    Load your file, click main, click multiplex, select your streams like in the picture, click multiplex.
    Done.

    Image
    [Attachment 74448 - Click to enlarge]
    Quote Quote  
  3. I did as you said. Though it seemed like the job was done, I compared the output with the source to be sure.
    Here is the MediaInfo of the output, and I've highlighted and stated the differences compared to the source.

    Red - Changed
    Green - Added

    Code:
    General
    Unique ID                                : 14958319740576879983780737521904731214 (0xB40DE1A6B0E6DFA899892CD884F444E)
    Complete name                            : E:\R\Output\input_muxed.mkv
    Format                                   : Matroska
    Format version                           : Version 4
    File size                                : 523 MiB
    Duration                                 : 42 min 15 s
    Overall bit rate                         : 1 731 kb/s
    Frame rate                               : 25.000 FPS
    Writing application                      : clever FFmpeg-GUI
    Writing library                          : Lavf60.15.100
    ErrorDetectionType                       : Per level 1
    WRITING_FRONTEND                         : StaxRip v1.9.0.0
    
    Video
    ID                                       : 1
    Format                                   : HEVC
    Format/Info                              : High Efficiency Video Coding
    Format profile                           : Main 10@L3@Main
    Codec ID                                 : V_MPEGH/ISO/HEVC
    Duration                                 : 42 min 15 s
    Bit rate                                 : 1 420 kb/s
    Width                                    : 720 pixels
    Height                                   : 576 pixels
    Display aspect ratio                     : 16:9
    Original display aspect ratio            : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 25.000 FPS
    Standard                                 : PAL
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 10 bits
    Bits/(Pixel*Frame)                       : 0.137
    Stream size                              : 429 MiB (82%)
    Title                                    : Encoded by M
    Writing library                          : x265 3.0_Au+16-0018ca1ca42f:[Windows][MSVC 1916][64 bit] 10bit
    Encoding settings                        : cpuid=1111039 / frame-threads=3 / numa-pools=12 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / input-csp=1 / input-res=720x576 / interlace=0 / total-frames=63375 / level-idc=0 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / no-repeat-headers / annexb / no-aud / no-hrd / info / hash=0 / no-temporal-layers / open-gop / min-keyint=25 / keyint=250 / gop-lookahead=0 / bframes=8 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=80 / lookahead-slices=0 / scenecut=40 / radl=0 / no-splice / no-intra-refresh / ctu=64 / min-cu-size=8 / rect / no-amp / max-tu-size=32 / tu-inter-depth=1 / tu-intra-depth=1 / limit-tu=0 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / no-strong-intra-smoothing / max-merge=3 / limit-refs=3 / limit-modes / me=3 / subme=5 / merange=57 / temporal-mvp / weightp / weightb / no-analyze-src-pics / deblock=-3:-3 / no-sao / no-sao-non-deblock / rd=4 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / no-b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=2.00 / psy-rdoq=1.50 / no-rd-refine / no-lossless / cbqpoffs=0 / crqpoffs=0 / rc=crf / crf=22.5 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / ipratio=1.40 / pbratio=1.30 / aq-mode=3 / aq-strength=1.00 / cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=4 / overscan=0 / videoformat=5 / range=0 / colorprim=2 / transfer=2 / colormatrix=2 / chromaloc=0 / display-window=0 / max-cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=1 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / no-hdr / no-hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / no-svt / qp-adaptation-range=1.00
    Default                                  : Yes
    Forced                                   : No
    Color range                              : Limited
    
    Audio #1
    ID                                       : 2
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : A_AAC-2
    Duration                                 : 42 min 14 s
    Bit rate                                 : 140 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Delay relative to video                  : 20 ms
    Stream size                              : 42.3 MiB (8%)
    Title                                    : Original
    Language                                 : English
    Default                                  : Yes
    Forced                                   : No
    
    Audio #2
    ID                                       : 3
    Format                                   : AAC LC
    Format/Info                              : Advanced Audio Codec Low Complexity
    Codec ID                                 : A_AAC-2
    Duration                                 : 42 min 14 s
    Bit rate                                 : 152 kb/s
    Channel(s)                               : 2 channels
    Channel layout                           : L R
    Sampling rate                            : 48.0 kHz
    Frame rate                               : 46.875 FPS (1024 SPF)
    Compression mode                         : Lossy
    Delay relative to video                  : 20 ms
    Stream size                              : 45.8 MiB (9%)
    Title                                    : Commentary
    Language                                 : English
    Default                                  : No
    Forced                                   : No
    
    Text #1
    ID                                       : 4
    Format                                   : VobSub
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 41 min 58 s
    Bit rate                                 : 5 017 b/s
    Frame rate                               : 0.214 FPS
    Count of elements                        : 538
    Stream size                              : 1.50 MiB (0%)
    Language                                 : English
    Default                                  : No
    Forced                                   : No
    
    Text #2
    ID                                       : 5
    Format                                   : VobSub
    Codec ID                                 : S_VOBSUB
    Codec ID/Info                            : Picture based subtitle format used on DVDs
    Duration                                 : 41 min 58 s
    Bit rate                                 : 7 684 b/s
    Frame rate                               : 0.266 FPS
    Count of elements                        : 671
    Stream size                              : 2.30 MiB (0%)
    Title                                    : Commentary
    Language                                 : English
    Default                                  : No
    Forced                                   : No
    
    Menu
    00:00:00.080                             : Chapter 01
    00:03:41.120                             : Chapter 02
    00:08:06.440                             : Chapter 03
    00:11:58.240                             : Chapter 04
    00:15:14.960                             : Chapter 05
    00:18:26.160                             : Chapter 06
    00:21:39.480                             : Chapter 07
    00:24:59.480                             : Chapter 08
    00:26:27.560                             : Chapter 09
    00:29:32.000                             : Chapter 10
    00:33:18.040                             : Chapter 11
    00:39:34.560                             : Chapter 12
    Removed
    Code:
    General
    Encoded date                             : UTC 2019-06-27 17:43:12
    
    Text #1
    Muxing mode                              : zlib
    
    Text #2
    Muxing mode                              : zlib
    I'm not sure how some of these changes affect the output. So, could you please look into this?
    Last edited by AVEd; 22nd Oct 2023 at 02:56.
    Quote Quote  
  4. No problem with this differences.
    Your file is fine and will play perfect.
    Quote Quote  
  5. Thank you. Your tool makes using FFmpeg so much easier.
    Quote Quote  
  6. Originally Posted by AVEd View Post
    Thank you. Your tool makes using FFmpeg so much easier.
    If you like it, leave a review
    Quote Quote  
  7. Originally Posted by ProWo View Post
    If you like it, leave a review
    Sure. But one thing.
    The program automatically removes the default flag from most tracks, which is unexpected.
    I checked this with FFmpeg, and it doesn't have this behavior. Since the program is based on FFmpeg, it should be able to do the same so the flags from the source are preserved.
    It may not be a big issue. I am just letting you know.
    Last edited by AVEd; 8th Nov 2023 at 12:37.
    Quote Quote  
  8. Originally Posted by AVEd View Post
    The program automatically removes the default flag from most tracks, which is unexpected.
    I checked this with FFmpeg, and it doesn't have this behavior. Since the program is based on FFmpeg, it should be able to do the same so the flags from the source are preserved.
    It may not be a big issue. I am just letting you know.
    In the latest beta, which I am currently working on, you can select default and forced separately.
    default is automatically activated for all streams, but can also be switched off.
    Quote Quote  



Similar Threads

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