4:3 and 16:9 aspect ratios, we all know them.
But 720x576/480 SD videos do not directly use them.
In neither PAL, not NTSC the active image is conaines in the full 720 samples.
ITU-R document REC.470 specifies the length of video signal in PAL and NTSC, which is 52 and 52,(148) microseconds respectively. Now when we sample those lines with 13,5MHz sample rate specified by REC.601 what do we get? 702 and 704 samples respectively.
The active video in PAL and NTSC SD video is 702x576 and 704x480 respectively. And it is those reaolutions, not the full-width 720 samples that must be subjected to 4:3 or 16:9 aspect ratio to produce properly stretched images.
OK, but what are the remaining 18, or 16 pixels? It's called digital blanking, a digital equivalent of nomial analog blanking and the Sequence Display Extension part of MPEG2 specification takes care of it by specifiing the active part of the image, the blanking is then cropped.
OK, but what about DV video from camcorders? Those have video in full 720 line. Yes, but still REC.601 compliant, instead of recording video in 702 samples and padding it black, the DV records the full 53,333 microseconds line, which sampled at 13,5MHz frequency gives 720 samples, so that the video is 720x576/480 and does not have to be resized to be burned on DVD, the backwards compatibility with REC.470 allows hooking up the camcorder to a TV with analog jacks and the image is properly displayed. There was a BBC article about it with test patterns.
And what does VLC do?
It displays 720x576 video as 768x576 and 1024x576 frames, technically simple calculation from 4:3 and 16:9 aspect ratio, but this does not take into account that only the 702x576 portion of the image is to be expanded with those aspect ratios resulting in 787x576 and 1049x576 images with added blanking.
It's even worse with NTSC, instead of displaying 640x480 from 704x480 active area VLC somehow makes an image that is 720x540 and the NTSC lines of resolution are gone. The 720x480 should therefore be displayed as 654x480 with blanking at sides, I will skip the calculatiosn for widescreen NTSC.
So VLC should be updated to first check if the 4:3, or 16:9 video isn't by any chance 720x576/480 and if so it should use more precise aspect ratios to take into account that the active image is not the 720 samples, but 702, or 704 and expand accordingly. And definitely not as 720x540... The MPEG closest 704x576 to PAL's 702x576 is yet another example that requires separate calculations.
Not to mention when I correct the aspect ratio with the values I have input as additional aspect ratios and take a screenshot, the aspect ratio is not respected and I get 720x540, or 768x576, etc resolutions which are not square pixel, but slightly distorted image.
Two referances:
https://bjohas.de/wiki/Tutorials/Video/ ... pect_Ratio
https://web.archive.org/web/20130328121 ... sion_table
So after all those years of existance of REC.470, REC.601 and SD video, could somepne please correct VLC's behaviour to be finally compliant with those two standards of SD video?
At least for aspect ratios, the cropping of blanking is not nessesary, because sometimes the source is DV video that has the full width of 720 samples filled with video.
Somehow Vegas Pro can decode and encode proper pixel aspect ratios for DV and MPEG2 program stream renders...