<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<br>
<br>
<div class="moz-cite-prefix">Den 14.01.2024 23:03, skrev Andrew
Randrianasulu:<br>
</div>
<blockquote type="cite"
cite="mid:CA+rFky7Hy5JAiRcR9qJ8LcGRRfU-skr0qwxdE9zL2OfjhF9Umw@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">On Mon, Jan 15, 2024 at 1:10 AM Terje J. Hanssen
<a class="moz-txt-link-rfc2396E" href="mailto:terjejhanssen@gmail.com"><terjejhanssen@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Den 14.01.2024 21:42, skrev Andrew Randrianasulu:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">On Sun, Jan 14, 2024 at 11:14 PM Terje J. Hanssen
<a class="moz-txt-link-rfc2396E" href="mailto:terjejhanssen@gmail.com"><terjejhanssen@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Den 14.01.2024 18:41, skrev Andrew Randrianasulu:
вс, 14 янв. 2024 г., 19:51 Terje J. Hanssen <a class="moz-txt-link-rfc2396E" href="mailto:terjejhanssen@gmail.com"><terjejhanssen@gmail.com></a>:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
Den 14.01.2024 17:43, skrev Terje J. Hanssen:
Den 13.01.2024 18:48, skrev Andrew Randrianasulu:
сб, 13 янв. 2024 г., 07:47 Andrew Randrianasulu <a class="moz-txt-link-rfc2396E" href="mailto:randrianasulu@gmail.com"><randrianasulu@gmail.com></a>:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
сб, 13 янв. 2024 г., 03:26 Terje J. Hanssen via Cin <a class="moz-txt-link-rfc2396E" href="mailto:cin@lists.cinelerra-gg.org"><cin@lists.cinelerra-gg.org></a>:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
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 ?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
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.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
OOPS!
As already mentioned, CinGG's FFmpeg-avi was saved/displayed 16:9 and the Raw DV was saved/displayed 4:3.
BUT, in addition I discovered now that in both cases the images have been cropped around, that is cut off at both sides, top and bottom.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I wonder how much was cropped?
May be I misread you but you loaded HDV 1440*1080 clip and then rendered it into ffmpeg DV at 576i WITHOUT any scaling on top?
Yes, I loaded the anamorphic 16:9 HDV 1440x1080 clip and then rendered it using Set Format Preset PAL 576i (16:9)-DV(D) - without any scaling on top.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">I think only DVD/BD render adds scaling automatically on size mismatch ...
so, for proper downscaling you need to apply it manually.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
Learning by failing :)
DVD Render Format autoscales the input HDV format to fit the selected
16x9 DVD output format.
When input format and output rendering formats are identical, it seems
that nothing needs to be set/edited manually in Set Format.
Then the unavoidable request/suggestion:
Could correspondingly different I/O format via selected Presets also
bake in Autoscale as default (beside color space mentioned before) ?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">
I think no, it was intended to give users control over what kind of
filters they want to apply.</pre>
</blockquote>
<br>
Yeah, if the Preset's default setting cannot be user overrided?<br>
<br>
Fx. the DVD Render window has a Scale dropdown menu, where "Scaled"
is default.<br>
The other options are None and Cropped (various). <br>
As an additional test I rendered with None, and then got similar
16:9 output displayed as ffmpeg-avi.<br>
(The Raw DV differed with 4_3 display)<br>
<br>
<blockquote type="cite"
cite="mid:CA+rFky7Hy5JAiRcR9qJ8LcGRRfU-skr0qwxdE9zL2OfjhF9Umw@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">
Even with ffmpeg you still manually add scale filter ...
More interesting question if we should leave 1440x1080 BD render as is
or force it to be 16/9 in other words FullHD 1920x1080 visually ?
Some web posts indicated bluray is always 16:9 but libbluray sources
contradict that.
</pre>
</blockquote>
<br>
IMO keep it with SAR (PAR) and DAR.<br>
According to Wikipedia the supported BD-Video formats includes <br>
<ul>
<li>HD Resolution 1440 × 1080 25i [c] with Display Aspect Ratio
16:9 [d]</li>
<li><span class="reference-text">[c] MPEG-2 at <span
class="nowrap">1440 × 1080</span> was previously not
included in a draft version of the specification from March
2005</span></li>
<li><span class="reference-text">[d] These resolutions are stored
<a href="https://en.wikipedia.org/wiki/Anamorphic_format"
title="Anamorphic format">anamorphically</a>, </span><span
class="reference-text">i.e. they are stretched to the display
aspect ratio by the player or display.</span></li>
</ul>
<a class="moz-txt-link-freetext"
href="https://en.wikipedia.org/wiki/Blu-ray#Video">https://en.wikipedia.org/wiki/Blu-ray#Video</a><br>
<br>
In addition, as in previouus and current discussions:<br>
<br>
Distribution:<br>
<ul>
<li>For consumer use, HDV-sourced video can be delivered on a
Blu-ray Disc without re-encoding, can be converted to AVCHD and
delivered on an AVCHD disc, or can be downconverted to
DVD-Video. </li>
</ul>
<span class="reference-text"><a class="moz-txt-link-freetext" href="https://en.wikipedia.org/wiki/HDV#Distributing">https://en.wikipedia.org/wiki/HDV#Distributing</a><br>
<br>
</span>
<blockquote type="cite"
cite="mid:CA+rFky7Hy5JAiRcR9qJ8LcGRRfU-skr0qwxdE9zL2OfjhF9Umw@mail.gmail.com">
<pre class="moz-quote-pre" wrap="">
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">(refer to the: -vf scale=720:576,setsar=64/45,setdar=16/9 in the ffmpeg
line below)
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">According to my understanding this should down-convert the full source image to DVD 16:9 anamorphic format, which at playback should display upscaled 16:9 screen.
That is, just as in my first post
4 b) FFmpeg transcode HDV to DV-wide
ffmpeg -hide_banner -i hdv07_05.m2t -vf scale=720:576,setsar=64/45,setdar=16/9 -c:v dvvideo -c:a pcm_s16le dv07_05_wide.dv
Gnome File properties and VLC Tools Codec info just say1440x1080 resolution for the HDV source and 720x576 for the CinGG rendered avi and dv output.
I don't know if it possible to find out exactly, but
Visually I espect and will estimate that the "middle part" 720x576 px symmetrical around the center of the source image is kept. That is cropped away
horizontally at each side: (1440-720)/2 = 360 px
vertically top and bottom: (1080-576)/2 = 252 px
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">That is, the 16:9 avi is displayed with correct geometry, while the 4:3 Raw DV is displayed stretched vertically.
The latter get correct geometry if forced aspect 16:9 during VLC playback..
Actually, only my ffmpeg manual encoded DV-wide has got correct DAR 16:9 and also correct geometry.
And kept the full image (un-cropped).
A visual tip is that this is easiest to discover and compare side by side using large file thumbnails with (Gnome) Filemanager.
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.
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">
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
<a class="moz-txt-link-abbreviated" href="mailto:Cin@lists.cinelerra-gg.org">Cin@lists.cinelerra-gg.org</a>
<a class="moz-txt-link-freetext" href="https://lists.cinelerra-gg.org/mailman/listinfo/cin">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a>
</pre>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</blockquote>
</blockquote>
<pre class="moz-quote-pre" wrap="">
</pre>
</blockquote>
</blockquote>
<br>
</body>
</html>