Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
#1 | Link | |
|
Moderator
![]() Join Date: Nov 2001
Posts: 9,780
|
new x264 feature: mixed references
thx to Alex_W x264 now has a new feature: mixed references
Quote:
are there already any findings how much this slows things down ![]() is there a way to check how often different references per frame have been used?
__________________
Between the weak and the strong one it is the freedom which oppresses and the law that liberates (Jean Jacques Rousseau) I know, that I know nothing (Socrates) MPEG-4 ASP FAQ | AVC/H.264 FAQ | AAC FAQ | MP4 FAQ | MP4Menu stores DVD Menus in MP4 (guide) Ogg Theora | Ogg Vorbis use WM9 today and get Micro$oft controlling the A/V market tomorrow for free |
|
|
|
|
|
|
#2 | Link |
|
Registered User
Join Date: Sep 2002
Posts: 126
|
I found a slowdown of about 10 % with a PSNR Gain of about 0.03 dB
And I`m getting funky color artifacts. So be careful. It seems there is a bug. edit: It was a compiler bug on my side, Sharktooths build works like a charm
Last edited by Kopernikus; 8th October 2005 at 17:15. |
|
|
|
|
|
#3 | Link |
|
Senior n00b
Join Date: Jan 2004
Location: Italy
Posts: 446
|
Congratulations to Alex for finally entering x264's changelog
![]() Last time I saw results from a pre-release version of this patch, there was a 30% slowdown with up to 0.2-0.25 dB of PSNR gain at constant quantizer (that including the bitrate savings, using the approximate "rule" 1% bitrate = 0.05 dB). I don't know about the final version who made it into SVN. It's probably faster than that. That only applies to content where multiple refs actually help. Very high motion scenes and scenes with lots of scenechanges usually don't benefit at all from multiple refs, so this patch improves little or nothing in those situations. However it is OK for most material. Probably useless for a trailer, certainly good for boosting the overall quality of a full-length movie
|
|
|
|
|
|
#4 | Link |
|
Registered User
Join Date: Oct 2002
Location: Canada
Posts: 8,732
|
In which rev is that enabled?
__________________
download RealAnime and Bencos |
|
|
|
|
|
#5 | Link | |
|
Pain and suffering
Join Date: Jul 2002
Posts: 1,270
|
Quote:
r318 | pengvado | 2005-10-08 08:49:29 +0200 (Sat, 08 Oct 2005) | 5 lines new option: --mixed-refs Allows each 8x8 or 16x8 partition to independently select a reference frame, as opposed to only one ref per macroblock. patch mostly by Alex Wright (alexw0885 at hotmail dot com). ------------------------------------------------------------------------
__________________
(x264.nl) |
|
|
|
|
|
|
#10 | Link |
|
Registered User
Join Date: Jan 2005
Posts: 192
|
A short test with 5 ref frames and 2 bframes:
without --mixed-refs: x264 -p 1 -B 700 -A all -r 5 -b 2 -w -8 --progress --frames 1500 -o NUL a.avs x264 -p 2 -B 700 -A all -r 5 -b 2 -w -8 --progress --frames 1500 -o b2_r5.mp4 a.avs PSNR Global:43.264 8.00 fps, 700.13 kb/s with --mixed-refs: x264 -p 1 -B 700 -A all -r 5 -b 2 -w -8 --mixed-refs --progress --frames 1500 -o NUL a.avs x264 -p 2 -B 700 -A all -r 5 -b 2 -w -8 --mixed-refs --progress --frames 1500 -o b2_r5_mixed.mp4 a.avs PSNR Global:43.298 6.71 fps, 699.99 kb/s About 0.034 PSNR gain with --mixed-refs and 16% slower encode. Decoding CPU usage is the same for both encodes (~40% ) As expected --mixed-refs makes no difference if encoding with only 1 max ref frames (the default value), so one should use --mixed-refs with at least -r 2, otherwise the resulting encodes are bit-identical. I also squeezed 0.017 extra PSNR by upping the max ref. from 5 to 16 (but it's slow). x264 -p 1 -B 700 -A all -r 16 -b 2 -w -8 --mixed-refs --progress --frames 1500 -o NUL a.avs x264 -p 2 -B 700 -A all -r 16 -b 2 -w -8 --mixed-refs --progress --frames 1500 -o b2_r16_mixed.mp4 a.avs PSNR Global:43.315 4.06 fps, 699.78 kb/s |
|
|
|
|
|
#11 | Link | |
|
Registered User
Join Date: Mar 2004
Posts: 246
|
Quote:
js |
|
|
|
|
|
|
#12 | Link | |
|
Registered User
Join Date: Oct 2001
Location: Melbourne, Australia
Posts: 2,175
|
Quote:
|
|
|
|
|
|
|
#13 | Link | |
|
Registered User
Join Date: Jan 2005
Posts: 192
|
Quote:
--bitrate 700 -> PSNR 43.264 (resulting kb/s:700.13) --bitrate 710 -> PSNR 43.314 (resulting kb/s:709.92) so 9.79kbps more -> 0.050 PSNR gain So to gain 0.034 PSNR without --mixed-refs, you'll need to add 6.65kbps (estimated) more bitrate to the original 700. It means that --mixed-refs contributes to almost 1% encoding efficiency in terms of quality. Not bad at all . Of course this conclusion is valid for this particular 1 minute clip (1500 frames) and may be wrong in the general case.
Last edited by hpn; 9th October 2005 at 10:25. |
|
|
|
|
|
|
#14 | Link |
|
http://z0r.de/?id=1235
Join Date: Jun 2005
Location: France
Posts: 1,108
|
Question :
What source has been used for these test ? Real-life movie or anime/cartoon ? Another question (maybe off-topic): Why is it when I download sharktooth's builds I get some wierd message saying the executable file is corrupted ? (says: "use /NSRC to execute anyway"). I tried downloading the file several times over (and several builds over too, not just 318a) and I alwaygs get the same bl**dy message :/ Those on x264.nl (b0b0r's I suppose ?) work perfectly (at least, before the server went down :P), so I'm wondering if I haven't missed something :/ Last edited by DarkZell666; 9th October 2005 at 11:37. |
|
|
|
|
|
#17 | Link |
|
Senior n00b
Join Date: Jan 2004
Location: Italy
Posts: 446
|
a quick test at constant quantizer to show the capabilities of mixed refs.
x264-r322, 800 frames, PAL DVD source, 560x304, mid-motion, quite rich texture detail. --qp 22 -m 5 -r 3 -b 2 -8 -A all --me umh PSNR Mean Y:41.246 U:45.522 V:46.297 Avg:42.304 Global:42.045 5.73 fps, 1320.83 kb/s --qp 22 -m 5 -r 3 -b 2 -8 -A all --me umh --mixed-refs PSNR Mean Y:41.253 U:45.522 V:46.296 Avg:42.310 Global:42.052 5.12 fps, 1299.14 kb/s as expected, with --mixed-refs x264 basically kept the same output quality (differences <= 0.01 dB cannot absolutely be seen) while using a 1.6% lower bitrate. The price for that improvement was reasonably fair, roughly a 10% slowdown. According to Alex, mixed-refs should perform even better when using R/D to select which reference to use (but R/D is slow, you know). |
|
|
|
|
|
#19 | Link | |
|
Senior n00b
Join Date: Jan 2004
Location: Italy
Posts: 446
|
Quote:
![]() I cannot tell you "welcome on doom9's forums" since you already made one post eight months ago... ![]() Anyway folks, this guy is Alex, regular x264 contributor (with a new kickass patch coming soon btw) and maybe future developer Make sure you welcome him as he deserves.
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|