<!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 11.01.2024 23:43, skrev Terje J.
Hanssen:<br>
</div>
<blockquote type="cite"
cite="mid:b852bb6e-6c2b-4ca2-bf40-d75bb11e7eae@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
I wanted to test AV1.webm rendering from anamorphic 16:9 SD-DV(D)
widescreen sources, which have different SAR 64:45 than 1080i HDV
SAR 4:3<br>
<br>
It would be fine to get this SAR value verified and clarified vs
Wikipedia's table which specifies different for PAL (16:9) 720x576
: SAR 5:4, PAR 64:45<br>
<a class="moz-txt-link-freetext"
href="https://en.wikipedia.org/wiki/Pixel_aspect_ratio#Pixel_aspect_ratios_of_common_video_formats"
moz-do-not-send="true">https://en.wikipedia.org/wiki/Pixel_aspect_ratio#Pixel_aspect_ratios_of_common_video_formats</a><br>
</blockquote>
<br>
Also, <i>pixel aspect ratio</i> (<i>PAR</i>) is also known as <i>sample
aspect ratio</i> (abbreviated <i>SAR</i>) in some industrial
standards (such as <a
href="https://en.wikipedia.org/wiki/Advanced_Video_Coding"
title="Advanced Video Coding">H.264</a><sup id="cite_ref-2"
class="reference"><a
href="https://en.wikipedia.org/wiki/Pixel_aspect_ratio#cite_note-2">[2]</a></sup>)
and output of programs (such as <i><a
href="https://en.wikipedia.org/wiki/Ffmpeg" class="mw-redirect"
title="Ffmpeg">ffmpeg</a></i><br>
<span class="reference-text"><cite class="citation web cs1"><a
rel="nofollow" class="external text"
href="https://trac.ffmpeg.org/ticket/1776">Note 3: "ffprobe
shows PAR as SAR"</a>. ffmpeg.org<span
class="reference-accessdate">. Retrieved <span class="nowrap">2022-06-10</span></span>.<br>
<br>
</cite></span>
<blockquote type="cite"
cite="mid:b852bb6e-6c2b-4ca2-bf40-d75bb11e7eae@gmail.com"> <br>
<br>
This legacy 16:9 SD format was created and can be obtained among
the following methods::<br>
<blockquote> 1. DV camcorders with Widescreen feature, the
right/true way and wrong/fake way<br>
<a class="moz-txt-link-freetext"
href="https://www.videouniversity.com/articles/dv-formats-everything-you-need-to-know/#widescreen"
moz-do-not-send="true">https://www.videouniversity.com/articles/dv-formats-everything-you-need-to-know/#widescreen</a><br>
2. DV wide record or downconvert playback using a HD(V)
camcorder with this feature<br>
3. DVD video disc enhanced for 16:9 or a BD video disc with 16:9
SD content <br>
4. Render/transcode i.e a HD(V) video file using<br>
a) Cin-GG<br>
b) FFmpeg<br>
</blockquote>
<br>
I have used the two latter methods as follows:<br>
<br>
4 a) Cin-GG<br>
Loaded a PAL 1080i/50 HDV clip<br>
Set Format Preset: PAL 576i (16:9) - DV(D)<br>
File Render File Format: FFmepg - avi (NB! because plain Raw DV
still causes DAR 4:3)<br>
Audio: Preset: avi_pcm_s16.avi<br>
Video: Compression: dv_pal.avi<br>
<br>
<br>
<font face="Courier New, Courier, monospace">ffprobe -hide_banner
dv07_05_wide_cingg.avi<br>
Input #0, avi, from 'dv07_05_wide_cingg.avi':<br>
Metadata:<br>
software : Lavf60.16.100<br>
Duration: 00:06:58.04, start: 0.000000, bitrate: 30342 kb/s<br>
Stream #0:0: Video: dvvideo (dvsd / 0x64737664), yuv420p,
720x576 [SAR 64:45 DAR 16:9], 28802 kb/s, 25 fps, 25 tbr, 25
tbn, 25 tbc<br>
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000
Hz, 2 channels, s16, 1536 kb/s<br>
</font><br>
<br>
<font face="Courier New, Courier, monospace">mediainfo
dv07_05_wide_cingg.avi<br>
General<br>
Complete name :
dv07_05_wide_cingg.avi<br>
Format : AVI<br>
Format/Info : Audio Video
Interleave<br>
Commercial name : DV<br>
Format profile : OpenDML<br>
Format settings : BitmapInfoHeader /
PcmWaveformat<br>
File size : 1.48 GiB<br>
Duration : 6 min 58 s<br>
Overall bit rate mode : Constant<br>
Overall bit rate : 30.3 Mb/s<br>
Frame rate : 25.000 FPS<br>
Writing application : Lavf60.16.100<br>
<br>
Video<br>
ID : 0<br>
Format : DV<br>
Codec ID : dvsd<br>
Codec ID/Hint : Sony<br>
Duration : 6 min 58 s<br>
Bit rate mode : Constant<br>
Bit rate : 24.4 Mb/s<br>
Width : 720 pixels<br>
Height : 576 pixels<br>
Display aspect ratio : 16:9<br>
Frame rate mode : Constant<br>
Frame rate : 25.000 FPS<br>
Standard : PAL<br>
Color space : YUV<br>
Chroma subsampling : 4:2:0<br>
Bit depth : 8 bits<br>
Scan type : Interlaced<br>
Scan order : Bottom Field First<br>
Compression mode : Lossy<br>
Bits/(Pixel*Frame) : 2.357<br>
Stream size : 1.40 GiB (95%)<br>
<br>
Audio<br>
ID : 1<br>
Format : PCM<br>
Format settings : Little / Signed<br>
Codec ID : 1<br>
Duration : 6 min 58 s<br>
Bit rate mode : Constant<br>
Bit rate : 1 536 kb/s<br>
Channel(s) : 2 channels<br>
Sampling rate : 48.0 kHz<br>
Bit depth : 16 bits<br>
Stream size : 76.6 MiB (5%)<br>
Alignment : Aligned on
interleaves<br>
Interleave, duration : 208 ms (5.21 video
frames)<br>
</font><br>
<br>
4 b) FFmpeg transcode HDV to DV-wide<br>
<br>
<br>
<font face="Courier New, Courier, monospace">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<br>
Stream mapping:<br>
Stream #0:0 -> #0:0 (mpeg2video (native) -> dvvideo
(native))<br>
Stream #0:1 -> #0:1 (mp2 (native) -> pcm_s16le (native))<br>
Stream #0:0: Video: dvvideo, yuv420p(tv, bt709, top coded
first (swapped)), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200
kb/s, 25 fps, 25 tbn<br>
Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536
kb/s<br>
frame=10457 fps=356 q=-0.0 Lsize= 1440422kB time=00:06:58.28
bitrate=28210.6kbits/s dup=217 drop=0 speed=14.3x </font><br>
<br>
<font face="Courier New, Courier, monospace"><br>
ffprobe -hide_banner dv07_05_wide.dv<br>
[dv @ 0x56036476e580] Estimating duration from bitrate, this may
be inaccurate<br>
Input #0, dv, from 'dv07_05_wide.dv':<br>
Metadata:<br>
timecode : 00:00:00:00<br>
Duration: 00:06:49.72, start: 0.000000, bitrate: 28800 kb/s<br>
Stream #0:0: Video: dvvideo, yuv420p, 720x576 [SAR 64:45 DAR
16:9], 25000 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc<br>
Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536
kb/s<br>
</font><br>
<br>
<font face="Courier New, Courier, monospace">mediainfo
dv07_05_wide.dv<br>
General<br>
Complete name : dv07_05_wide.dv<br>
Format : DV<br>
Commercial name : DVCAM<br>
File size : 1.37 GiB<br>
Duration : 6 min 49 s<br>
Overall bit rate mode : Constant<br>
Overall bit rate : 28.8 Mb/s<br>
Frame rate : 25.000 FPS<br>
Recorded date : 1970-01-01
00:00:00.000<br>
<br>
Video<br>
Format : DV<br>
Commercial name : DVCAM<br>
Duration : 6 min 49 s<br>
Bit rate mode : Constant<br>
Bit rate : 24.4 Mb/s<br>
Width : 720 pixels<br>
Height : 576 pixels<br>
Display aspect ratio : 16:9<br>
Frame rate mode : Constant<br>
Frame rate : 25.000 FPS<br>
Standard : PAL<br>
Color space : YUV<br>
Chroma subsampling : 4:2:0<br>
Bit depth : 8 bits<br>
Scan type : Interlaced<br>
Scan order : Top Field First<br>
Compression mode : Lossy<br>
Bits/(Pixel*Frame) : 2.357<br>
Time code of first frame : 00:00:00:00<br>
Time code source : Subcode time code<br>
Stream size : 1.17 GiB (85%)<br>
<br>
Audio<br>
ID : 0<br>
Format : PCM<br>
Format settings : Big / Signed<br>
Duration : 6 min 49 s<br>
Bit rate mode : Constant<br>
Bit rate : 1 536 kb/s<br>
Channel(s) : 2 channels<br>
Sampling rate : 48.0 kHz<br>
Bit depth : 16 bits<br>
Stream size : 75.0 MiB (5%)<br>
</font><br>
---------------------------------<br>
<br>
The HDV source has Scan order : Top Field First<br>
What would be right, Top or Bottom Field First for the output file
(they differ)?<br>
<br>
Rendering next the AVI and DV files to AV1.webm displays correct
16:9 widescreen<br>
<br>
<br>
</blockquote>
<br>
</body>
</html>