<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.xiph.org/index.php?action=history&amp;feed=atom&amp;title=Unimplemented_x264_features_in_rav1e</id>
	<title>Unimplemented x264 features in rav1e - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.xiph.org/index.php?action=history&amp;feed=atom&amp;title=Unimplemented_x264_features_in_rav1e"/>
	<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Unimplemented_x264_features_in_rav1e&amp;action=history"/>
	<updated>2026-05-15T08:13:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=Unimplemented_x264_features_in_rav1e&amp;diff=16692&amp;oldid=prev</id>
		<title>Unlord: Unlord moved page X264 features in rav1e to Unimplemented x264 features in rav1e</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Unimplemented_x264_features_in_rav1e&amp;diff=16692&amp;oldid=prev"/>
		<updated>2019-02-12T21:19:04Z</updated>

		<summary type="html">&lt;p&gt;Unlord moved page &lt;a href=&quot;/X264_features_in_rav1e&quot; class=&quot;mw-redirect&quot; title=&quot;X264 features in rav1e&quot;&gt;X264 features in rav1e&lt;/a&gt; to &lt;a href=&quot;/Unimplemented_x264_features_in_rav1e&quot; title=&quot;Unimplemented x264 features in rav1e&quot;&gt;Unimplemented x264 features in rav1e&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:19, 12 February 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key xiphwiki:diff:1.41:old-16691:rev-16692 --&gt;
