I just discovered avidemux and it looks like a pretty powerful tool, but I am new to it.

I have some mkv files with E_AC3 audio and I want to use multiAVCHD to create a BluRay image. My problem is that multiAVCHD passes the E_AC3 files without recoding to tsmuxer and my BluRay player doesn't support E_AC3 audio.

I used avidemux to recode the audio from E_AC3 to AC3 and copied the video. They play fine with vlc. However, when I try to use multiAVCHD to create a BluRay image from the resulting mkv files, the audio is late by several seconds. If I extract the audio from the new mkv and remux it with the video from the source mkv, and then use multiAVCHD, the audio is synced perfectly.

This leads me to believe that the problem is not in the E_AC3 to AC3 conversion but in the construction of the mkv file by avidemux. Are there some options I need to tweak in order to get a multiAVCHD-friendly output from this tool?

ORIGINAL FILE

General
Unique ID : 116722575040153481969694346275460762502 (0x57CFF3434B60E564C88B993159184B86)
Complete name : Z:\A FILE.mkv
Format : Matroska
Format version : Version 4
File size : 2.80 GiB
Duration : 49 min 24 s
Overall bit rate : 8 122 kb/s
Encoded date : UTC 2019-02-28 23:12:45
Writing application : mkvmerge v30.1.0 ('Forever And More') 64-bit
Writing library : libebml v1.3.6 + libmatroska v1.4.9

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 49 min 24 s
Bit rate mode : Constant
Bit rate : 7 479 kb/s
Nominal bit rate : 10 000 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.144
Stream size : 2.58 GiB (92%)
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : E-AC-3
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Duration : 49 min 24 s
Bit rate mode : Constant
Bit rate : 640 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 226 MiB (8%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No

OUTPUT FROM AVIDEMUX

General
Unique ID : 320396878293222023394437421771814398163 (0xF10A31B70BC93FD8CCA9F2B5F44CE8D3)
Complete name : Z:\A FILE_avidemux.mkv
Format : Matroska
Format version : Version 4
File size : 2.63 GiB
Duration : 49 min 24 s
Overall bit rate mode : Constant
Overall bit rate : 7 611 kb/s
Writing application : Lavf57.71.100
Writing library : Lavf57.71.100
ErrorDetectionType : Per level 1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 49 min 24 s
Bit rate mode : Constant
Bit rate : 7 331 kb/s
Nominal bit rate : 10 000 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.141
Stream size : 2.53 GiB (96%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 49 min 24 s
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Delay relative to video : -80 ms
Stream size : 45.2 MiB (2%)
Service kind : Complete Main
Default : Yes
Forced : No

RESULT FROM REMUX

General
Unique ID : 201616493225067547734467713485253031938 (0x97ADEC95A5F0BA7482E9434ABCC2B802)
Complete name : Z:\A FILE_remux.mkv
Format : Matroska
Format version : Version 2
File size : 2.63 GiB
Duration : 49 min 24 s
Overall bit rate mode : Constant
Overall bit rate : 7 609 kb/s
Encoded date : UTC 2019-03-04 22:52:54
Writing application : mkvmerge v5.8.0 ('No Sleep / Pillow') built on Sep 2 2012 15:37:04
Writing library : libebml v1.2.3 + libmatroska v1.3.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 49 min 24 s
Bit rate mode : Constant
Bit rate : 7 479 kb/s
Nominal bit rate : 10 000 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.144
Stream size : 2.58 GiB (98%)
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 49 min 24 s
Bit rate mode : Constant
Bit rate : 128 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 45.2 MiB (2%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No