the resolution of the video is 1440x1080,
and the display aspect ratio should be 16:9(defined in avs file, global MeGUI_darx = 16, global MeGUI_dary = 9),
but when I use megui's autoEncode button to output for a MP4 file, the [Display aspect ratio] of the mp4 file I finally get is wrongly set to 4:3.
Thank you very much for the report. However sadly I missed it :-(
Do you still have this problem? If yes could you please switch to the development server, update to version 2710+ and test it again?
I have updated to 2732 on dev server,
but it still has this problem.
in the avs file: global MeGUI_darx = 16 global MeGUI_dary = 9
mediainfo reports: ----[Information] AspectRatioString: 16:9
but in the last MP4 mux: ----[Information] AspectRatioString: 4:3
Thanks for the update. Yesterday I added the possibility to force a aspect ratio in mp4box but this will only be used in some cases. So likely I have to add yours as well, but what is the use case? How have you created the file? With AutoEncode or manually muxed after your video/audio file are ready?
In that case, I created the file with AutoEncode function. But sometimes I also use MP4Muxer manually. Both of those cases have this problem.
The use case is:
You know, there is some raw video(in TS format) recoded from HDTV (from NTSC system), the video's real pixel resolution is 1440x1080, but its display resolution is 1920x1080. In another word, that video's Display Aspect Ratio is 16:9, it is not same with its Sample Aspect Ratio 4:3.
I often re-encode the video track into h264 format with the original resolution.
When i'm ready to mux that h264 video track and its AAC audio track, I have to set the video track's DAR to 16:9, In order to make sure mediaplayers can automatically display that video file in resolution of 1920x1080.
In this case, I have added "global MeGUI_darx = 16 global MeGUI_dary = 9" into the avs file. so, after megui's encoding progress, DAR has been written into the 264 file. It works, very good.
If I manually use mkvtoolnix(or megui's mkv muxer, or megui's autoEncode) to mux video track and audio track into a mkv file, then the final file's DAR is correct.
But When I use mp4box command (or megui's mp4 muxer, or megui's autoEncode so far) to create a mp4 file, then the DAR in the 264 file will be ignored by default. So I have to manually add "par=4:3" into my mp4box command, in order to make sure the final file's DAR is correct.
So, I hope megui's AutoEncode and MP4Muxer could smartly generate the mp4box command, in order that the final mp4 file have a correct DAR.
Last edit: mikey 2017-05-08
Thanks, fixed/changed in 2635
Does it work for you as expected?
yes, it works. thank you very much!
Great, thanks for the feedback!