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.

Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 5th December 2005, 19:15   #1  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
[x264] More infos about --no-fast-pskip switch...

I just saw that the last revision (384) has a new switch. Could we have more informations about this please ?

Thank you...
Kurtnoise is offline   Reply With Quote
Old 5th December 2005, 22:14   #2  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
yeah would be great if devs could always write a small info about what new features do
__________________
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
bond is offline   Reply With Quote
Old 5th December 2005, 22:16   #3  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
it's for tuning and testing.
Quote:
(20:59:33) pengvado|edu: and yes, no-fast-pskip is for tuning. like esa, I don't expect anyone to really use it.
Sharktooth is offline   Reply With Quote
Old 6th December 2005, 01:52   #4  |  Link
Kostarum Rex Persia
Banned
 
Join Date: May 2005
Location: Serbia
Posts: 560
But... can you be more precise, Sharktooth, please.
Kostarum Rex Persia is offline   Reply With Quote
Old 6th December 2005, 02:02   #5  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,317
well, if no-fast-skip is like esa (slow?) then nobody will use it for large videos. But test it.
IgorC is offline   Reply With Quote
Old 6th December 2005, 02:32   #6  |  Link
Kostarum Rex Persia
Banned
 
Join Date: May 2005
Location: Serbia
Posts: 560
@ IgorC

And,what is the point? What your tests shows?
Kostarum Rex Persia is offline   Reply With Quote
Old 6th December 2005, 04:28   #7  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,549
It's just an option to turn off the fast-pskip patch that was added to SVN a while ago. You should only use it if you believe the new patch is broken somehow (the devs likely put it there just to see what differences it leads to, to ensure there are no problems).
foxyshadis is offline   Reply With Quote
Old 6th December 2005, 20:11   #8  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
Quote:
Originally Posted by Sharktooth
it's for tuning and testing.
ok...good to know.




btw, completely off-topic now : I'm building my own mp4 parser and I just discovered a real funky great thing with the x264 encodes :

This is the beginning of a mp4 file opened with NotePad. And what did you see ? We have the x264 settings directly in the mdat atom....Very good job guys.
Kurtnoise is offline   Reply With Quote
Old 6th December 2005, 20:20   #9  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
indeed.
Sharktooth is offline   Reply With Quote
Old 6th December 2005, 20:35   #10  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
x264 stores the encoding settings in the userdata sei (together with the revision that encoded the clip)
__________________
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
bond is offline   Reply With Quote
Old 8th December 2005, 16:08   #11  |  Link
AlexW
x264 contributor
 
Join Date: Feb 2005
Posts: 22
Quote:
Originally Posted by foxyshadis
It's just an option to turn off the fast-pskip patch that was added to SVN a while ago. You should only use it if you believe the new patch is broken somehow (the devs likely put it there just to see what differences it leads to, to ensure there are no problems).
No, --no-fast-pskip disables the early skip detection on P-frames that has been present in x264 since revision 1, it's purpose is to help visual quality (and maybe psnr) on those clips where fast pskip detection performs badly, like the "bluesky" clip.
AlexW is offline   Reply With Quote
Old 8th December 2005, 18:03   #12  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,549
I see, I must have read it incorrectly. My apologies.
foxyshadis is offline   Reply With Quote
Old 9th December 2005, 00:57   #13  |  Link
virus
Senior n00b
 
Join Date: Jan 2004
Location: Italy
Posts: 446
equating --no-fast-pskip with --esa may give the wrong impression of an uber-slow option. Instead, not only disabling current fast pskip improves a lot on clips like bluesky (and at low bitrates too, I suspect), but it also isn't that slow, especially if coupled with reasonably high-quality settings.
A quick test on a couple of clips (both 1- and 2-pass) with "-8 -m 6 -b 2 -r 3" showed that enabling --no-fast-pskip is just 5-6% slower. That's for my P4 2.4 GHz at 560x304, anyway.

