[Cin] SD 16:9 missing among CinGG BD-Render Video Formats

Terje J. Hanssen terjejhanssen at gmail.com
Fri Jan 19 03:26:34 CET 2024



Den 18.01.2024 20:05, skrev Andrea paz:
> Thanks for the link to stackexchange. Reading this post and others
> (also the discussion on ffmpeg from when they switched from PAR to
> SAR) I think the formula:
>
> "Yet, with DAR = SAR * PAR
>
> HDV 1080i:   16/9 = (1440/1080) * (4/3) = 1.7778
> HDV 1280p:  16/9 = (1280/720) * (1/1) = 1.7778"
>
> is more correct to write it (for ffmpeg and CinGG):
>
> DAR = Width/Height * SAR
>
> that is, the (4/3) and the (1/1) are now the SAR and not the PAR.
>
> So it is no longer spelled PAR, but always just W/H and SAR. SAR, at
> this point, is a "pixel aspect ratio"
> I tried changing the txt (version 4). Do you think it is okay? It is
> likely to be wrong.

Well, I have prioritized more to understand what happends than 
interprete the somewhat ambiguous definitions.
(the order of the factors is indifferent).
https://stackoverflow.com/questions/18877243/why-ffmpeg-print-sar-instead-of-par

I think of SAR in the FFmpeg output as a correction factor for the 
recordered picture frame format resolution (Wp), to get the desired 
output display resolution (expanded Wd with square px) at a given DAR, 
(or in opposite order).

I found a useful table at ffmpeg-user that contains information for 
practically all SD and HD video formats.
Maybe something for the manual?
https://www.mail-archive.com/ffmpeg-user@ffmpeg.org/msg27522.html


               display     DAR       picture     PAR      SAR = DAR/PAR
             ===========  ====     ===========  ====     =====
16:9-2160:  3840 x 2160  16:9  :  3840 x 2160  16:9  :   1:1
  4:3-2160:  2880 x 2160   4:3  :  2880 x 2160   4:3  :   1:1
16:9-1080:  1920 x 1080  16:9  :  1920 x 1080  16:9  :   1:1
  4:3-1080:  1440 x 1080   4:3  :  1440 x 1080   4:3  :   1:1
  16:9-576:  1024 x 576   16:9  :   720 x 576    5:4  :  64:45
   4:3-576:   768 x 576    4:3  :   720 x 576    5:4  :  16:15
  16:9-480:   853 x 480   16:9  :   720 x 480    3:2  :  32:27
   4:3-480:   640 x 480    4:3  :   720 x 480    3:2  :   8:9


With FFprobe I have verified the Picure resolution, SAR and DAR  for the 
PAL SD DV(D) and HDV formats I'm using:

ffprobe dv01_07.dv 2>&1 >/dev/null | grep Video
   Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 
25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc

ffprobe dv07_05_wide_cingg.dv 2>&1 >/dev/null | grep Video
   Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 
25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc

  ffprobe dv_16x9_cingg_20240117.dv 2>&1 >/dev/null | grep Video
   Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 64:45 DAR 16:9], 
25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc

ffprobe dvd_16x9.mpg 2>&1 >/dev/null | grep Video
   Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, 
bt709/unknown/unknown, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 
25 tbr, 90k tbn, 50 tbc

ffprobe hdv07_05.m2t 2>&1 >/dev/null | grep Video
   Stream #0:0[0x810]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), 
yuv420p(tv, bt709, top first), 1440x1080 [SAR 4:3 DAR 16:9], 25000 kb/s, 
25 fps, 25 tbr, 90k tbn, 50 tbc

> @Terje
> For videos, can I ask you to do 2 and 3? I have never used and don't
> really understand how DVD/BR works; and I haven't had players/burner
> for a long time.

OK, I see there already is a lot stuff in the manual chpt 14. I would 
expect a video is something Phyllis could do, but I also know she is 
busy with a lot of work (?) I think I can contribute with some 
additional screenshots for HDV to a 16x19 DVD and BD. Andrew may 
possibly also add the procedure for a DVD video with LPCM(?)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240119/dd626f69/attachment.htm>


More information about the Cin mailing list