сб, 13 янв. 2024 г., 07:47 Andrew Randrianasulu <randrianasulu@gmail.com>:


сб, 13 янв. 2024 г., 03:26 Terje J. Hanssen via Cin <cin@lists.cinelerra-gg.org>:


Den 11.01.2024 23:43, skrev Terje J. Hanssen:
.......

4 a) Cin-GG
Loaded a PAL 1080i/50 HDV clip
Set Format Preset: PAL 576i (16:9) - DV(D)
File Render File Format: FFmepg - avi   (NB! because plain Raw DV still causes DAR 4:3)
                     Audio: Preset: avi_pcm_s16.avi
                     Video: Compression: dv_pal.avi


For me it looks like the Set Format Preset: PAL 576i (16:9) - DV(D and/or the File Format: FFmpeg make up the correct DAR 16:9 here, right?

Because by Selecting the Format: Raw DV cause rendering to DAR 4:3 as shown below !
This makes me wonder if it is only the FFmepg File formats that currently is fixed by patches?
May also other non-FFmpeg formats be affected by anamorphic aspect ratios ?

This is possible! I basically never used non-ffmpeg video encoders! I think we have 3 of them - raw dv, mpeg video and theora video.

I'll check each of them.


in cinelerra/fileogg.C I found this comment:
=====

if( asset->aspect_ratio > 0 ) {
                // Cinelerra uses frame aspect ratio, theora uses pixel aspect ratio                             
  float pixel_aspect = asset->aspect_ratio / asset->width * asset->height;
               
 aratio_num = pixel_aspect * 1000000;                                                             
  aratio_den = 1000000;                                                                      }
        else {                                                                                                    
 aratio_num = 1000000;
               
 aratio_den = 1000000;                                                                      }
=====

strangely enough filedv seems to contain code to set is16x9 encoder flag ... not sure why it fails ....

mpeg video also should honor aspect ratio, but not tested yet.






mediainfo dv07_05_wide_cingg.dv | grep Display
  Display aspect ratio                     : 4:3

ffprobe -hide_banner dv07_05_wide_cingg.dv
Input #0, dv, from 'dv07_05_wide_cingg.dv':
  Duration: 00:06:58.08, start: 0.000000, bitrate: 28800 kb/s
  Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 16:15 DAR 4:3], 25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc
  Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s





--
Cin mailing list
Cin@lists.cinelerra-gg.org
https://lists.cinelerra-gg.org/mailman/listinfo/cin