At constant QP, --no-fast-pskip raises the bitrate of about 1%, meaning that it makes x264 skip quite a bit less. I wonder whether the current fast-skip may be better tuned for, say, anime, and whether it could be an idea to use two separate fast-skip heuristics for anime and natural material (much in the same way XviD changes skip policy in Cartoon Mode). I just hope AlexW finds a way to improve fast skipping soon
virus is offline   Reply With Quote
Old 9th December 2005, 17:53   #14  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
ok i now compared the following things for the matrix clip (7116 frames, 720x288):
- nofastpskip
- fastpskip
- rdpskip
- probeskip

Code:
x264 --pass 2 --bitrate 770 --bframe 3 --b-pyramid --ref 5 --mixed-refs --filter -6:-6 --subme 6 --8x8dct --analyse all --weightb --progress -o output.mp4 input.avs
speed

- probeskip: 3.12 fps (+1.9%)
- fastpskip: 3.06 fps
- rdpskip: 2.91 fps (-5%)
- nofastpskip: 2.87 fps (-6.2%)

psnr

- nofastpskip: Avg:44.224 Global:43.934
- rdpskip: Avg:44.218 Global:43.931
- fastpskip: Avg:44.212 Global:43.924
- probeskip: Avg:44.211 Global:43.922

visual quality

matrix:

- compared to nofastpskip, fastpskip doesnt necessarily lead to really noticeable more visual blocks in walls of matrix1 (sometimes more, sometimes less), but fastpskip definitely leads to more small artefacts on walls, making the walls more "dirty" (altough walls are smooth normally). i guess it maybe leads to that artefacts of one frame are more used in following frames too?
- compared to nofastpskip, rdpskip doesnt seem to really help the walls, its maybe slightly more blocky than nofastpskip, but its hardly noticeable (it seems it doesnt have this "dirty" thing of fastpskip that much)
- compared to fastpskip, rdskip seems to be on par on the walls, its maybe slightly better but its also not really noticeable
- compared to nofastpskip, probeskip also seems to show more dirty walls (but slightly less than fastpskip). the walls are also maybe slightly more blocky (but slightly less than fastpskip), but its not that noticeable, slightly less details in highmo

-> nofastpskip is the best mode imho


i also tested bluesky:

- nofastpskip shows clearly far less blocks than fastpskip
- rdpskip shows less blocks than fastpskip
- rdskip shows slightly more blocks than nofastpskip. also rdskip makes the blocks move back and forth horizontally leading to ugly motion in the sky
- the psnr values dont show it and the speed also doesnt indicate it, but probeskip is much better than fastpskip. its also better than rdpskip, but nofastpskip is still better than probeskip (which doesnt make probeskip clearly look really bad, still its seeable)

-> nofastpskip


edit: added probeskip
__________________
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

Last edited by bond; 14th December 2005 at 00:50.
bond is offline   Reply With Quote
Old 9th December 2005, 19:29   #15  |  Link
akupenguin
x264 developer
 
akupenguin's Avatar
 
Join Date: Sep 2004
Posts: 2,392
I expect that the speed cost will be different at subme < 6.
akupenguin is offline   Reply With Quote
Old 9th December 2005, 19:41   #16  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
Quote:
Originally Posted by akupenguin
I expect that the speed cost will be different at subme < 6.
nofastpskip being faster than fastpskip?
__________________
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
bond is offline   Reply With Quote
Old 9th December 2005, 19:58   #17  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
no, the speed hit may be more consistent...
Sharktooth is offline   Reply With Quote
Old 14th December 2005, 00:52   #18  |  Link
bond
Registered User
 
Join Date: Nov 2001
Posts: 9,770
ok i now added some findings about probeskip to my comparison above:

overall:

1) probeskip is faster than fastpskip
2) probeskip is better than fastpskip and rdskip qualitywise
3) probeskip is worse than nofastpskip qualitywise
__________________
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
bond is offline   Reply With Quote
Old 14th December 2005, 04:46   #19  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
Another case where PSNR fails (probeskip has lower score than both rdskip and fastskip but it's visually better).
However no-fast-pskip is slow and IMHO it should not be the default coz it brings slightly better quality at a major encoding speed cost.
Like b-rdo and trellis it should be disabled by default and only enabled by user if he/she wants to get more quality at the cost of speed.
Sharktooth is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:15.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.