Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#41 | Link |
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 679
|
I have been using FFmpeg to create MP4s for years and never had much of an issue, except perhaps during 2020, when I found the MP4s temperamentally working, or not, on our Samsung TV. (Though that could have been due to the USB drives. I don't quite know, except that the problem went away; I took it as there being some change in the muxer.) I prefer FFmpeg, being familiar with its syntax and metadata switches; and changing means changing scripts and more headache.
Objectively, how well does MP4Box mux compared to FFmpeg? Or, put differently, is there any tool that is the MKVToolNix of MP4s? |
|
|
|
|
|
#43 | Link |
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 679
|
Thanks, tebasuna. I actually dont want a GUI. I meant, what is the reference-quality muxer? I noticed that, in this thread, many are recommending MP4Box. If it is better than FFmpeg, I'm willing to switch. Having said that, I don't have any issues with FFmpeg's MP4 muxing at present. (In fact, I found issues with its MKV muxer.)
|
|
|
|
|
|
#44 | Link |
|
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,439
|
Objectively, the GPAC suite is the de-facto standard of MP4 tools; and MP4Box is part of it (a more user friendly CLI and less generic toolbox than GPAC).
If your hardware has issues, then it might support only a part of the MP4 standard and expect default values or extra flags MP4Box is able to provide but maybe only when you add them to the command line parameters explicitly. |
|
|
|
|
|
#46 | Link | |
|
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 3,379
|
I've been using MP4Box for years and I've never had a problem.
Yes, you can consider MP4Box as the "MKVToolnix" of mp4, a bit like TSMuxer is the "MKVToolnix" of .ts files. I generally encode the raw_video.h264 with x264, then audio.aac with NeroAAC and lastly mux them both together with mp4box. The simplest possible syntax would look something like this: Quote:
|
|
|
|
|
|
|
#47 | Link |
|
Donor
![]() Join Date: Jun 2024
Location: South Africa
Posts: 679
|
Appreciate your help, FranceBB. Generally, what I do is first process the audio with FFmpeg, piping to qaac, and then encode the final video, pulling in the encoded audio by direct-stream copy, and it works well. Using MP4Box will necessitate only a small change in the script at the end. Indeed, I'll still encode with FFmpeg: I consider it a crime not to do so!
![]() This is my audio script: Code:
set out_i=-23 set out_tp=-2 set out_lra=8.5 set in_i=-13.4 set in_tp=8.4 set in_lra=24.1 set in_thresh=-26.4 set tg_offset=1 ::ffmpeg -i %1 -map 0:a:0 -af aresample=ochl=stereo,loudnorm=i=%out_i%:tp=%out_tp%:lra=%out_lra%:print_format=summary -f null - ffmpeg -i %1 -map 0:a:0 -af aresample=ochl=stereo:osr=192000:resampler=soxr:precision=33, loudnorm=i=%out_i%:tp=%out_tp%:lra=%out_lra%:measured_i=%in_i%:measured_tp=%in_tp%:measured_lra=%in_lra%:measured_thresh=%in_thresh%:offset=%tg_offset%:linear=true:print_format=summary, aresample=48000:resampler=soxr:precision=33 -c:a pcm_f32le -f wav - | "%qaac%" --tvbr 91 --ignorelength --no-delay --verbose - -o "audio.m4a" Code:
set src=FILM_NAME.mkv set out=FILM_NAME.mp4 set name=FILM_NAME set crop=1920:816:0:132 set param_colour=-colorspace bt709 -color_primaries bt709 -color_trc bt709 -color_range tv ffmpeg %param_colour% -i "%src%" -i "audio.m4a" -map 0:0 -map 1:a -map_metadata -1 -map_chapters -1 -metadata title="%name%" -metadata:s:v language=und -disposition:v:0 default -metadata:s:a:0 language=eng -disposition:a:0 default -vf crop=%crop% -c:v libx264 -profile:v high -level 4.1 -preset veryslow -tune film -aq-mode 3 -crf 23 -c:a copy "%out%" |
|
|
|
|
|
#48 | Link | |
|
SuperVirus
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,458
|
Quote:
but anyway: Just confirming, after all these years, MP4Box still does not want to support VC-1 video nor DTS audio. There is no "lack of time", there is just lack of interest. ![]() https://sourceforge.net/p/gpac/discu...read/43881fa9/ As one of the GPAC devilopers told me in their GitHub page, he already had all the code written. But what he didn't dare to say is this, they (GPAC) will not implement the improvements, unless they receive some big fat money in return. *THUMBS DOWN* https://github.com/gpac/gpac/issues/536
__________________
«Your software patents have expired.» Last edited by filler56789; 19th November 2024 at 18:30. |
|
|
|
|
|
|
#49 | Link | |
|
Registered User
Join Date: Nov 2022
Location: Aix en Provence, France
Posts: 163
|
muxing dts streams within mp4box works in fact...
Quote:
|
|
|
|
|
|
|
#50 | Link | |
|
Moderator
![]() Join Date: Feb 2005
Location: Spain
Posts: 7,367
|
How do you make that mux?
With mp4box from GPAC-2.5-DEV-rev707-g9c261926-master (like your MediaInfo) and with the last (2024-11-07) mp4box from GPAC-2.5-DEV-rev816-g1bc97198-ab-suite I always get a error: Quote:
BTW I can understand the lack of interest for this old, obsolete and not-free codec when can use AAC for lossy compression or ALAC and FLAC for lossless audio with better compression ratio and free use. Last edited by tebasuna51; 22nd November 2024 at 11:10. Reason: typo |
|
|
|
|
|
|
#51 | Link |
|
Registered User
Join Date: Nov 2022
Location: Aix en Provence, France
Posts: 163
|
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 : Code:
mp4box.exe -add input.mkv#trackID=1:fps=24000/1001 -add audio.dts#trackID=1:lang=eng -new output.mp4 Code:
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 Code:
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 Code:
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
Last edited by Kurt.noise; 20th November 2024 at 14:13. |
|
|
|
|
|
#52 | Link | |
|
Moderator
![]() Join Date: Feb 2005
Location: Spain
Posts: 7,367
|
Quote:
EDIT: like you say in the edited post Last edited by tebasuna51; 20th November 2024 at 14:21. |
|
|
|
|
|
|
#53 | Link |
|
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,439
|
If MP4Box built by M-AB-S is unable to multiplex dts, I wonder if that requires a specific configuration parameter or an additional patch to enable it.
In my MP4Box.exe I can find "DTS", "DTS-HD", "Coherent Acoustics" etc. being mentioned. PS: It seems that MP4Box.exe is not able to print out a list of supported codecs; instead, gpac.exe from the same build does report some list. In my case: Code:
dstc [O]: DTS Coherent Acoustics and Digital Surround Audio (audio/dts) dtsh [O]: DTS-HD High Resolution Audio and DTS-Master Audio (audio/dts) dstl [O]: DTS-HD Substream containing only XLLAudio (audio/dts) dtse [O]: DTS Express low bit rate Audio (audio/dts) dtsx [O]: DTS-X UHD Audio Profile 2 (audio/dts) dtsy [O]: DTS-X UHD Audio Profile 3 (audio/dts) PPS: Did you notice the typos in the FourCC's? gpac issue 3044 reported And ... it's gone. At least the typos. Quick response. Last edited by LigH; 20th November 2024 at 20:00. |
|
|
|
|
|
#54 | Link |
|
GPAC maintainer
Join Date: Jul 2010
Posts: 31
|
Discovering this discussion thanks to @LigH bug report
![]() I think VC-1 is supported now. Let us know politely if you see any issue. By the way we've also been working on a GUI to help people visualize the processing pipeline. It includes the capability to add "templates". I had planned to post about it specifically, but let me know about your needs (in a specific topic if it makes more sense). |
|
|
|
|
|
#55 | Link |
|
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,439
|
Hello there
![]() The typos got fixed quickly. Still open: The question why DTS is only supported as output in a self-compiled MP4Box, while it works in your distributed version as input too. |
|
|
|
|
|
#56 | Link | |
|
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,402
|
Quote:
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
|
|
|
|
|
|
#57 | Link | ||
|
SuperVirus
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 1,458
|
Quote:
Quote:
It's fine to say you will not do this or that because you don't want to do this or that. But it's very bad to pretend that your non-activity is caused by "lack of time" or because "oh the real world issues (*) keep me busy 24x7" ![]() (*) Hello Archie
__________________
«Your software patents have expired.» |
||
|
|
|
|
|
#60 | Link | |
|
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,439
|
Quote:
ffmpeg -codecs Code:
DEAILS dts DCA (DTS Coherent Acoustics) (decoders: dca) (encoders: dca) Code:
DE dts raw DTS D dtshd raw DTS-HD Code:
E dts raw DTS Code:
D dts raw DTS D dtshd raw DTS-HD |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|