&lt;/table&gt;</summary>
		<author><name>Unlord</name></author>
	</entry>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=Unimplemented_x264_features_in_rav1e&amp;diff=16691&amp;oldid=prev</id>
		<title>Tdaede: Created page with &quot;This is the list of unimplemented x264 features, but put in the context of rav1e instead: [https://wiki.videolan.org/index.php?title=X264_TODO]  === Motion Estimation ===  *Se...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Unimplemented_x264_features_in_rav1e&amp;diff=16691&amp;oldid=prev"/>
		<updated>2019-02-12T21:15:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is the list of unimplemented x264 features, but put in the context of rav1e instead: [https://wiki.videolan.org/index.php?title=X264_TODO]  === Motion Estimation ===  *Se...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is the list of unimplemented x264 features, but put in the context of rav1e instead: [https://wiki.videolan.org/index.php?title=X264_TODO]&lt;br /&gt;
&lt;br /&gt;
=== Motion Estimation ===&lt;br /&gt;
&lt;br /&gt;
*Sequential elimination (SEA), used for exhaustive search, might be more generally applicable to algorithms like UMH, by letting us skip a lot of SADs. The downside is we won&amp;#039;t be able to use SAD_X4 anymore. &lt;br /&gt;
**rav1e: This would be nice to have. SAD_X4 is not applicable.&lt;br /&gt;
*(T)ESA is currently wrong for motion searches done on weightp duplicates. This effect is miniscule, but it still should be fixed. &lt;br /&gt;
**rav1e: doesn&amp;#039;t even have TESA yet.&lt;br /&gt;
*Hierarchical motion estimation might be a useful way to catch very long motion vectors without the cost of UMH or ESA. It might also help regularize motion.&lt;br /&gt;
**rav1e: already has this, in the form of half-resolution and quarter-resolution search. It&amp;#039;s enormously helpful for video game sequences.&lt;br /&gt;
*Somehow take into account the effect of motion vector decision on future blocks. &lt;br /&gt;
**rav1e: daala did this to enormous gain, should be doable in rav1e too.&lt;br /&gt;
*We don&amp;#039;t need to check all 11 predictors all the time for 16x16 fullpel motion search. &lt;br /&gt;
**But how do we know which ones we can afford to skip, and when? &lt;br /&gt;
**Xvid and libtheora have algorithms for this, but the former&amp;#039;s is almost surely 100% useless and the latter doesn&amp;#039;t seem impressive either. &lt;br /&gt;
**rav1e: checking predictors is so cheap that this is a waste.&lt;br /&gt;
*libtheora does fullpel motion estimation on the source pixels instead of decoded pixels. Does this give a better starting point for the subpel search and discourage &amp;quot;weird&amp;quot; MVs? &lt;br /&gt;
**rav1e: worth trying but probably only for halfres and quarterres&lt;br /&gt;
*With extremely fast encoding settings (subme 0), can we rip off lookahead MVs instead of doing a real search? &lt;br /&gt;
**This seems to be awful from my testing, but maybe there&amp;#039;s something we can do?&lt;br /&gt;
**rav1e: sounds like a waste, if you&amp;#039;re going this fast you shouldn&amp;#039;t be doing lookahead&lt;br /&gt;
*Try sub-8x8 partitions in B-frames. Is it at all useful? &lt;br /&gt;
**rav1e: already does this. might be worth investigating not doing this&lt;br /&gt;
*Try bidir motion estimation for fullpel. That is, considering L1&amp;#039;s MV when doing L0 (or vice versa). Xvid does this. How much does it help? &lt;br /&gt;
**rav1e: probably worth doing.&lt;br /&gt;
*Fullpel chroma ME? &lt;br /&gt;
**rav1e: already done?&lt;br /&gt;
&lt;br /&gt;
=== Intra Analysis ===&lt;br /&gt;
&lt;br /&gt;
*Make the early terminations smarter. Currently they&amp;#039;re just hacks -- some statistical analysis might be useful.&lt;br /&gt;
**rav1e early termination is more straightforward but still needs tuning.&lt;br /&gt;
&lt;br /&gt;
=== Mode Decision ===&lt;br /&gt;
&lt;br /&gt;
*Can we find more ways to skip more motion searches in multiref?&lt;br /&gt;
**A while back, I tried using weaker motion searches on older refs.  This helped a bit for speed-vs-compression, but is ironically the opposite of what one wants; older refs will be harder to find good MVs in, and therefore really need better searches.&lt;br /&gt;
*On extremely fast encoding settings, fast skip is actually kind of slow. But anything dumber (e.g. SAD) is completely useless. Is there some better balance that can be achieved here?&lt;br /&gt;
**Can we do something smart by analyzing fenc?  It&amp;#039;s impossible to tell whether a block is motionless by looking at fdec, but looking at the source pixels is useful.  There&amp;#039;s still complexity such as lower-QP-than-reference though.&lt;br /&gt;
*See the TODOs for deblock-aware RD in common/deblock.c.&lt;br /&gt;
**I tried correcting weightp references for deblock RDO, but it didn&amp;#039;t help.&lt;br /&gt;
**I tried chroma, too, and again, it didn&amp;#039;t help measurably.&lt;br /&gt;
*Is there a faster way than SA8D/SATD to do 8x8dct vs 4x4dct mode decision? At very fast settings, the time this uses is nontrivial.&lt;br /&gt;
**Doing a merged 4x4/8x8 SATD would help here, but would require new asm.&lt;br /&gt;
**rav1e: this speedup is probably less important&lt;br /&gt;
*Is there a faster way than RD to do 8x8dct vs 4x4dct mode decision that&amp;#039;s still better than SATD? RD takes over an order of magnitude more time than SATD, so it might be useful to have something in the middle. &lt;br /&gt;
**rav1e: even more critical than in x264, see fast rdo patches&lt;br /&gt;
*Is there some value to swapping the mode decision metric from SATD to SA8D if we think that the macroblock will use 8x8dct? [http://akuvian.org/src/x264/x264_dct8_guess.diff This has been tried before], but only helped if our guess was extremely good (better than we could get in reality).&lt;br /&gt;
**rav1e: only uses one metric at a time.&lt;br /&gt;
&lt;br /&gt;
=== Psy ===&lt;br /&gt;
&lt;br /&gt;
*Psy-RD is a hack. It works, but it&amp;#039;s a hack. If you apply QNS with Psy-RD as the metric, it goes way overboard and gives terrible results. This means that Psy-RD only works because normal mode decision is limited in the way it can modify the image to better suit the metric. Is there a way to make it better?&lt;br /&gt;
**rav1e: see cdef-dist.&lt;br /&gt;
*Should RD be linear at all? Perhaps we should weight more heavily against low quality blocks and also try to ignore minuscule distortion that viewers can&amp;#039;t see. &lt;br /&gt;
**rav1e: see cdef-dist.&lt;br /&gt;
*Psy-trellis (and maybe psy-RD?) are too strong at very high QPs.&lt;br /&gt;
**rav1e: see cdef-dist.&lt;br /&gt;
*Psy-trellis should be merged with Psy-RD. There are patches for this, but they probably won&amp;#039;t be committed until psy-RD itself is fixed.&lt;br /&gt;
**rav1e: see cdef-dist.&lt;br /&gt;
*RD should take into account local variance. &lt;br /&gt;
**rav1e: see cdef-dist.&lt;br /&gt;
*Lambda should be varied on a per-DCT-block basis instead of a per-macroblock basis. &lt;br /&gt;
**rav1e: should already do this&lt;br /&gt;
*Lambda should be picked independent of quantizer (i.e. with greater precision).&lt;br /&gt;
**rav1e: already done&lt;br /&gt;
*Classic problem: a block is mostly high complexity but has a small area of low complexity. How do we judge whether that area is important? Good example: sharp text on background with film grain; grain gets blurred out because of the text. &lt;br /&gt;
**If we think it&amp;#039;s important all the time, we ruin the quality of many clips that rely on raising complexity on edges (Touhou). &lt;br /&gt;
*Should motion estimation lambda be as high as it is at very high quantizers? There&amp;#039;s some value to capturing &amp;quot;true motion&amp;quot;... &lt;br /&gt;
*Macroblock tree correlates pretty well with visual perception in that its concept of a &amp;quot;high complexity&amp;quot; matches well with the visual concept. Except for local illumination changes. Talk to Dark Shikari for a patch.&lt;br /&gt;
**rav1e still needs mbtree&lt;br /&gt;
&lt;br /&gt;
=== Lookahead ===&lt;br /&gt;
&lt;br /&gt;
*Temporal MV predictors in lookahead? There&amp;#039;s a patch for these somewhere, but they biased heavily in favor of B-frames, likely by improving the motion search. &lt;br /&gt;
**rav1e: lookahead should totally use temporal candidates if available&lt;br /&gt;
*Should lookahead use variable lambda based on quantizer (esp. due to adaptive quant)? If so, should it take into account estimated ratecontrol quantizer, too? If so, how?&lt;br /&gt;
**rav1e: should already do this, file a bug if it doesn&amp;#039;t&lt;br /&gt;
&lt;br /&gt;
=== Quantization ===&lt;br /&gt;
&lt;br /&gt;
*There&amp;#039;s room for something between trellis and deadzone in terms of complexity. libvpx has a good example -- it biases towards zero-runs in its &amp;quot;medium speed&amp;quot; quantizer. This can&amp;#039;t be SIMD&amp;#039;d easily, but is still vastly faster than trellis. A nonlinear quantizer (be more likely to round up larger coefficients) might also be useful.&lt;br /&gt;
**How useful is this with an entropy coder that doesn&amp;#039;t really bias towards zero-runs, as in CABAC?&lt;br /&gt;
**rav1e: same concern, with lv-map instead&lt;br /&gt;
*Floyd-Steinberg for quantization? Try pushing quantization error to nearby DCT coefficients. Should this go from high to low or low to high? &lt;br /&gt;
**rav1e: eeeeeeeeeeeeh&lt;br /&gt;
*Energy-preserving quantizer -- maintain L1 (or maybe L2? I&amp;#039;m not sure) energy. Should we maintain it in the spatial domain (post-iDCT) or residual domain? Probably the former. &lt;br /&gt;
**See [https://github.com/saintdev/x264-devel/compare/enquant-base...energy-quant saintdev&amp;#039;s github] for one attempt at this.&lt;br /&gt;
**rav1e: this is pretty hard with just the quantizer, do delta q&amp;#039;s first&lt;br /&gt;
&lt;br /&gt;
=== Transform ===&lt;br /&gt;
&lt;br /&gt;
*Analyze the error characteristics of the fDCT. Is there any way to make it more accurate without much speed loss? Particularly at extremely low quantizers, this might help. &lt;br /&gt;
**rav1e: Using the daala fDCT will accomplish this as well as improved speed (the AV1 fDCT is much more accurate than the H.264 one)&lt;br /&gt;
*Before forward transform, run a &amp;quot;blocking filter&amp;quot; that acts as the approximate inverse of the deblock filter. See [http://akuvian.org/src/x264/Shwang_loopfilter_thesis.pdf this paper].&lt;br /&gt;
**rav1e: even more applicable to AV1 due to the many postfilters.&lt;/div&gt;</summary>
		<author><name>Tdaede</name></author>
	</entry>
</feed>