Kurt.noise
20th November 2024, 13:45
How do you make that mux?
1/ I took a win64 installer from there : https://gpac.io/downloads/gpac-nightly-builds/ & extract it into a folder.
2/ Then, apply this command :
mp4box.exe -add input.mkv#trackID=1:fps=24000/1001 -add audio.dts#trackID=1:lang=eng -new output.mp4
Info from audio.dts :
General
Complete name : audio.dts
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
File size : 51.4 MiB
Overall bit rate mode : Variable
Audio
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Bit rate mode : Variable
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 : Lossless
Info from output.mp4 :
General
Complete name : output.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/avc1)
File size : 170 MiB
Duration : 3 min 25 s
Overall bit rate mode : Variable
Overall bit rate : 6 935 kb/s
Frame rate : 23.976 FPS
Encoded date : 2024-11-20 12:35:15 UTC
Tagged date : 2024-11-20 12:35:15 UTC
Writing application : GPAC-2.5-DEV-rev707-g9c261926-master
Video
ID : 1
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 fra : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 3 min 25 s
Bit rate : 4 829 kb/s
Maximum bit rate : 19.2 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 23.976 (24000/1001) FPS
Minimum frame rate : 23.810 FPS
Maximum frame rate : 24.390 FPS
Color space : RGB
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.097
Stream size : 118 MiB (70%)
Title : Piste Vidéo
Writing library : x264 core 146 r2538 121396c
Encoding settings : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=15.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=30000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Language : English
Encoded date : 2024-11-20 12:35:15 UTC
Tagged date : 2024-11-20 12:35:16 UTC
Color range : Limited
Matrix coefficients : Identity
mdhd_Duration : 205202
ColorSpace_Original : YUV
Codec configuration box : avcC
Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : dtsc
Duration : 3 min 25 s
Bit rate mode : Variable
Bit rate : 2 100 kb/s
Maximum bit rate : 2 746 kb/s
Sampling rate : 48.0 kHz
Stream size : 51.4 MiB (30%)
Title : Piste Audio
Language : English
Default : Yes
Alternate group : 1
Encoded date : 2024-11-20 12:35:15 UTC
Tagged date : 2024-11-20 12:35:16 UTC
Info from input.mkv :
General
Unique ID : 194964996866116433750323166388027802333 (0x92ACE47EA0A15008964FF4FED95642DD)
Complete name : input.mkv
Format : Matroska
Format version : Version 4
File size : 170 MiB
Duration : 3 min 25 s
Overall bit rate mode : Variable
Overall bit rate : 6 931 kb/s
Frame rate : 23.976 FPS
Encoded date : 2015-04-06 09:49:53 UTC
Writing application : mkvmerge v6.9.1 ('Blue Panther') 64bit built on Apr 18 2014 18:23:38
Writing library : libebml v1.3.0 + libmatroska v1.4.1
Video
ID : 1
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 fra : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 3 min 25 s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 146 r2538 121396c
Encoding settings : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=15.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=30000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No
Audio
ID : 2
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Codec ID : A_DTS
Duration : 3 min 25 s
Bit rate mode : Variable
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 : Lossless
Language : English
Default : Yes
Forced : No
All ffmpeg libraries from the installer are required in this case.
1/ I took a win64 installer from there : https://gpac.io/downloads/gpac-nightly-builds/ & extract it into a folder.
2/ Then, apply this command :
mp4box.exe -add input.mkv#trackID=1:fps=24000/1001 -add audio.dts#trackID=1:lang=eng -new output.mp4
Info from audio.dts :
General
Complete name : audio.dts
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
File size : 51.4 MiB
Overall bit rate mode : Variable
Audio
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Bit rate mode : Variable
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 : Lossless
Info from output.mp4 :
General
Complete name : output.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/avc1)
File size : 170 MiB
Duration : 3 min 25 s
Overall bit rate mode : Variable
Overall bit rate : 6 935 kb/s
Frame rate : 23.976 FPS
Encoded date : 2024-11-20 12:35:15 UTC
Tagged date : 2024-11-20 12:35:15 UTC
Writing application : GPAC-2.5-DEV-rev707-g9c261926-master
Video
ID : 1
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 fra : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 3 min 25 s
Bit rate : 4 829 kb/s
Maximum bit rate : 19.2 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 23.976 (24000/1001) FPS
Minimum frame rate : 23.810 FPS
Maximum frame rate : 24.390 FPS
Color space : RGB
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.097
Stream size : 118 MiB (70%)
Title : Piste Vidéo
Writing library : x264 core 146 r2538 121396c
Encoding settings : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=15.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=30000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Language : English
Encoded date : 2024-11-20 12:35:15 UTC
Tagged date : 2024-11-20 12:35:16 UTC
Color range : Limited
Matrix coefficients : Identity
mdhd_Duration : 205202
ColorSpace_Original : YUV
Codec configuration box : avcC
Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Codec ID : dtsc
Duration : 3 min 25 s
Bit rate mode : Variable
Bit rate : 2 100 kb/s
Maximum bit rate : 2 746 kb/s
Sampling rate : 48.0 kHz
Stream size : 51.4 MiB (30%)
Title : Piste Audio
Language : English
Default : Yes
Alternate group : 1
Encoded date : 2024-11-20 12:35:15 UTC
Tagged date : 2024-11-20 12:35:16 UTC
Info from input.mkv :
General
Unique ID : 194964996866116433750323166388027802333 (0x92ACE47EA0A15008964FF4FED95642DD)
Complete name : input.mkv
Format : Matroska
Format version : Version 4
File size : 170 MiB
Duration : 3 min 25 s
Overall bit rate mode : Variable
Overall bit rate : 6 931 kb/s
Frame rate : 23.976 FPS
Encoded date : 2015-04-06 09:49:53 UTC
Writing application : mkvmerge v6.9.1 ('Blue Panther') 64bit built on Apr 18 2014 18:23:38
Writing library : libebml v1.3.0 + libmatroska v1.4.1
Video
ID : 1
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 fra : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 3 min 25 s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 146 r2538 121396c
Encoding settings : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=15.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=30000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No
Audio
ID : 2
Format : DTS XLL
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Codec ID : A_DTS
Duration : 3 min 25 s
Bit rate mode : Variable
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 : Lossless
Language : English
Default : Yes
Forced : No
All ffmpeg libraries from the installer are required in this case.