<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 15 дек. 2023 г., 21:10 Terje J. Hanssen via Cin <<a href="mailto:cin@lists.cinelerra-gg.org" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">cin@lists.cinelerra-gg.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<br>
<br>
<div>Den 14.12.2023 12:25, skrev Terje J.
Hanssen:<br>
</div>
<blockquote type="cite">
First, a summary from another current post and thread:<br>
<a href="https://lists.cinelerra-gg.org/pipermail/cin/2023-December/007430.html" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/pipermail/cin/2023-December/007430.html</a><br>
<br>
<blockquote type="cite">I will add the re-encoded sample <b>SD DV
</b>file using ffmpeg SVT-AV1, as I was positive surprised how
much faster (preset 10 about 25 sec) it was than rendering AV1
with CinGG (libaom?) . I've tested three presets: 8, 10 and 12.
"Useable visible quality" for all.<br>
<br>
ffmpeg -i dv01_07.dv -c:v libsvtav1 -preset 8 -crf 35 -c:a
libvorbis dv01_07_svt-av1_pr8.webm<br>
frame= 2832 fps= 66 q=35.0 Lsize= 28836kB time=00:01:53.26
bitrate=2085.6kbits/s speed=2.65x <br>
<br>
ffmpeg -i dv01_07.dv -c:v libsvtav1 -preset 10 -crf 35 -c:a
libvorbis dv01_07_svt-av1_pr10.webm<br>
frame= 2832 <b>fps=112</b> q=35.0 Lsize= 34419kB
time=00:01:53.26 bitrate=2489.4kbits/s speed=4.47x <br>
<br>
ffmpeg -i dv01_07.dv -c:v libsvtav1 -preset 12 -crf 35 -c:a
libvorbis dv01_07_svt-av1_pr12.webm<br>
frame= 2832 fps=262 q=35.0 Lsize= 35913kB time=00:01:53.26
bitrate=2597.5kbits/s speed=10.5x <br>
</blockquote>
<br>
<br>
The speed of SVT-AV1 encoding seems for me to be quite useable, at
least for personal use.<br>
</blockquote>
<br>
<br>
As a reference to compare the SVT-AV1 results above, I've also tried
to encode the same input file using libaom-av1 and librav1e<br>
with simple or none (default) parameters. Other, optimal tuned
parameters may possibly change the unsuccesful results here.<br>
Seemingly something have to be wrong here, as I had to quit these
hopeless SLOW encoding attemps after a while:<br>
<blockquote>ffmpeg -i dv01_07.dv -c:v libaom-av1 -crf 30 -c:a
libvorbis dv01_07_libaom-av1.webm<br>
^C^Ze= 35 fps=0.1 q=0.0 size= 5kB time=00:00:03.00
bitrate= 13.7kbits/s speed=0.00748x<br>
<br>
ffmpeg -i dv01_07.dv -c:v librav1e -c:a libvorbis
dv01_07_librav1e.webm<br>
frame= 471 fps=1.9 q=-0.0 Lsize= 4864kB time=00:00:19.11
bitrate=2084.4kbits/s speed=0.0791x <br>
</blockquote>
The CPU (i7 quad-cores 8 threads) utilization was here between
100-200%, while I think it ran at 700%+ for SVT-AV1.<br>
<br>
Anyway, apparently SVT-AV1 libsvtav1 shines as the superiour fastest
and simple to use CPU based AV1 encoder (before GPU hwaccels)<br></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">After rebuilding SVT-AV1 on termux for Neon acceleration I tried three variations of same file:</div><div dir="auto"><br></div><div dir="auto"><div dir="auto">du -h av1-1.8.0*</div><div dir="auto">5.0M av1-1.8.0-pr12.webm</div><div dir="auto">4.3M av1-1.8.0-pr2.webm</div><div dir="auto">4.6M av1-1.8.0.webm</div><div dir="auto"><br></div><div dir="auto">all on crf 30</div><div dir="auto"><br></div><div dir="auto">ffmpeg -i 20081103140154.m2t -c:v libsvtav1 -an -preset 2 -crf 30 av1-1.8.0-pr2.webm<br></div><div dir="auto"><br></div><div dir="auto">this one run at 0.2 fps</div><div dir="auto"><br></div><div dir="auto">ffmpeg -i 20081103140154.m2t -c:v libsvtav1 -an -preset 12 -crf 30 av1-1.8.0-pr12.webm<br></div><div dir="auto"><br></div><div dir="auto">this one run up to 9.4 fps!</div><div dir="auto"><br></div><div dir="auto">ffmpeg -i 20081103140154.m2t -c:v libsvtav1 -an -preset 6 -crf 30 av1-1.8.0.webm<br></div><div dir="auto"><br></div><div dir="auto">and this one run at 1.3 fps.</div><div dir="auto"><br></div><div dir="auto">all files encoded from same input:</div><div dir="auto"><br></div><div dir="auto">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<br></div></div><div dir="auto"><br></div><div dir="auto">So, I guess on aarch64 tablet this one definitely not as fast as on desktop (x86_64) Intel.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>
Ref:<br>
<a href="https://ottverse.com/analysis-of-svt-av1-presets-and-crf-values/" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://ottverse.com/analysis-of-svt-av1-presets-and-crf-values/</a><br>
<br>
<br>
<blockquote type="cite"> <br>
Here I add my latest test results for a <b>HDV (fps=69)</b> and a
<b>FHD (fps=51)</b> video clip.<br>
<br>
<blockquote><font face="Courier New, Courier, monospace">2.0G
hdv01_04.m2t</font><br>
<font face="Courier New, Courier, monospace">383M
hdv01_04_m2t_svt-av1_pr10.webm</font><br>
<br>
<font face="Courier New, Courier, monospace">1.7G hd01.mov</font><br>
<font face="Courier New, Courier, monospace">20M
hd01_mov_svt-av1_pr10.webm</font><br>
</blockquote>
<br>
<b>HDV</b> (yuv420p)<br>
-------<br>
<blockquote><b><font face="monospace">ffprobe -hide_banner
hdv01_04.m2t</font></b><br>
<font face="monospace">[mpeg2video @ 0x560c32966340] Invalid
frame dimensions 0x0.</font><br>
<font face="monospace"> Last message repeated 7 times</font><br>
<font face="monospace">[mpegts @ 0x560c32960c00] PES packet size
mismatch</font><br>
<font face="monospace">[mpegts @ 0x560c32960c00] Packet corrupt
(stream = 1, dts = 295380000).</font><br>
<font face="monospace">[mpegts @ 0x560c32960c00] Could not find
codec parameters for stream 2 (Unknown: none ([160][0][0][0] /
0x00A0)): unknown codec</font><br>
<font face="monospace">Consider increasing the value for the
'analyzeduration' (0) and 'probesize' (5000000) options</font><br>
<font face="monospace">[mpegts @ 0x560c32960c00] Could not find
codec parameters for stream 3 (Unknown: none ([161][0][0][0] /
0x00A1)): unknown codec</font><br>
<font face="monospace">Consider increasing the value for the
'analyzeduration' (0) and 'probesize' (5000000) options</font><br>
<font face="monospace">Input #0, mpegts, from 'hdv01_04.m2t':</font><br>
<font face="monospace"> Duration: 00:10:57.34, start:
2624.856000, bitrate: 26134 kb/s</font><br>
<font face="monospace"> Program 100 </font><br>
<font face="monospace"> 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</font><br>
<font face="monospace"> Side data:</font><br>
<font face="monospace"> cpb: bitrate max/min/avg:
25000000/0/0 buffer size: 7340032 vbv_delay: N/A</font><br>
<font face="monospace"> Stream #0:1[0x814]: Audio: mp2
([3][0][0][0] / 0x0003), 48000 Hz, stereo, fltp, 384 kb/s</font><br>
<font face="monospace"> Stream #0:2[0x815]: Unknown: none
([160][0][0][0] / 0x00A0)</font><br>
<font face="monospace"> Stream #0:3[0x811]: Unknown: none
([161][0][0][0] / 0x00A1)</font><br>
<font face="monospace">Unsupported codec with id 0 for input
stream 2</font><br>
<font face="monospace">Unsupported codec with id 0 for input
stream 3</font><br>
--------------<br>
<br>
<font face="monospace"><b>ffmpeg -i hdv01_04.m2t -c:v libsvtav1
-preset 10 -crf 35 -c:a libvorbis
hdv01_04_m2t_svt-av1_pr10.webm</b><br>
frame=16420 <b>fps= 69</b> q=34.0 Lsize= 391289kB
time=00:10:57.36 bitrate=4876.2kbits/s speed=2.77x </font><br>
</blockquote>
<blockquote><font face="monospace"><br>
<b>ffprobe -hide_banner hdv01_04_m2t_svt-av1_pr10.webm</b></font><br>
<font face="monospace">[libdav1d @ 0x562b42305540] libdav1d
1.3.0</font><br>
<font face="monospace">Input #0, matroska,webm, from
'hdv01_04_m2t_svt-av1_pr10.webm':</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> ENCODER : Lavf60.3.100</font><br>
<font face="monospace"> Duration: 00:10:57.40, start: 0.000000,
bitrate: 4875 kb/s</font><br>
<font face="monospace"> Stream #0:0: Video: av1 (Main),
yuv420p(tv, bt709), 1440x1080, SAR 4:3 DAR 16:9, 25 fps, 25
tbr, 1k tbn</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> ENCODER : Lavc60.3.100
libsvtav1</font><br>
<font face="monospace"> DURATION :
00:10:57.403000000</font><br>
<font face="monospace"> Stream #0:1: Audio: vorbis, 48000 Hz,
stereo, fltp</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> ENCODER : Lavc60.3.100
libvorbis</font><br>
<font face="monospace"> DURATION :
00:10:57.171000000</font><br>
<font face="monospace">[libdav1d @ 0x562b42361540] libdav1d
1.3.0<br>
<br>
</font></blockquote>
<b>FHD</b> <b>(</b>yuv422p10le<b>)</b><br>
<font face="monospace">-----<br>
</font>
<blockquote><b><font face="monospace">ffprobe hd01.mov</font></b><br>
<font face="monospace">.....</font><br>
<font face="monospace">Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'hd01.mov':</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> creation_time :
2016-02-23T23:49:21.000000Z</font><br>
<font face="monospace"> Duration: 00:01:11.28, start: 0.000000,
bitrate: 200496 kb/s</font><br>
<font face="monospace"> Stream #0:0[0x1](eng): Video: prores
(HQ) (apch / 0x68637061), <b>yuv422p10le(bt709</b>, top coded
first (swapped)), 1920x1080, 182130 kb/s, SAR 1:1 DAR 16:9, 25
fps, 25 tbr, 2500 tbn (default)</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> creation_time :
2016-02-23T23:49:21.000000Z</font><br>
<font face="monospace"> handler_name : Apple Video Media
Handler</font><br>
<font face="monospace"> vendor_id : appl</font><br>
<font face="monospace"> encoder : Apple ProRes 422
(HQ)</font><br>
<font face="monospace"> Stream #0:1[0x2](eng): <b>Audio</b>:
pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 16 channels, s32 (24
bit), 18432 kb/s (default)</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> creation_time :
2016-02-23T23:49:21.000000Z</font><br>
<font face="monospace"> handler_name : Apple Sound Media
Handler</font><br>
<font face="monospace"> vendor_id : [0][0][0][0]</font><br>
</blockquote>
<blockquote><font face="monospace"><b><br>
ffmpeg -i hd01.mov -c:v libsvtav1 -preset 10 -crf 35 -c:a
libvorbis hd01_mov_svt-av1_pr10.webm</b></font><br>
<font face="monospace">frame= 1781 <b>fps= 51</b> q=35.0
Lsize= 19732kB time=00:01:11.26 bitrate=2268.3kbits/s
speed=2.03x </font><br>
</blockquote>
<font face="monospace"><br>
</font>
<blockquote><font face="monospace"><b>ffprobe -hide_banner
hdv01_04_m2t_svt-av1_pr10.webm</b></font><br>
<font face="monospace">[libdav1d @ 0x562b42305540] libdav1d
1.3.0</font><br>
<font face="monospace">Input #0, matroska,webm, from
'hdv01_04_m2t_svt-av1_pr10.webm':</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> ENCODER : Lavf60.3.100</font><br>
<font face="monospace"> Duration: 00:10:57.40, start: 0.000000,
bitrate: 4875 kb/s</font><br>
<font face="monospace"> Stream #0:0: Video: av1 (Main),
yuv420p(tv, bt709), 1440x1080, SAR 4:3 DAR 16:9, 25 fps, 25
tbr, 1k tbn</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> ENCODER : Lavc60.3.100
libsvtav1</font><br>
<font face="monospace"> DURATION :
00:10:57.403000000</font><br>
<font face="monospace"> Stream #0:1: Audio: vorbis, 48000 Hz,
stereo, fltp</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> ENCODER : Lavc60.3.100
libvorbis</font><br>
<font face="monospace"> DURATION :
00:10:57.171000000</font><br>
</blockquote>
<font face="monospace"><br>
</font>An issue is that the audio was lost during the conversion
from .mov to .webm, so I attach the full ffmpeg output below.<br>
(possibly a mis-match regarding the audio stream #numbers ?)<br>
<br>
<blockquote><b><font face="monospace">ffmpeg -i hd01.mov -c:v
libsvtav1 -preset 10 -crf 35 -c:a libvorbis
hd01_mov_svt-av1_pr10.webm</font></b><br>
<font face="monospace">...</font><br>
<font face="monospace">Guessed Channel Layout for Input Stream
#0.1 : hexadecagonal</font><br>
<font face="monospace">Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'hd01.mov':</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> creation_time :
2016-02-23T23:49:21.000000Z</font><br>
<font face="monospace"> Duration: 00:01:11.28, start: 0.000000,
bitrate: 200496 kb/s</font><br>
<font face="monospace"> Stream #0:0[0x1](eng): Video: prores
(HQ) (apch / 0x68637061), yuv422p10le(bt709, top coded first
(swapped)), 1920x1080, 182130 kb/s, SAR 1:1 DAR 16:9, 25 fps,
25 tbr, 2500 tbn (default)</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> creation_time :
2016-02-23T23:49:21.000000Z</font><br>
<font face="monospace"> handler_name : Apple Video Media
Handler</font><br>
<font face="monospace"> vendor_id : appl</font><br>
<font face="monospace"> encoder : Apple ProRes 422
(HQ)</font><br>
<font face="monospace"> Stream #0:1[0x2](eng): Audio: pcm_s24le
(lpcm / 0x6D63706C), 48000 Hz, 16 channels, s32 (24 bit),
18432 kb/s (default)</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> creation_time :
2016-02-23T23:49:21.000000Z</font><br>
<font face="monospace"> handler_name : Apple Sound Media
Handler</font><br>
<font face="monospace"> vendor_id : [0][0][0][0]</font><br>
<font face="monospace">Stream mapping:</font><br>
<font face="monospace"> Stream #0:0 -> #0:0 (prores (native)
-> av1 (libsvtav1))</font><br>
<font face="monospace"> Stream #0:1 -> #0:1 (pcm_s24le
(native) -> vorbis (libvorbis))</font><br>
<font face="monospace">Press [q] to stop, [?] for help</font><br>
<font face="monospace">Svt[info]:
-------------------------------------------</font><br>
<font face="monospace">Svt[info]: SVT [version]: SVT-AV1
Encoder Lib v1.7.0</font><br>
<font face="monospace">Svt[info]: SVT [build] : GCC 13.2.1
20230912 [revision
b96e66fd4ef3e36983969fb8cdd1956f551a074b] 64 bit</font><br>
<font face="monospace">Svt[info]: LIB Build date: Nov 3 2023
00:00:00</font><br>
<font face="monospace">Svt[info]:
-------------------------------------------</font><br>
<font face="monospace">Svt[info]: Number of logical cores
available: 8</font><br>
<font face="monospace">Svt[info]: Number of PPCS 59</font><br>
<font face="monospace">Svt[info]: [asm level on system : up to
avx2]</font><br>
<font face="monospace">Svt[info]: [asm level selected : up to
avx2]</font><br>
<font face="monospace">Svt[info]:
-------------------------------------------</font><br>
<font face="monospace">Svt[info]: SVT [config]: main profile
tier (auto) level (auto)</font><br>
<font face="monospace">Svt[info]: SVT [config]: width / height /
fps numerator / fps denominator : 1920 / 1080 / 25 / 1</font><br>
<font face="monospace">Svt[info]: SVT [config]: bit-depth /
color format : 10 / YUV420</font><br>
<font face="monospace">Svt[info]: SVT [config]: preset / tune /
pred struct : 10 / PSNR / random access</font><br>
<font face="monospace">Svt[info]: SVT [config]: gop size /
mini-gop size / key-frame type : 161 / 16 / key
frame</font><br>
<font face="monospace">Svt[info]: SVT [config]: BRC mode / rate
factor : CRF / 35 </font><br>
<font face="monospace">Svt[info]:
-------------------------------------------</font><br>
<font face="monospace">Output #0, webm, to
'hd01_mov_svt-av1_pr10.webm':</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> encoder : Lavf60.3.100</font><br>
<font face="monospace"> Stream #0:0(eng): Video: av1,
yuv420p10le(tv, bt709, top coded first (swapped)), 1920x1080
[SAR 1:1 DAR 16:9], q=2-31, 25 fps, 1k tbn (default)</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> creation_time :
2016-02-23T23:49:21.000000Z</font><br>
<font face="monospace"> handler_name : Apple Video Media
Handler</font><br>
<font face="monospace"> vendor_id : appl</font><br>
<font face="monospace"> encoder : Lavc60.3.100
libsvtav1</font><br>
<font face="monospace"> Stream #0:1(eng): Audio: vorbis, 48000
Hz, hexadecagonal, fltp (default)</font><br>
<font face="monospace"> Metadata:</font><br>
<font face="monospace"> creation_time :
2016-02-23T23:49:21.000000Z</font><br>
<font face="monospace"> handler_name : Apple Sound Media
Handler</font><br>
<font face="monospace"> vendor_id : [0][0][0][0]</font><br>
<font face="monospace"> encoder : Lavc60.3.100
libvorbis</font><br>
<font face="monospace">frame= 1781 fps= 51 q=35.0 Lsize=
19732kB time=00:01:11.26 bitrate=2268.3kbits/s speed=2.03x
</font><br>
<font face="monospace">video:18635kB audio:1059kB subtitle:0kB
other streams:0kB global headers:3kB muxing overhead:
0.193378%</font><br>
<br>
</blockquote>
<blockquote><font face="monospace"> </font><br>
</blockquote>
</blockquote>
<br>
</div>
-- <br>
Cin mailing list<br>
<a href="mailto:Cin@lists.cinelerra-gg.org" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">Cin@lists.cinelerra-gg.org</a><br>
<a href="https://lists.cinelerra-gg.org/mailman/listinfo/cin" rel="noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer noreferrer" target="_blank">https://lists.cinelerra-gg.org/mailman/listinfo/cin</a><br>
</blockquote></div></div></div>