Avidemux Forum

Avidemux => Windows => Topic started by: Hushpower on December 16, 2022, 02:10:03 PM

Title: v2.8.1 not reading DAR Correctly
Post by: Hushpower on December 16, 2022, 02:10:03 PM
I'm trying to "convert" a VOB set from a DVD to an MPEG file. When I import the VOBs, AVIDemux appears to be ignoring the DAR flag, which in this case is 16:9. The video is displaying and exporting as 5:4 as shown:

AVIDemux VOB-MPG 5-4 import.jpg

For the  export/save, I have to manually set the DAR via the Optput 1 tab (for an H264 export) or the Output Muxer Configure section.

I'm using Video Copy, Audio Copy, Ouput format MP4 Muxer and not changing any other settings.

Import of MP4s (H264) is no problem, the DAR is read correctly.

I can't attach a snippet of the video via Google Drive. Are there any approved file-sharing sites?

It seems to me that there is a bug in that AVIDemux is not reading the DAR of the imported MPG/VOB file. It reads MP4s OK.

I can't post the Mediainfo reports because the forum says they are spam.

Title: Re: v2.8.1 not reading DAR Correctly
Post by: Hushpower on December 17, 2022, 12:13:06 AM
Tried again with MediaInfo copy/paste but forum still says it's spam. Here are screenshots:

Mediainfo VOB Rip.jpg

MediaInfo MPG snip.jpg

MediaInfo MP4 Output.jpg   



 
Title: Re: v2.8.1 not reading DAR Correctly
Post by: Hushpower on December 17, 2022, 12:50:20 AM
Google Drive link to the MPG (snip of VOB 1):

https://drive.google.com/file/d/1yR3Zu7DCDQvnL4sDxNLGEWab_wv85Esg/view?usp=share_link
Title: Re: v2.8.1 not reading DAR Correctly
Post by: eumagga0x2a on December 18, 2022, 12:41:02 PM
I'm sorry for having missed the topic prior to you investing that much effort.

Quote from: Hushpower on December 16, 2022, 02:10:03 PMWhen I import the VOBs, AVIDemux appears to be ignoring the DAR flag, which in this case is 16:9. The video is displaying and exporting as 5:4 as shown

This is by design, Avidemux displays all videos using square pixels as concatenation of videos is an important part of its functionality. For this operation, only dimensions in pixels matter. Displaying anamorphic videos with non-square pixels would obfuscate the real situation.

Quote from: Hushpower on December 16, 2022, 02:10:03 PMFor the  export/save, I have to manually set the DAR via the Optput 1 tab (for an H264 export) or the Output Muxer Configure section.

The latter is obligatory because it is really evaluated by most video players in case of MP4 containers, the former optional (mostly ignored by players), but necessary if the output is muxed into MPEG-TS container which doesn't support DAR metadata.

Quote from: Hushpower on December 16, 2022, 02:10:03 PMImport of MP4s (H264) is no problem, the DAR is read correctly.

DAR specified by container is always ignored, DAR specified by VUI part of codec extradata survives because we copy extradata as a whole.
Title: Re: v2.8.1 not reading DAR Correctly
Post by: Hushpower on December 19, 2022, 03:00:01 AM
@eumagga0x2a, thanks very much for your reply, and all understood. I'll make sure I set the Output Muxer Config for the correct AR.

Cheers and wishing you a happy festive season.