[Cin] Report guessed / detected SAR/DAR values

Andrew Randrianasulu randrianasulu at gmail.com
Mon Jan 8 23:54:49 CET 2024

пн, 8 янв. 2024 г., 22:55 Andrea paz <gamberucci.andrea at gmail.com>:

> I created a bd.m2ts file by putting "HDV 1080i/25" as the preset.
> Bd-render worked until the renderig was complete then CinGG shut down
> (I don't have a BD-burner). Doing ffprobe on this video I get:
> Input #0, mpegts, from 'bd.m2ts':
>   Duration: 00:01:06.91, start: 0.074667, bitrate: 10242 kb/s
>   Program 1
>   Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B),
> yuv420p(tv, bt709, top first), 1440x1080 [SAR 1:1 DAR 4:3], 25 fps, 25
> tbr, 90k tbn
>   Stream #0:1[0x1100](ita): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
> stereo, fltp, 192 kb/s
> The video is slightly stretched and reduced to 4:3 from the original
> 16:9. By applying the downsample filter and setting H and V to 40 the
> pixels become clearly visible and can be seen to be square.(cfr
> http://www.g-raffa.eu/Cinelerra/HOWTO/anamorphic.html)
> In postimage, I have uploaded several screenshots showing the
> "info--details" of the three original sources that make up the video,
> of the bd.m2ts (hdv.jpeg) file, and also of how the "set format" is
> automatically set.
> [@Andrew, is it possible to put PAR and DAR in the Set Format window
> as shown in the image?]

well, I can put DAR string in there easily, but other two fields currently
NOT calculated as canonical PAR, in sense you can't put 4 and 3 there and
get 1.333 horizontally stretched image ... at least in my tests??

I'll try to look harder at how it computed.

Can you please file bug about setformat window as being somewhat confusing
in how aspect ratio there works?

I'll try my best to remember but *something* might distract me long enough
so I start to skip on details ....

> Note: If I force, in Set Format, the aspect ratio (DAR) to 16:9 I get,
> with the downsample filter, rectangular pixels. But the video is no
> longer deformed....
> The patch seems to work, as "guessed SAR/DAR" and "detected SAR/DAR"
> appear, but only in source1. In source2 (which is a 4k) there are
> neither, and in source3 and hdv.jpeg there is only "guessed SAR/DAR".
> The other 3 patches also seem to work since rendering bd.m2ts worked.
> https://postimg.cc/kDNqfpT0
> https://postimg.cc/SJyq5f5J
> https://postimg.cc/VdD1cbQ4
> https://postimg.cc/ctWZdRLk
> https://postimg.cc/tnzbJs1q
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240109/8de8dc29/attachment.htm>

More information about the Cin mailing list