<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ewout ter Hoeven on Medium]]></title>
        <description><![CDATA[Stories by Ewout ter Hoeven on Medium]]></description>
        <link>https://medium.com/@ewoutterhoeven?source=rss-76541425ddad------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*_M2-PEwnB0AnsQZliDJvqw.jpeg</url>
            <title>Stories by Ewout ter Hoeven on Medium</title>
            <link>https://medium.com/@ewoutterhoeven?source=rss-76541425ddad------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 17:20:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ewoutterhoeven/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Structurele onderschatting van het R-betrouwbaarheidsinterval door het RIVM]]></title>
            <link>https://medium.com/@ewoutterhoeven/structurele-onderschatting-van-het-r-betrouwbaarheidsinterval-door-het-rivm-4a469d059b3f?source=rss-76541425ddad------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a469d059b3f</guid>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[reproduction-number]]></category>
            <category><![CDATA[rivm]]></category>
            <dc:creator><![CDATA[Ewout ter Hoeven]]></dc:creator>
            <pubDate>Wed, 14 Oct 2020 10:40:23 GMT</pubDate>
            <atom:updated>2020-10-14T10:44:28.068Z</atom:updated>
            <content:encoded><![CDATA[<p>Deze hele blog kan samengevat worden in dit GIFje:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SSO6oe-XzaIoAkdicWN4kw.gif" /></figure><p>Wat je hierboven ziet zijn de schattingen van het R-getal per week:</p><ul><li>Geel is de schatting gemaakt op 22 september</li><li>Groen de schatting van 29 september</li><li>Rood van 6 oktober</li><li>Blauw van 13 oktober</li></ul><p>Op elk van die datums wordt het R-getal door het RIVM tot ongeveer 2,5 weken terug geschat(de solide lijn), en een 95%-betrouwbaarheidsinterval tot ongeveer 5 dagen terug (het gekleurde gebied).</p><p>In de grafiek hierboven zijn de laatste 5 dagen van elk 95%-interval niet weergeven, omdat die nietszeggend groot werden, waardoor het interval tot 10 dagen terug overblijft.</p><p>Als voorbeeld de volledige data van 22 september:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CqY7ik48FxKA18PLDvhrSA.png" /></figure><p>Minus de laatste 5 dagen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aeUNA8yL1AWfwwKfQFjThQ.png" /></figure><p>Oftewel, de R nam flink af over de laatste week! Uitstekend nieuws!</p><h4>Onderschatting</h4><p>Wat blijkt een week later, in de schatting van 29 september? De R in de in de periode van 7 t/m 11 september is grof onderschat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hcynD5CVo2bkhwsXWK6IrQ.png" /></figure><p>Nog een week later, exact hetzelfde geval:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*madIpa5jdOIYymtWriPn5Q.png" /></figure><p>En weer een week later:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uj_WLrPUkVsPBN0uZ9dPFQ.png" /></figure><h4>De impact</h4><p>Als je vandaag (14 oktober) op <a href="https://coronadashboard.rijksoverheid.nl/landelijk/reproductiegetal">het dashboard kijkt</a>, zie je dat hoewel op 24 september een R van 1,27 heerste, het in de week van 1 oktober een stuk beter ging met een R van tussen de 1,08 en 1,17.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcxvaW4cnQxDhz5J1JI2VQ.png" /></figure><p>Dat geeft weer hoop, moed en optimisme: Het gaat de goede kant op!</p><p>Alleen jammer dat er hoogstwaarschijnlijk niks van waar is.</p><h4>Waarom een onderschatting?</h4><p>Mijn hypothese is dat de onderschatting veroorzaakt wordt door de vertraging van het doorgeven van de positieve testen en de ziekenhuisopnames. De R wordt namelijk primair gebaseerd op het aantal ziekenhuisopnames, aldus <a href="https://www.rivm.nl/coronavirus-covid-19/hoe-berekeningen-bijdragen-aan-bestrijding-van-virus">het RIVM</a>. Tussen een besmetting en een ziekenhuisopname zit meestal 2 tot 3 weken. En dan komt daar nog een reportage achterstand bij.</p><h4>Oplossing</h4><p>De snelste (tijdelijke) oplossing is om het betrouwbaarheidsinterval niet meer te publiceren voor de dagen waar ook geen nauwkeurige R kan worden geschat.</p><p>De structurele oplossing is herzien hoe de R wordt geschat, en dit ijken aan historische data.</p><p>Tot dan weergeeft de R op het coronadashboard het stukje onterecht optimisme waar we allemaal aan toe zijn.</p><p><strong>PS:</strong> Er zit een interessante wekelijkse cadens in, wie weet wordt dat de volgende blog.</p><p><strong>PPS: </strong>Excel-bestand voor de liefhebber: <a href="https://drive.google.com/file/d/1wb2lDgKtShE-66kkNvU1TDaEyfnR2V5e/view?usp=sharing">https://drive.google.com/file/d/1wb2lDgKtShE-66kkNvU1TDaEyfnR2V5e/view?usp=sharing</a></p><p><strong>PPPS:</strong> Alle data komt van het RIVM, historisch terug te zien met de <em>WayBack Machine:</em> <a href="https://web.archive.org/web/*/https://data.rivm.nl/covid-19/">https://web.archive.org/web/*/https://data.rivm.nl/covid-19/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a469d059b3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AV1 is ready for prime time Part 2: Decoding performance]]></title>
            <link>https://medium.com/@ewoutterhoeven/av1-is-ready-for-prime-time-part-2-decoding-performance-d3428221313?source=rss-76541425ddad------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3428221313</guid>
            <category><![CDATA[compression]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[av1]]></category>
            <category><![CDATA[decoder]]></category>
            <dc:creator><![CDATA[Ewout ter Hoeven]]></dc:creator>
            <pubDate>Thu, 10 Oct 2019 11:42:52 GMT</pubDate>
            <atom:updated>2019-10-10T11:45:01.831Z</atom:updated>
            <content:encoded><![CDATA[<p>Last Wednesday I wrote about how the SVT-AV1 encoder developed by Intel and Netflix is maturing quickly. Today we’re going to take a look at AV1 decoding performance, the other side of the equation, at both the x86 and Arm platforms.</p><ul><li><a href="https://medium.com/@ewoutterhoeven/av1-is-ready-for-prime-time-svt-av1-beats-x265-and-libvpx-in-quality-bitrate-and-speed-31c1960703db">AV1 is ready for prime time: SVT-AV1 beats x265 and libvpx in quality, bitrate and speed</a></li></ul><h3>x86</h3><p>On the PC side of things AV1 decoding is already very mature. The past months a lot of SSSE3 assembly was added to dav1d increasing it’s performance on older CPUs (pre-Haswell and pre-Zen).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c3MZUFGd_OMrbBVYjUGkZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*scb_cdIyUDb1GfrsnsKLqg.png" /></figure><p>AVX2 performance also increased a little with dav1d 0.5.0, that was already very fast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xoUdgEslTVUeoxthPqN9Aw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HVD1k2iBg2oQgUf5W8fmGA.png" /></figure><p>There’s a new decoder in town, <a href="https://chromium.googlesource.com/codecs/libgav1/">libgav1</a>, created by Google. They say it’s mainly optimized for Arm CPUs. A quick test on x86 shows that even single-threaded performance is worse than both dav1d and libaom in pretty much every scenario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZcIql9TtPO6vyq_EB0dXgw.png" /></figure><p>So discarding libgav1 for x86 for now, let’s see how dav1d 0.5.0 compares to libaom. Single-threaded dav1d is between 1.5 and 2.5 faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0oWqYLo1A2xHoPa9BSb3SQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0a5FMuspqyhYE5icgWiOsA.png" /></figure><p>Multi-threaded that increases to 2.3 to 4.5 times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*60WMHOnYxHUlSHLCymlMqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FVgKMXlx79kON9R65k6DRw.png" /></figure><h3>Arm</h3><p>ARMv8 performance is now a main focus to enable AV1 software decoding on battery limited devices. We saw dav1d performance improve steadily over the last year. Single-threaded performance increased by 30 to 50%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uYGckEHbUM6GDyHW1Qyvfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*chiYy27aGhInnqAEX_EtaA.png" /></figure><p>Multi-threaded performance increased even more, between 80 and 90% since it’s first release.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wdpsAW6yAd4KZBXc7O1u9g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*57ARkqHLeZZbuJgMPNnikw.png" /></figure><p>So let’s see how the new kid in town is performing. libgav1 is still a lot slower single-threaded than both libaom and dav1d. Multi-threaded it’s approximately on par with libaom, but nowhere near dav1d.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZdGSuXz19DeR92u6RNbheA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YbyzglfnPo4UfZfx5skHSw.png" /></figure><p>Looking back at dav1d, on a few real world CPUs, we see that low-end CPUs like the Snapdragon 410 still struggle with 1080p decoding. 720p should be very doable though. High-end devices like the Snapdragon 835 can do 1080p decoding at more than 60 fps when spinning up 4 high performance cores. This has an impact on battery life, but for short sequences it shouldn’t matter that much.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Y_l0yTQJAIcLz252cdjbQ.png" /></figure><h3>Conclusion</h3><p>dav1d 0.5.0, which will be released this week, is still the fastest AV1 decoder in town. 1080p AV1 decoding is now possible on almost all x86 CPUs thanks to the added SSSE3 assembly and 4K is doable for almost all quad-core CPUs. On the Arm side 720p is possible on low-end devices and 1080p on the high-end, but energy usage has to be considered.</p><p>I hope to be able to test energy usage and battery life soon. At the moment I unfortunately don’t have the equipment for it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3428221313" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AV1 is ready for prime time: SVT-AV1 beats x265 and libvpx in quality, bitrate and speed]]></title>
            <link>https://medium.com/@ewoutterhoeven/av1-is-ready-for-prime-time-svt-av1-beats-x265-and-libvpx-in-quality-bitrate-and-speed-31c1960703db?source=rss-76541425ddad------2</link>
            <guid isPermaLink="false">https://medium.com/p/31c1960703db</guid>
            <category><![CDATA[encoding]]></category>
            <category><![CDATA[videos]]></category>
            <category><![CDATA[compression]]></category>
            <category><![CDATA[av1]]></category>
            <category><![CDATA[streaming]]></category>
            <dc:creator><![CDATA[Ewout ter Hoeven]]></dc:creator>
            <pubDate>Tue, 08 Oct 2019 10:42:16 GMT</pubDate>
            <atom:updated>2019-10-08T18:12:58.005Z</atom:updated>
            <content:encoded><![CDATA[<p>AV1 encoding is slow. At least, that was the status quo. But with both <a href="https://github.com/xiph/rav1e"><strong>rav1e</strong></a> (backed by Xiph, Mozilla and Vimeo) and <a href="https://github.com/OpenVisualCloud/SVT-AV1"><strong>SVT-AV1</strong></a> (backed by Netflix and Intel) in heavy development, this notion is changing fast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EUAiCu-7cDQEPAPZTHhHwg.png" /></figure><p>Today, I’m going to demonstrate that SVT-AV1 can be both faster while delivering higher quality at identical bitrate simultaneously. Together with fast <a href="https://medium.com/@ewoutterhoeven/dav1d-0-3-0-sailfish-armed-to-the-teeth-af5bbf845a16">AV1 decoding with <strong>dav1d</strong></a> this makes the AV1 codec ready for broad adoption.</p><h3>Part 1: Quality</h3><p>The whole promise of AV1, aside from being free and open-source, was delivering higher quality at the same bitrate. The rav1e developers have build a great tool for comparing video quality, called <a href="https://beta.arewecompressedyet.com/">AreWeCompressedYet?</a>. I submitted runs for the libvpx, x265 and SVT-AV1 encoders, with the first two being the status quo for high quality encoding.</p><p>On the X-axis the bitrate is displayed in bits per pixel. So 0.02 means on average 0.02 bits are spend per pixel and 0.1 means 0.1 bits per pixel. For example, for 1080p 30fps that would result in 1,25 Mb/s and 6,25 Mb/s respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8ke7USUZ8vcUZ3GZh1E5Jg.png" /></figure><p>For x265 and libvpx their highest quality modes where used, veryslow and cpu-used 0 respectively (x265 placebo resulted in worse quality on this test set). SVT-AV1 uses Enc-mode 4 and 6 in the graphs below. SVT-AV1 has both faster and slower modes, ranging all the way from mode 8 to 0.</p><p>First are <a href="https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio">PSNR</a> and <a href="https://ece.uwaterloo.ca/~z70wang/publications/msssim.html">MS SSIM</a>, two objective metrics that both calculate the mathematical error between the input and output video stream. These values are displayed on the Y-axis, higher value means higher quality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ls9qym8fUwZ6K57-lIAeYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XEp0bq_5s_QQYuCQZHiIZQ.png" /></figure><p>Both SVT-AV1 modes 6 (green) and mode 4 (yellow) provide better objective quality than x265 (red) and libvpx (blue), on both the PSNR and MS-SSIM metrics.</p><p>Then we have a subjective metric, which should better represent how the user experiences video quality. <a href="https://github.com/Netflix/vmaf">VMAF</a> was developed by Netflix to better assess quality perceived by it’s users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eO9YTfOg9MOX3josBgOi8w.png" /></figure><p>SVT-AV1’s subjective quality is a little worse than it’s objective quality. Enc-mode 4 still trumps libvpx and x265, but Enc-mode 6 is a little worse.</p><h3>Part 2: Speed</h3><p>To compare speed I spun up some Google Cloud instances to get a fair comparison. Both instances use 16 vCPUs (8 cores, 16 threads) on the Cascade Lake platform with 64 GB DDR4 (SVT-AV1 ran fine on 16 GB btw). This setup should be comparable to a high-end desktop PC with Ryzen 7 3700X or Core i9-9900K.</p><p>All encoders were compiled with GCC 8.3.0 with Release configuration. I benchmarked two files for two scenario’s: 1250 frames of a 1080p 8-bit 4:2:0 clip representing regular 1080p content, and 250 frames of a 2160p 10-bit 4:2:0 representing high-end HDR movie content. Each encoder was run twice and the fastest run was used. Below the results in frames per second:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*TBsCiuF5U6vz1uv7wkFImw.png" /></figure><p>As we can see, SVT-AV1 enc-modes 5, 6 and 7 are clearly faster than both libvpx and x265. Also, libaom is even at a fast preset (cpu-used=5) very slow.</p><p>When normalized, the differences become even clearer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5mjByoldxCMrPZMHC5RFEg.png" /></figure><p>On 8-bit concent (Sintel), enc-mode 4 is 32% faster than libvpx and 4% slower than x265. enc-mode 7 . On 10-bit (Foodmarket) results are even larger.</p><h3>Part 3: Diving in deep</h3><p>So, we now know globally that SVT-AV1 can be simultaneously faster and delivering higher quality at the same bitrate than both libvpx (VP9) and x265 (H.265). In this section I compare different SVT-AV1 encoder modes a little more in depth. We will mainly be looking at MS-SSIM for objective quality and VMAF for subjective quality.</p><h4><strong>Enc-mode 7</strong></h4><p>In mode 7 SVT-AV1 still needs 3,6% to 9,2% more bits to reach similar MS SSIM (objective) quality as libvpx. For similar VMAF (subjective) quality this is even higher at 9,5% to 23,4%, depending on resolution.</p><p>Compared to x265 the results are a little better, it uses 1,6% more to 10,9% less bits to reach similar MS-SSIM quality, and 10,4% more to 1,4% less for VMAF.</p><p>Meanwhile, it’s 6,42 times faster than libvpx and 4,68 faster than x265.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ylp5NCInjvq6ckArgVR74g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5MI3slOpAg9T0O-7drSEQQ.png" /></figure><h4>Enc-mode 6</h4><p>Mode 6 reduces the bits needed for similar quality by about 4% to 8% compared to Mode 7. Compared to x265 MS-SSIM bitrate is now significantly lower, while compared to libvpx bitrate needs to be a bit higher still.</p><p>Mode 6 is 4,60 times faster than libvpx and 3,35 times faster than x265.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cfQH_UDuqvP_Q-BHBXMU4w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XfVSn5_F2mtFWp2Dn5GzcA.png" /></figure><h4>Enc-mode 5</h4><p>Mode 5 provides the firsts wins over libvpx on the MS-SSIM metric. It’s also almost exclusively better than x265 on all metrics.</p><p>Mode 5 is 3,01 times faster than libvpx and 2,20 times faster than x265.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Np2XCg2l3UKE-kpb4m3pNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_iIq-TnFiM82l7sX9berJA.png" /></figure><h4>Enc-mode 4</h4><p>Mode 4 just beats the shit out of x265 with huge double-digit bitrate reductions. On average, for equal PSNR quality it needs 20,1% less bits, for equal MS-SSIM quality 19,2% less bits and for equal VMAF quality 9,2% less bits. Meanwhile it’s only 4% slower.</p><p>The gains over libvpx are a little smaller, with 8,8%, 9,0% and 3,1% bitrate reductions on average for equal PSNR, MS-SSIM and VMAF quality respectively. It accomplishes this quality at 32% higher speed however.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*te_01RxvNh2myfSSoXSqwA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Qqik2h1fRepTP5wdR2TPQ.png" /></figure><h3>Conclusion</h3><p>While SVT-AV1 is still in heavy development, it already reached a point that it delivers better quality at identical bit-rates at higher speeds on multi-core machines. Overnight encoding of hour-long video’s, comes within reach on most high-end machines using enc-mode 4, and even on mid-range machines using enc-mode 6 or higher.</p><p>Build instructions can be found in the <a href="https://github.com/OpenVisualCloud/SVT-AV1">SVT-AV1 repository</a>. Plugins (patches) for FFmpeg and Gstreamer are also available. Pre-compiled 64-bit Windows executables can be found on <a href="https://ci.appveyor.com/project/OpenVisualCloud/SVT-AV1/history">AppVeyor</a>. The <a href="https://github.com/m-ab-s/media-autobuild_suite">media-autobuild_suite</a> also supports SVT-AV1 for FFmpeg builds with the SVT-AV1 patch.</p><h4><strong>Sources &amp; data</strong></h4><ul><li>These AWCY runs: <a href="https://beta.arewecompressedyet.com/?job=x265-veryslow-limited%402019-08-23-c&amp;job=vp9-cpu0%402019-09-03&amp;job=SVT-AV1-enc-mode-7%402019-10-06&amp;job=SVT-AV1-enc-mode-6%402019-10-06&amp;job=SVT-AV1-enc-mode-5%402019-10-06&amp;job=SVT-AV1-enc-mode-4%402019-10-06">https://beta.arewecompressedyet.com/?job=x265-veryslow-limited%402019-08-23-c&amp;job=vp9-cpu0%402019-09-03&amp;job=SVT-AV1-enc-mode-7%402019-10-06&amp;job=SVT-AV1-enc-mode-6%402019-10-06&amp;job=SVT-AV1-enc-mode-5%402019-10-06&amp;job=SVT-AV1-enc-mode-4%402019-10-06</a></li><li>These performance results: <a href="https://docs.google.com/spreadsheets/d/1p3PJQMkyhIrXEL6MBBQiwTnWmGyHY_zuw7_XAD0def4/edit#gid=959310253">https://docs.google.com/spreadsheets/d/1p3PJQMkyhIrXEL6MBBQiwTnWmGyHY_zuw7_XAD0def4/edit#gid=959310253</a></li><li>These compile and benchmark commands: <a href="https://gist.github.com/EwoutH/b908f3527d630326266de0d6e2a953fd">https://gist.github.com/EwoutH/b908f3527d630326266de0d6e2a953fd</a></li><li>A Google Compute Engine n2-standard-16 (16 vCPU’s, 64 GB memory) Cascade Lake instance running Ubuntu 18.04 LTS</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31c1960703db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AV1 video compression]]></title>
            <link>https://medium.com/series/av1-video-compression-f082d16a5dc6?source=rss-76541425ddad------2</link>
            <guid isPermaLink="false">https://medium.com/p/f082d16a5dc6</guid>
            <dc:creator><![CDATA[Ewout ter Hoeven]]></dc:creator>
            <pubDate>Tue, 08 Oct 2019 10:38:30 GMT</pubDate>
            <atom:updated>2019-10-08T10:43:19.133Z</atom:updated>
            <content:encoded><![CDATA[<p>A series about AV1 video compression, including encoder and decoder comparisons</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EUAiCu-7cDQEPAPZTHhHwg.png" /></figure><h3>AV1 decoding</h3><ul><li><a href="https://medium.com/@ewoutterhoeven/dav1d-0-1-0-release-the-first-benchmarks-5404360e44e3">dav1d 0.1.0 release: The first benchmarks</a></li><li><a href="https://medium.com/@ewoutterhoeven/dav1d-0-2-0-covering-all-pcs-including-mobile-eac3e43868c2">dav1d 0.2.0: Covering all PC’s, including mobile</a></li><li><a href="https://medium.com/@ewoutterhoeven/dav1d-0-3-0-sailfish-armed-to-the-teeth-af5bbf845a16">dav1d 0.3.0 Sailfish: ARMed to the teeth</a></li><li><a href="https://medium.com/@ewoutterhoeven/how-arms-neon-enables-efficient-av1-decoding-on-mobile-5fcb3a4f6e7f">How Arm’s NEON assembly enables efficient AV1 decoding on mobile</a></li></ul><h3>AV1 encoding</h3><ul><li><a href="https://medium.com/@ewoutterhoeven/av1-is-ready-for-prime-time-svt-av1-beats-x265-and-libvpx-in-quality-bitrate-and-speed-31c1960703db">AV1 is ready for prime time: SVT-AV1 beats x265 and libvpx in quality, bitrate and speed</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f082d16a5dc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Calculating the Intel Ice Lake quad-core die size: ~130mm2]]></title>
            <link>https://medium.com/@ewoutterhoeven/calculating-the-intel-ice-lake-quad-core-die-size-130mm2-ce18a44c5f05?source=rss-76541425ddad------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce18a44c5f05</guid>
            <category><![CDATA[cpu]]></category>
            <category><![CDATA[ice-lake]]></category>
            <category><![CDATA[semiconductors]]></category>
            <category><![CDATA[processors]]></category>
            <category><![CDATA[intel]]></category>
            <dc:creator><![CDATA[Ewout ter Hoeven]]></dc:creator>
            <pubDate>Tue, 28 May 2019 13:01:01 GMT</pubDate>
            <atom:updated>2019-05-28T13:01:01.196Z</atom:updated>
            <content:encoded><![CDATA[<p>Intel just announced their first line of 10nm processors, Ice Lake-U. The <em>die</em> they’re based on contains 4 CPU cores, 64 GPU execution units and new supporting logic such Thunderbolt 3, Wi-Fi 6 and LPDDR4X memory controllers, larger caches and new video and image processors.</p><p>In this analysis we look at the size of the overall Ice Lake-U chip, that of the CPU and the GPU. Smaller sizes ensure that more chips fit on a wafer and therefore more can be sold. If there is a lot of space invested in a component, it is important for Intel to score well on it.</p><h4>Die size</h4><p>Based on the <a href="https://i.imgur.com/yr8zTVf.jpg">wafer image</a> Intel released as part of their Ice Lake <a href="https://newsroom.intel.com/news-releases/2019-computex-intel-disclosures/">press release</a>, I tried to calculate the die size. Horizontally, their are ~27,2 dies on the wafer, and vertically ~25,4. This results of dimensions of ~11,0 mm and ~11,8 mm, if the unrounded values are multiplied <strong>~130 mm2</strong>.</p><pre>|           | ICL 4+2 | CFL 4+2 | CFL 6+2 | CFL 8+2 | CFL 4+3e |<br>|-----------|:-------:|:-------:|:-------:|:-------:|:--------:|<br>| CPU cores |    4    |    4    |    6    |    8    |     4    |<br>| GPU EUs   |    64   |    24   |    24   |    24   |    48    |<br>| Process   |   10nm  |   14nm  |   14nm  |   14nm  |   14nm   |<br>| Die size  |  130mm2 |  126mm2 |  150mm2 |  174mm2 |     ?    | </pre><p><em>If someone has a source for the die size of the CFL 4+3e chip (the one with Iris Plus 655), please let me know!</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lkpDGQQ6xIpFzfD8PEyoDw.jpeg" /></figure><h4>CPU core size</h4><p>Intel released another image, zoomed in on a portion of the wafer.</p><p>In my measurements, a single core including L2 cache is ~1.79 by ~3.99 mm, resulting in ~7.14 mm2 die size. The whole 4-core CPU complex, including L3-cache, measures ~31.34 mm2, so 7.84 mm2 per core. This is down about 34% from 14nm Coffee Lake, which measured about <a href="https://www.anandtech.com/show/11859/the-anandtech-coffee-lake-review-8700k-and-8400-initial-numbers/2">11.9 mm2</a>.</p><h4>GPU size</h4><p>With Coffee Lake, the 24 execution units measured about 45.6 mm2 on the 14nm process. On 10nm Ice Lake, the 64 execution units only take 40.6 mm2, 11% smaller. Per execution unit, the size even decreased from 1.9mm2 to 0.63 mm2, making the 10nm Gen11 GPU almost exactly 3 times as small per EU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*svMxMpVcKJbZiL_49EUABg.jpeg" /></figure><h4>Conclusion</h4><p>At 130mm2, Intel’s Ice Lake 4+2 die is quite large for a first chip on a new node. As comparison, the first consumer 14nm chip, a <a href="https://en.wikichip.org/wiki/intel/microarchitectures/broadwell_(client)#Dual-core">dual-core Broadwell</a>, measured only 82 mm2. A lot of space also looks to be spend on the memory controllers, video encoder, image signal processor and input/output controllers, because only 72mm2 of the 130mm2 is spend on the CPU en GPU clusters.</p><p>The CPU core shrunk relatively little, only 34%. This is probably due tot the wider cores (wider decoder, more execution ports, etc.) and larger caches (L1 32 → 48 kB and L2 256 → 512 kB). Ice Lake also adds support for the AVX512 vector extensions, which On a ‘hyper scaled’ node that claims a <a href="https://www.anandtech.com/show/13405/intel-10nm-cannon-lake-and-core-i3-8121u-deep-dive-review/3">2.7x increase</a> in transistor density, this is a heavy price to pay for a <a href="https://www.tomshardware.com/news/intel-10th-generation-core-10nm-ice-lake-gen11-graphics-sunny-cove-thunderbolt-3-usb-c,39477.html">18% higher IPC</a>.</p><p>The GPU cluster does almost the opposite to the CPU, shrinking by a factor of 3 per EU. With 2.67 as many executions units as the previous generation, it’s still smaller. This also means Intel found a way to shave of another 10% of EU size aside from the 2.7x increase in transistor density.</p><p><em>All sizes where measured by hand from these two images. Please verify them and let me know if any errors or inaccuracies where made.</em></p><h4>Sources</h4><ul><li><a href="https://en.wikichip.org/wiki/coffee_lake">https://en.wikichip.org/wiki/coffee_lake</a></li><li><a href="https://newsroom.intel.com/news-releases/2019-computex-intel-disclosures">https://newsroom.intel.com/news-releases/2019-computex-intel-disclosures</a></li><li><a href="https://www.anandtech.com/show/11859/the-anandtech-coffee-lake-review-8700k-and-8400-initial-numbers/2">https://www.anandtech.com/show/11859/the-anandtech-coffee-lake-review-8700k-and-8400-initial-numbers/2</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce18a44c5f05" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A quick and dirty look at VVC]]></title>
            <link>https://medium.com/@ewoutterhoeven/a-quick-and-dirty-look-at-vvc-16e8c2c56512?source=rss-76541425ddad------2</link>
            <guid isPermaLink="false">https://medium.com/p/16e8c2c56512</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[video-compression]]></category>
            <category><![CDATA[vvc]]></category>
            <dc:creator><![CDATA[Ewout ter Hoeven]]></dc:creator>
            <pubDate>Fri, 24 May 2019 15:06:46 GMT</pubDate>
            <atom:updated>2019-05-24T15:08:38.579Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Yeah this isn’t worth a blogpost.</em></p><p>But I just got <strong>Versatile Video Coding</strong>, the new video codec from <strong>JVET </strong>to compile and encode, so here’s a very quick look at <strong>VVC</strong> development.</p><p>VVC is the most promising candidate for ITU <strong>H.266</strong>, which replaces H.265, better know as HEVC. The goal is to offer at least 30% lower bitrates than HEVC with equal quality (or higher quality with equal bitrate of course).</p><p>First of all: It’s <strong>slow</strong>. The most recent version took 50 minutes to encode 60 frames in 1080p (<a href="https://docs.google.com/spreadsheets/d/1Z2GdNWzIv_pGkEVvSYQAAp3QRgDeYFakxGmFfDgwawI/edit?ouid=102062961383847782343&amp;usp=sheets_home&amp;ths=true">system specs &amp; data</a>). I actually haven’t viewed any VVC content, so I don’t know if it looks good, but the numbers do.</p><p>We need to build VVC. You need Git, CMake and make.</p><pre>rm -rf VVCSoftware_VTM;<br>git clone <a href="https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM.git">https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM.git</a>;<br>cd VVCSoftware_VTM;<br>cmake . -DCMAKE_BUILD_TYPE=Release;<br>make -j;<br>cd ..;</pre><p>VVC doesn’t yet process .y4m input files correctly, which contain the raw video data and a header with resolution, bit depth, frame rate and such information. We have to enter that by hand, together with the .y4m or .yuv.</p><p>It also needs a configuration file, which fixes some settings dependent of the use case (low-latency for example). Luckily a few are provided.</p><pre>/home/ewouth/VVCSoftware_VTM/bin/EncoderAppStatic -i Morocco-1000.y4m -b vvc-test-2.vvc -wdt 1920 -hgt 1080 -fr 60 --InputBitDepth=8 --InputChromaFormat=420 -f 60 -c VVCSoftware_VTM/cfg/encoder_randomaccess_vtm.cfg;</pre><p>Bitrate has been declining over past versions. Nice! (watch the Y-axis)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9N_X4U9sr3a5qQv-eb3Ug.png" /></figure><p>PSNR, a simple metric for encoding quality, has also been steadily increasing. There are better metrics, such as VMAF, though.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uEcP4wW2bHhVbUua1gZ0zg.png" /></figure><p>The encoding speed is…. less great. VVC VTM-2.0 started at 0,047 fps at default settings, and slowed down to 0,020 fps today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P7GiZJ2yR2Ceg_Eb_qc5wA.png" /></figure><p>Ok, good to have some historical trend. But the numbers aren’t really interesting without context, so that’s what I will be working on.</p><p><strong>Next up</strong></p><ul><li>Actually decode and view content</li><li>Comparison with different HEVC (x265) and AV1 (aom, SVT-AV1) encoders</li><li>More stats (SSIM, VMAF)</li><li>More sequences and resolutions</li><li>More different encoder and speed settings</li></ul><p>Hopefully this can be done with <a href="https://github.com/tdaede/awcy">AWCY</a> integration (<a href="https://github.com/tdaede/awcy/pull/169">PR #169</a>), but the use of config files complicates things.</p><p>Try some things, and post on <a href="http://reddit.com/r/vvc"><strong>r/ VVC</strong></a> or <a href="https://forum.doom9.org/showthread.php?t=174940"><strong>Doom9</strong></a>. Here are <a href="https://ci.appveyor.com/project/EwoutH/vvcsoftware-vtm/build/artifacts"><strong>Windows builds</strong></a> if needed. I will keep <a href="https://docs.google.com/spreadsheets/d/1Z2GdNWzIv_pGkEVvSYQAAp3QRgDeYFakxGmFfDgwawI/edit">this spreadsheet</a> updated with new data I might gather.</p><p>And remember: <strong>Codec licenses are stupid</strong>. So VVC is stupid. Use <strong>AV1.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16e8c2c56512" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Arm’s NEON enables efficient AV1 decoding on mobile]]></title>
            <link>https://medium.com/@ewoutterhoeven/how-arms-neon-enables-efficient-av1-decoding-on-mobile-5fcb3a4f6e7f?source=rss-76541425ddad------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fcb3a4f6e7f</guid>
            <category><![CDATA[arm64]]></category>
            <category><![CDATA[dav1d]]></category>
            <category><![CDATA[neon]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[video-compression]]></category>
            <dc:creator><![CDATA[Ewout ter Hoeven]]></dc:creator>
            <pubDate>Fri, 17 May 2019 14:24:57 GMT</pubDate>
            <atom:updated>2019-05-17T14:27:27.996Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Arm’s NEON assembly enables efficient AV1 decoding on mobile</h3><p>Multimedia decoding is a challenge of scale. A modern processor doesn’t break a sweat over decoding a few pixels, but when that are 62 million pixels per second even the tiniest amount of work per pixel adds up quickly.</p><p>This is where Arm’s <strong>NEON</strong> comes in: Doing more work per clock cycle. NEON is an extension of the ARMv7 and ARMv8 instruction set that enables <em>single instruction multiple data (SIMD) </em>operations. This means that in a single instruction not one large (or precise) number gets processed, but multiple smaller numbers.</p><p>NEON allows 128 bits to be processed in a single instruction. In almost all cases, 128 bits is way to precise to be useful. If we had a coordinate system with 128-bits precision, we could specify each point down over at the Andromeda Galaxy to an accuracy of 0.00006 picometre. To put it in perspective, the diameter of the smallest atom, Hydrogen, is 32 pm, and the Andromeda Galaxy is 2,5 million lightyears away.</p><p>So to display your cat video, we don’t need that kind of precision. Mostly, we only need 8 bits per color per pixel, or 10 or 12 bits if we’re talking about HDR. This mean we could potentially fit 16 color values of pixels in one 128-bit operation, or at least 8 when decoding HDR or if a slightly higher precision is needed to prevent rouding errors down the line.</p><p>Knowing that NEON can fit multiple data values in a single operation and video decoders need to operations on a ton of values, they sounds like a great match.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2w4C7NA_44bWj-zQyysovA.png" /></figure><h4><strong>NEON in dav1d</strong></h4><p>dav1d is the AV1 decoder maintained by VideoLAN, the people behind the VLC media player and the x264 and x265 video encoders. Lot’s of developers contribute to the project, realizing the goal of being the fastest AV1 video decoder that runs on virtually any CPU.</p><p>Back in december 2018 for the dav1d 0.1.0 release post I did a comparison between dav1d using only C code and dav1d using NEON assembly on a bunch of different ARMv8 processors (huge thanks to <a href="https://code.videolan.org/janne">Janne Grunau</a> and <a href="https://code.videolan.org/mstorsjo">Martin Storsjö</a> for the numbers). At that time only a few functions were accelerated with NEON, but still performance increased by 80% on average.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zp2BEQ_44NeaQKVxQRDoQg.png" /><figcaption>dav1d 0.1.0 without and with NEON code</figcaption></figure><p>A few month later, a lot more NEON assembly has been written. But before we get to our final results, it would be interesting to see <strong>what’s exactly faster</strong>.</p><h4><strong>Functions and their speedups</strong></h4><p>Decoding a video requires several steps, defined in the specification of the video. Each step is executed by a separate function, combined in functions. And depending on the encoder, its settings and content some steps are used more or less or not at all.</p><p>dav1d’s developers heavily rely on a tool called <em>checkasm</em> to benchmark the time a particular function needs. They write assembly code, test it with checkasm and if it’s faster, it’s likely to get merged.</p><p>On the tests Martin Storsjö performed, two compilers were used (Clang 9 and GCC 7) and three different cores, a Arm Cortex-A53, -A72 and -A73. The first one is a ‘small’ in-order core, the last two are big out-of-order cores.</p><p>In the table below the processed results of all functions currently accelerated by NEON are displayed. The numbers are the speedup, so if the C code took 5 seconds and the NEON 2, the speedup is 2.5. The full results of all 146 functions can be <a href="https://docs.google.com/spreadsheets/d/1kokRutDAZmIMHa7EHxMNefhezDVozkcHwXIK_7X6g1w/edit#gid=1803507871">viewed here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mdVijgvd_ZzdR7nizvdReQ.png" /></figure><p>We can observer a lot from this table. First of all, the speedup is very broad distributed, ranging from a few percent to factors of 20+. We also see that in most cases, the Clang compiler opimizes the C code a little better (the NEON speedup is smaller). Furthermore, the speedup on the small in-order A53 cores is higher than on the out-of-order cores, while the A73 profits more than the A72, likely due the <a href="https://www.anandtech.com/show/10347/arm-cortex-a73-artemis-unveiled/2">reduced decode-width</a> of the former.</p><p>Something to keep in mind is that some functions get used more than others, which makes an average speedup not a representative number. For the current NEON functions it’s between 5 and 7 depending on core and compiler, but that said. Of course a weighted average could be calculated, but that would also heavily differ per video (encoder, encoder settings, content).</p><p>But in general, hand-written NEON assembly can be <strong>4 to 5 times faster</strong> than compiler optimized C in on most functions, and over 20x in exceptional cases.</p><h4><strong>dav1d 0.3.1 performance</strong></h4><p>I will just start with the graph you all want to see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mWfO5v0NrPo_FP3U8h-5QQ.png" /></figure><p>On this 1080p video (<a href="https://code.videolan.org/videolan/dav1d/issues/259#note_34747">details here</a>) a huge difference can be observed. Where the Apple A7 and Snapdragon 835 can’t reach 24 fps with the compiler optimized C (Clang was used), the NEON enables 30 fps without a hitch. And the Apple A10 jumps from 45 to above 100 fps. Keep in mind that on mobile, these performance boosts directly result in lower power usage, saving this precious resource.</p><p>If we normalize the results we can get a close look to the exact speedup:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vD7nI1fgrH0yjhOrcyqs9Q.png" /></figure><p>The Cortex-A73 in the Snapdragon 835 profits the most with almost a 3x speedup. Other cores average just below 2.5x. This means dav1d went from 1x performance with optimized C, to 1.8x with dav1d 0.1.0&#39;s NEON and now 2.5x with dav1d 0.3.1’s NEON.</p><h4>Future</h4><p>dav1d’s Arm64 development is far from done. The most critical functions are now sped up with NEON assembly for mobile (and AVX2 and SSSE3 for PC), but there are still significant gains ahead, hopefully reaching an average acceleration factor of 3x at some point. Better auto-vectorization could also help a lot, but the main driver keeps being hand-written assembly.</p><p>See also:</p><ul><li><a href="https://medium.com/@ewoutterhoeven/dav1d-0-1-0-release-the-first-benchmarks-5404360e44e3">dav1d 0.1.0 release: The first benchmarks</a></li><li><a href="https://medium.com/@ewoutterhoeven/dav1d-0-2-0-covering-all-pcs-including-mobile-eac3e43868c2">dav1d 0.2.0: Covering all PC’s, including mobile</a></li><li><a href="https://medium.com/@ewoutterhoeven/dav1d-0-3-0-sailfish-armed-to-the-teeth-af5bbf845a16">dav1d 0.3.0 Sailfish: ARMed to the teeth</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fcb3a4f6e7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[dav1d 0.3.0 Sailfish: ARMed to the teeth]]></title>
            <link>https://medium.com/@ewoutterhoeven/dav1d-0-3-0-sailfish-armed-to-the-teeth-af5bbf845a16?source=rss-76541425ddad------2</link>
            <guid isPermaLink="false">https://medium.com/p/af5bbf845a16</guid>
            <category><![CDATA[video-compression]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[av1]]></category>
            <category><![CDATA[video-encoding]]></category>
            <category><![CDATA[dav1d]]></category>
            <dc:creator><![CDATA[Ewout ter Hoeven]]></dc:creator>
            <pubDate>Tue, 30 Apr 2019 17:40:39 GMT</pubDate>
            <atom:updated>2019-05-17T14:32:28.164Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>TL;DR:</em></strong><em> dav1d 0.3.0 decodes AV1 video’s 24% faster on SSSE3, 26% on SSE4.1 and 4% on AVX2 (all PC), and 12% faster on Arm64 (mobile).</em></p><p>The open-source AV1 decoder <strong>dav1d</strong> was updated yesterday to version 0.3.0. With the third release, new assembly code provides some serious performance gains on both the PC and mobile platforms.</p><p><em>Previously:</em></p><ul><li><a href="https://medium.com/@ewoutterhoeven/dav1d-0-1-0-release-the-first-benchmarks-5404360e44e3">dav1d 0.1.0 release: The first benchmarks</a></li><li><a href="https://medium.com/@ewoutterhoeven/dav1d-0-2-0-covering-all-pcs-including-mobile-eac3e43868c2">dav1d 0.2.0: Covering all PC’s, including mobile</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2w4C7NA_44bWj-zQyysovA.png" /></figure><h3>PC</h3><p>On the x86 side, this release mostly improves the SSSE3 performance of dav1d. <a href="https://code.videolan.org/xuefeng">Xuefeng Jiang</a> contributed with prediction of <a href="https://code.videolan.org/videolan/dav1d/merge_requests/646">chroma from luma</a> and <a href="https://code.videolan.org/videolan/dav1d/merge_requests/664">Paeth intra prediction</a> functions, delivering 0,8% and 0,4% improved global performance.</p><p><a href="https://code.videolan.org/liwei">Liwei Wang</a> continued his work on inverse transform with larger <a href="https://code.videolan.org/videolan/dav1d/merge_requests/645">8x32</a>, <a href="https://code.videolan.org/videolan/dav1d/merge_requests/653">32x16 and 32x32</a> and up to <a href="https://code.videolan.org/videolan/dav1d/merge_requests/672">64x64</a> blocks, providing the largest speedup of this release, way over 10% on some video’s.</p><p>dav1d 0.3.0 also introduces the first SSE4.1 assembly. In most cases the added SSE4.1 instructions aren’t useful in addition to SSSE3, but <a href="https://code.videolan.org/psilokos">Victorien Le Couviour — Tuffet</a> found a usecase where it was. He <a href="https://code.videolan.org/videolan/dav1d/merge_requests/650">optimized the CDEF filter</a>, resulting in a 1,15x speedup on the module level and around 1,5% overall.</p><p>Meanwhile <a href="https://code.videolan.org/gramner">Henrik Gramner</a> wrote some <a href="https://code.videolan.org/videolan/dav1d/merge_requests/665">very clever SSE2 code</a> to speed up <a href="https://code.videolan.org/videolan/dav1d/merge_requests/665">entropy decoding/bitstream reading</a>, which started to eat up a large proportion of decode time, especially on AVX2. The assembly code resulted in a speedup for all 64-bit x86 platforms, measured around 4% for AVX2 and 2% for SSSE3 and SSE4.1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fLj9GVJeKwC7OjmAowxaoQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cjmyButS_cfUOsz4QfVvWA.png" /></figure><p>Overall these commits make dav1d 0.3.0 around 24% faster on SSSE3, 26% faster on SSE4.1 and 4% faster on AVX2 CPUs (<a href="https://docs.google.com/spreadsheets/d/1kokRutDAZmIMHa7EHxMNefhezDVozkcHwXIK_7X6g1w/edit#gid=1963224812">full data</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8pB12AxLQyZY2fmrRfjPCQ.png" /></figure><p>While single-threaded aomdec is still quite strong, with multiple threads dav1d 0.3.0 is making libaom an even smaller spot in the rear view mirror (<a href="https://docs.google.com/spreadsheets/d/1kokRutDAZmIMHa7EHxMNefhezDVozkcHwXIK_7X6g1w/edit#gid=1809978575">full data</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XmiCdqp6GTbeoWsjIIjJkg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B_aE6ZJBiTIMmgthDnpFaA.png" /></figure><h3>Arm64</h3><p><a href="https://code.videolan.org/mstorsjo">Martin Storsjö</a> delivered two very nice commits speeding up the <a href="https://code.videolan.org/videolan/dav1d/merge_requests/661">loopfilter</a> and <a href="https://code.videolan.org/videolan/dav1d/merge_requests/640">selfguided looprestoration</a> with NEON assembly code. Both functions were speeded up by about 3x, resulting in performance gains anywhere from 7% to 36%. Not only allows this for higher resolutions, frame rates and bitrates, but also brings down power consumption on identical content.</p><p>These updates push the first 1080p video above the 25 fps with a single core on a Snapdragon 835. Using multiple threads, 30 fps is now rock solid and 60 fps is reachable on some content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EnblJLiTqCjJLo4CCvSJGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QrKaoi6UHcONZ_5IYfjKtA.png" /></figure><p>Normalizing the results we see especially the RED clip profiting a lot, since it relies heavily on the loopfilter. Single-thread gains are between 11% and 36% (average 19%), multi-thread between 7% and 16% (<a href="https://docs.google.com/spreadsheets/d/1kokRutDAZmIMHa7EHxMNefhezDVozkcHwXIK_7X6g1w/edit#gid=403740633">full data</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RdjrYHCWQSLQcf4K6oNmbQ.png" /></figure><h3>Adoption</h3><p>The adoption of dav1d is also going very well. The big news is that <strong>Chromium</strong>, the open-source project behind Google Chrome and now also Microsoft Edge, <a href="https://chromium.googlesource.com/chromium/src.git/+/ede4345734371ac35b4e50cea7ef3332dabd54d5%5E%21/"><strong>adopted dav1d</strong></a> and will ship in by default in <a href="https://www.google.com/chrome/"><strong>Chrome</strong></a><strong> 74</strong>.</p><p><strong>Firefox 67</strong> has also improved the dav1d implementation a lot. dav1d was updated to 0.2.1 and <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1536783">multiple tile threads</a> are now used. dav1d is also enabled by default on Linux and macOS in addition to Windows.</p><p><a href="https://ffmpeg.org/"><strong>FFmpeg</strong></a> and <a href="https://www.videolan.org/vlc/index.nl.html"><strong>VLC</strong></a><strong> </strong>still use dav1d, and <a href="https://handbrake.fr/"><strong>Handbrake</strong></a> is also looking at integrating dav1d as soon as FFmpeg 4.2 is released.</p><p><strong>Youtube</strong> is also encoding more and more AV1 streams. They even have encoded a few video’s in 4K and 8K resolutions up to 60fps, <a href="https://www.youtube.com/playlist?list=PLvndfuQ5JldKMffLOhQ6pLdO0euZfq_40">watch them here</a> (and <a href="https://www.youtube.com/testtube">enable AV1 for Youtube here</a>).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af5bbf845a16" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[dav1d 0.2.0: Covering all PC’s, including mobile]]></title>
            <link>https://medium.com/@ewoutterhoeven/dav1d-0-2-0-covering-all-pcs-including-mobile-eac3e43868c2?source=rss-76541425ddad------2</link>
            <guid isPermaLink="false">https://medium.com/p/eac3e43868c2</guid>
            <category><![CDATA[decoding]]></category>
            <category><![CDATA[performance]]></category>
            <category><![CDATA[av1]]></category>
            <category><![CDATA[video-codec]]></category>
            <category><![CDATA[dav1d]]></category>
            <dc:creator><![CDATA[Ewout ter Hoeven]]></dc:creator>
            <pubDate>Mon, 04 Mar 2019 18:16:10 GMT</pubDate>
            <atom:updated>2019-03-04T20:47:52.488Z</atom:updated>
            <content:encoded><![CDATA[<p>Three months after dav1d 0.1.0 “Gazelle” was released version 0.2.0 just got <a href="https://code.videolan.org/videolan/dav1d/tags/0.2.0">tagged</a>. Under code name “Antelope” huge improvements were made to the AV1 decoder for older PC’s and mobile devices, on 8-bit content. By hand-writing SSSE3 and NEON assembly code, most of the C functions were sped up by factors ranging anywhere from 2 to 20, resulting in hugely higher frame rates.</p><p>This blog will provide an overview of dav1d’s performance, compared to both the 0.1.0 release and the AV1 reference decoder, aomdec.</p><p><a href="https://medium.com/@ewoutterhoeven/dav1d-0-1-0-release-the-first-benchmarks-5404360e44e3">dav1d 0.1.0 release: The first benchmarks</a></p><h3>PC: SSSE3 for older x86 CPUs</h3><p>Where dav1d 0.1.0 was all about AVX2 performance, an extended instruction set used by newer processors (Intel Haswell / AMD Zen and newer), 0.2.0 focuses on speeding up SSSE3 performance for older and lower-end processors. According to the <a href="https://store.steampowered.com/hwsurvey">Steam Hardware Survey</a> (Feb. 2019) 97,23% of their user base supports SSSE3, while only about two-thirds supports AVX2.</p><p>Since different videos use different functions of the AV1 codec in different proportions, some saw larger increases than others. Below are the results for three 1080p videos, comparing dav1d at 0.1.0 release to the current head.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T7hML20lID_khyAgmmvKyA.png" /></figure><p>With both single-threaded and multi-threaded the improvements are huge, averaging around 2,25x for ST and 2,5x for MT. Looking at raw frame rates, this means on almost any device with SSSE3 1080p at 30fps is playable without a hitch, while quad-core high frequency processors should also be able to handle up to 1440p at 60fps and 2160p at 30fps.</p><p>The following results were reached on a Intel Core i5-4590 (Haswell, 4c/4t, 3,5 GHz) using only SSSE3 instructions:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T6cJgE1gcuIfzM7YlKmreQ.png" /></figure><p>If we normalize the values we can closer examine the gains, averaging around 2,23x:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y3Jm3fxnqqaOdvP-bQemNw.png" /></figure><p>On average, dav1d 0.2.0 is 2,23x faster on 8-bit content than 0.1.0.</p><h3>x86 performance compared to aomdec</h3><p>The target to beat for dav1d is aomdec, the AV1 reference decoder. At the release of dav1d 0.1.0 the performance on AVX2 CPUs was already spectacular, but older and lower-end processors that didn’t support it where at the time better performing with aomdec. With the release of dav1d 0.2.0, that changes.</p><p>All the numbers below are for 8-bit color depths with 4:2:0 chroma subsampling. For multi-thread aomdec used 4 threads, while dav1d used 8 framethreads and 4 tilethreads. Both give optimal performance on a quad-core CPU.</p><p>Comparing <strong>SSSE3</strong> performance, with a single-thread dav1d and aomdec perform about the same. Multi-threaded dav1d is 2,5 to 3 times faster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Oyucern6YqJhVCDo-wJLUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-yx0aEyhRQH7RGakL3vOvg.png" /></figure><p>Moving on to CPUs that can handle <strong>SSE4.1</strong> instructions (which is 95,82% according to Steam) aomdec claims a small lead in single-threaded performance. dav1d doesn’t have separate assembly code for SSE4.1, so performance is (for now) identical to SSSE3 CPUs. Multi-threaded dav1d is still about twice as fast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W4rcnjGcfGAitPtygvjG-A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cNOebQn_TlURpzHrlISd7g.png" /></figure><p><strong>AVX2</strong> performance increased a very slight 1% to 2% for dav1d, which was already very fast. Single-thread enjoys a comfortable 40% leap, and with multiple threads anywhere from 2,5x to 5x.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7TJXd4ncngZHxNXEGR-Ccg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*59-3Qa9zOJExezE4UholcA.png" /></figure><h3>Mobile: NEON</h3><p>A lot of NEON assembly has been written for both Arm and Arm64, both for the 0.1.0 and 0.2.0 releases. When 0.1.0 got tagged the speedup using NEON assembly over C was on average about 80%, now its more than double.</p><p>Starting with <strong>Arm64</strong> (Aarch64) performance, we see an average 38% improvement for single-thread and a 53% improvement for multi-thread. On a Snapdragon 835, the improvement enables 1080p at 60fps for most videos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IhyvdzRDvln_2VFv8RMpug.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kv1LmmnfbPHkkVIiL5UIkw.png" /></figure><p><strong>32-bit Arm</strong> (Armv7) also improved a lot, since most assembly code can be fairly easily ported between the two. Single-thread saw a spectacular average speedup of 62% while multi-thread increased by 46%. 1080p at 30fps should be fluent on most CPUs with at least two ‘big’ cores.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_t9Sz1ZmTEA0cM0PJYW3lw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VdUfEem9wKmrftT-pLuIzw.png" /></figure><h3>Conclusion</h3><p>With the release of dav1d 0.2.0 the AV1 decoder clearly distinguishes itself from the reference decoder. AVX2 was already very fast, but now SSSE3 is also at least up to par with aomdec.</p><p>There are still some functions left to write SSSE3 assembly for, as is the case for NEON. So in future releases we will see dav1d get even faster on those platforms, but in the meantime it’s more than fast enough to provide a proper 1080p experience on most devices.</p><p>This is all on 8-bit content however, which is still the vast majority on most platforms. 10-bit, and later 12-bit, there isn’t assembly code in dav1d yet, that will be something to look forward to.</p><p><a href="https://www.videolan.org/vlc/">VLC</a> wil very soon release a new stable release with dav1d 0.2.0, and Firefox is <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=dav1d">also working</a> on integrating support. <a href="https://www.ffmpeg.org/">FFmpeg</a> already uses dav1d for decoding in the development branch, and Handbrake will support it <a href="https://github.com/HandBrake/HandBrake/pull/1864">soon</a>.</p><h4>Thanks</h4><p>Thanks to Martin Storsjö for the Arm performance numbers, and of course to all <a href="https://code.videolan.org/videolan/dav1d/blob/master/THANKS.md">dav1d contributors</a> for building this awesome decoder.</p><h4>Materials</h4><ul><li>Clips used: <a href="https://drive.google.com/drive/folders/1kZx75w6kKUc6B4fGEXN5jUCVn2iCO3v1">https://drive.google.com/drive/folders/1kZx75w6kKUc6B4fGEXN5jUCVn2iCO3v1</a></li><li>Graphs: <a href="https://drive.google.com/drive/folders/1Fl1IkqA0SrYxS-xGn6kw3M1oKCQ1R2J3">https://drive.google.com/drive/folders/1Fl1IkqA0SrYxS-xGn6kw3M1oKCQ1R2J3</a></li><li>Spreadsheet with all data, including parameters: <a href="https://docs.google.com/spreadsheets/d/1rkPMHgy7cXEsT9KeYF-NVZQNiEGEkvrLnLo2FaLWiwA/edit#gid=22180039">https://docs.google.com/spreadsheets/d/1rkPMHgy7cXEsT9KeYF-NVZQNiEGEkvrLnLo2FaLWiwA/edit#gid=22180039</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eac3e43868c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[dav1d 0.1.0 release: The first benchmarks]]></title>
            <link>https://medium.com/@ewoutterhoeven/dav1d-0-1-0-release-the-first-benchmarks-5404360e44e3?source=rss-76541425ddad------2</link>
            <guid isPermaLink="false">https://medium.com/p/5404360e44e3</guid>
            <category><![CDATA[alliance-for-open-media]]></category>
            <category><![CDATA[av1]]></category>
            <category><![CDATA[video-decoder]]></category>
            <category><![CDATA[dav1d]]></category>
            <dc:creator><![CDATA[Ewout ter Hoeven]]></dc:creator>
            <pubDate>Tue, 11 Dec 2018 14:58:38 GMT</pubDate>
            <atom:updated>2018-12-11T19:20:07.492Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>dav1d 0.1.0 “Gazelle”</strong> <a href="http://www.jbkempf.com/blog/post/2018/First-release-of-dav1d">was released</a> today as the first milestone for the <strong>AV1 decoder</strong> created by the <a href="https://www.videolan.org/">VideoLAN</a>. dav1d’s goal is to accelerate the adoption of the new <strong>AV1 codec</strong>, created by the <a href="https://aomedia.org/">Alliance for Open Media</a> (AOM), by enabling software decoding on as many devices as possible. AV1 promised 25% bitrate savings at the same quality and is open-source and free, moving away from the licensing <a href="http://www.streamingmedia.com/Articles/Editorial/Featured-Articles/The-Future-of-HEVC-Licensing-Is-Bleak-Declares-MPEG-Chairman-122983.aspx">struggles</a> of HEVC.</p><p>But how fast is it? Here are the <strong>first benchmarks</strong>.</p><h3>PC: x86–64 with AVX2</h3><p>Most users are going to experience AV1 first on the desktop. dav1d 0.1.0 is mainly optimized for CPUs that support <strong>Advanced Vector Extensions 2 (AVX2)</strong>, an instruction set extension introduced with the Intel Haswell architecture in 2013, and also supported since AMD’s Excavator architecture from 2015. It’s estimated that a little over half the desktop CPU’s support AVX2 today.</p><h4>Threading</h4><p>One of the big strengths of dav1d is its <strong>high scalability</strong>. Where aomdec, the default decoder from the AOM, only uses tile threads to decode multiple tiles from one frame simultaneously, dav1d also uses <strong>frame threads</strong> to decode multiple frames in parallel. This makes dav1d fast no matter how the content is encoded, even with a single tile.</p><p>Here’s the performance of aomdec<strong> </strong>(the default decoder from the AOM) and dav1d in fps over two <strong>1080p</strong> 8-bit 4:2:0 clips.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uKLXJBHZTEVZEvztpd71EA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0wV877k_mw-a2hQQXuw5GA.png" /><figcaption>Thread scaling on an AMD Ryzen 5 1600 (6 core, 12 thread)</figcaption></figure><p>In the graphs above, aomdec stops scaling after 6 threads for the Chimera video (from <a href="http://download.opencontent.netflix.com/?prefix=AV1/Chimera/">Netflix</a>) and doesn’t scale much further after 2 threads on the Feels Like Summer video (from <a href="https://www.youtube.com/watch?v=F1B9Fk_SgI0">Youtube</a>/Google). dav1d maintains high-scaling after that. For a more extreme example, we tested on a 32-core AMD Epyc processor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qVI73ZYKBI0aJ_o8BiYD1g.png" /></figure><p>aomdec reaches it’s peak performance at 8 threads, while dav1d doesn’t stop scaling until over a thousand threads. This results in hugely improved performance on systems with many cores, which are more and more common these days.</p><p>While the scaling is great, a small weakness of dav1d is revealed in the process. Scaling should stop at 64-threads, but it doesn’t. This means that one tile or frame thread isn’t able to fully utilize a CPU core or thread, which means a lot of threads are needed and that makes it kind of guesswork how many threads of which type are needed. It would be an improvement if this process could be handled backstage.</p><h4>Bit depths and chroma subsampling</h4><p>dav1d 0.1.0 focused on 8-bit color depth and 4:2:0 chroma subsampling performance with the assembly code since almost all content uses that format right now. All color depths (8, 10 and 12 bit) and chroma formats (4:0:0, 4:2:0, 4:2:2 and 4:4:4) are supported in dav1d however, and here is a quick overview of its performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eyWx41kYwSBoBeq-P_dIjQ.png" /></figure><p>As you can see 8-bit performance is very high in all chroma formats and is more than twice as fast as aomdec. Moving to 10- and 12-bit color depth we see performance degrading fast, but 4:0:0 (monochrome) and 4:2:0 are still faster than aomdec, while 4:2:2 is on par. Only 4:4:4 shows significant lower performance than aomdec.</p><p>This benchmark was run on Zen which is slightly biased towards dav1d, on Intel Haswell/Skylake aomdec’s performance is relatively a little higher.</p><h4>Overall performance</h4><p>Looking at some of the most viewed content, which is all 8-bit 4:2:0, we see that dav1d is quite fast. 1080p 120fps, 1440p 60fps and 4k 30fps is no problem on a 5-year old mid-range quad-core processor, and 1080p 60fps and 1440p 30fps will playback fine on any dual-core with AVX2 (except maybe the extreme low-power versions).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IsnworRo2NnYjsujEhq93A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aSP9GoOITa97VmfSJGFmPQ.png" /></figure><p>If we normalize the performance of dav1d to aomdec on both systems we see the performance for Haswell and Zen respectively starting at 1.75x and 1.9x while reaching over 3x and 5x in some clips.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LKOUKgFMBnlMtbunScomXA.png" /></figure><h3>Mobile: Arm64 with NEON</h3><p>64-bit mobile devices that support <strong>NEON instructions</strong> (practically all of them) have a good shot at decoding AV1 in real time — while with high power consumption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k5SCbJAvAIc6OMYTlEW7Hw.png" /><figcaption>dav1d single-core performance on Arm64 devices (Chimera 1080p 8-bit 4:2:0)</figcaption></figure><p>Adding NEON assembly code to dav1d speeds decoding up by <strong>57% to 117%</strong>, making it faster than libaom in most cases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Ya9T1DcuxI5wmuMLi4msw.png" /><figcaption>dav1d multi-core performance on Arm64 devices (Chimera 1080p 8-bit 4:2:0)</figcaption></figure><p>Scaling to multiple cores, we see that 1080p at 30fps can be decoded with most high-end devices younger than 2 years. 720p at 30fps is possible for any device with ‘Big’ Arm cores.</p><p>On Apple’s A12X, 1440p at 60fps and 4K at 30fps is reachable. Yes, it’s insane.</p><h3>Conclusion</h3><p>A mere 3 months since its first release, dav1d has made huge strides. 8-bit performance on AVX2 systems has tripled and beats aomdec in any case, and Arm64 has adopted enough NEON assembly to make it about 5% faster than aomdec. Older CPU’s will have to wait for now, as does 10- and 12-bit content.</p><p>Writing assembly by hand is a huge undertaking. dav1d need to support at least 3 instruction extensions (SSSE3, AVX2, and NEON), for 3 color depths (8, 10 and 12 bits) and 4 chroma formats (4:0:0, 4:2:0, 4:2:2, 4:4:4) while also supporting 32–bit builds which have it own sets of limitations. Most of the times the 10- and 12-bit code can be shared and many functions work on all chroma formats, but this means nevertheless that a single function could need tens of different assembly implementations.</p><p>For the <strong>next release</strong>, dav1d will focus on improving <strong>SSSE3</strong> performance, which is supported by 97% of x86 CPUs currently in use. <strong>Arm64</strong> will also receive a lot of love, and some ASM for <strong>10-bit</strong> and <strong>4:4:4</strong> content will be written.</p><p>dav1d is being integrated into <a href="https://www.mozilla.org/en-US/firefox/65.0a1/releasenotes/"><strong>Firefox 65</strong></a> and can be enabled using the media.av1.enable and media.av1.use-dav1d flags in about:config. It will enter Beta today and is expected to release on 2019–01–29. <a href="https://www.ffmpeg.org/"><strong>FFmpeg</strong></a><strong> </strong>and <a href="https://www.videolan.org/vlc/index.nl.html"><strong>VLC</strong></a><strong> </strong>have also adopted dav1d in their master branches, so check those out if you’re interested. <strong>Youtube</strong> already <a href="https://www.youtube.com/playlist?list=PLyqf6gJt7KuHBmeVzZteZUlNUQAVLwrZS">started</a> streaming in AV1 on the desktop platforms, which can be enabled <a href="https://www.youtube.com/testtube">here</a>, and <a href="https://rg3.github.io/youtube-dl/">youtube-dl</a> supports downloading these AV1 video’s. Also check out <a href="https://github.com/xiph/rav1e"><strong>rav1e</strong></a>, an alternative AV1 encoder written in Rust.</p><p><strong>dav1d</strong> itself can be found on VideoLAN’s<strong> </strong><a href="https://code.videolan.org/videolan/dav1d"><strong>GitLab</strong></a>.</p><p><em>Any feedback, suggestions or requests for upcoming blogs? Feel free to contact me!</em></p><h3>References &amp; contributions</h3><ul><li>All x86 benchmarks were run by me, except the Threadripper threading test, which was performed by Thomas Daede.</li><li>All Arm64 benchmarks were run by Janne Grunau and Martin Storsjö, many thanks.</li><li>All data can be found in this spreadsheet: <a href="https://docs.google.com/spreadsheets/d/1AO3lDZnpC8pNJffOknY1rIxXwLog_ISwHhO_sv3Xlhg/edit">https://docs.google.com/spreadsheets/d/1AO3lDZnpC8pNJffOknY1rIxXwLog_ISwHhO_sv3Xlhg</a></li><li>And the used .ivf files can be found in this folder: <a href="https://drive.google.com/drive/folders/1mXk48bN9bcukkzeeaw4lyZ8TL2vIjuGM">https://drive.google.com/drive/folders/1mXk48bN9bcukkzeeaw4lyZ8TL2vIjuGM</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5404360e44e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>