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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 16th September 2008, 07:37   #621  |  Link
Audionut
Registered User
 
Join Date: Nov 2003
Posts: 1,281
Yep. And of course subme has to be 6 or 7 for --psy-rdo.
Audionut is offline   Reply With Quote
Old 16th September 2008, 07:43   #622  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,315
ok, thank you very much for quick answer.
IgorC is offline   Reply With Quote
Old 6th November 2008, 03:09   #623  |  Link
dansus
Registered User
 
Join Date: Mar 2005
Location: london
Posts: 104
I do a lot of motorsport encodes which contains panning shots where the car is the focus and doesnt move around in the frame too much but has a fast moving un-encodable backround which is going to blur no matter what.

Am i right in thinking that a higher psy-rdo (+1.1) will allocate resources to the source in focus at expense for backround and i can reduce AQ strength to balance this out a bit if desired?

Also, and sorry if this is ot, but is it possible allocate resources to centre of the frame, ie 80% from centre gets 90% of bits and the rest bleeds out to the edge of frame?

thanks.

Last edited by dansus; 6th November 2008 at 03:51.
dansus is offline   Reply With Quote
Old 6th November 2008, 03:55   #624  |  Link
Sagekilla
x264aholic
 
Join Date: Jul 2007
Location: New York
Posts: 1,752
You can't do hotspot type encoding, where you specify regions of interest that you'd like to get the majority of bits. It's not part of x264, but x264 should naturally allocate more bits to your in focus portion of the image. The blurred background should end up look like very low frequency details that will get less bits, but not block if you use a little bit of AQ.
__________________
You can't call your encoding speed slow until you start measuring in seconds per frame.
Sagekilla is offline   Reply With Quote
Old 6th November 2008, 05:25   #625  |  Link
dansus
Registered User
 
Join Date: Mar 2005
Location: london
Posts: 104
What do you class as a little bit?

0.5?
dansus is offline   Reply With Quote
Old 6th November 2008, 05:34   #626  |  Link
Sagekilla
x264aholic
 
Join Date: Jul 2007
Location: New York
Posts: 1,752
It depends on personal preferences. I consider 0.7 good for me since 1.0 sucks up too many bits while not providing enough of a quality boost, so I would go with 0.3 or 0.4. YMMV!
__________________
You can't call your encoding speed slow until you start measuring in seconds per frame.
Sagekilla is offline   Reply With Quote
Old 7th November 2008, 03:17   #627  |  Link
mikeytown2
Resize Abuser
 
mikeytown2's Avatar
 
Join Date: Apr 2005
Location: Seattle, WA
Posts: 623
@dansus
this avisynth script might help you with allocating more bits to the "important parts" of the video
http://forum.doom9.org/showthread.php?t=131920
mikeytown2 is offline   Reply With Quote
Old 30th November 2008, 20:12   #628  |  Link
K0zi
Registered User
 
Join Date: Nov 2007
Location: PL
Posts: 26
I have recently done some tests with various psy-rd and aq strengths. Here are the screens and the commandline:

Code:
--pass 2 --sar 64:45 --bitrate 1623 --level 5.1 --stats "[...].stats" --ref 5 --mixed-refs --no-fast-pskip --bframes 4 --b-adapt 2 --b-pyramid --weightb --direct spatial --deblock -3:-3 --subme 9 --analyse all --8x8dct --trellis 2 --psy-rd x:x --aq-strength x --me esa --threads auto --thread-input --progress --no-dct-decimate --no-psnr --no-ssim --output "[...].mkv" "[...].avs"

Source

AQ strength 1.0
--psy-rd 1.0:1.0 --psy-rd 1.0:0.75 --psy-rd 1.0:0.5 --psy-rd 1.0:0.0 --psy-rd 0.75:0.5 --psy-rd 0.5:0.5 --psy-rd 0.5:0.25

AQ strength 0.75
--psy-rd 1.0:1.0 --psy-rd 1.0:0.75 --psy-rd 1.0:0.5 --psy-rd 1.0:0.0 --psy-rd 0.75:0.5 --psy-rd 0.5:0.5 --psy-rd 0.5:0.25

AQ strength 0.5
--psy-rd 1.0:1.0 --psy-rd 1.0:0.75 --psy-rd 1.0:0.5 --psy-rd 1.0:0.0 --psy-rd 0.75:0.5 --psy-rd 0.5:0.5 --psy-rd 0.5:0.25

And then I realized I don't understand how it works
I can't find any post or guideline here that explains how to use these new options, and therefore, I'd like to request such an explanation
I mean, what are higher strengths supposed to do? Keep the source grain or add even more?

Last edited by K0zi; 2nd December 2008 at 15:03.
K0zi is offline   Reply With Quote
Old 1st December 2008, 19:13   #629  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by K0zi View Post
I mean, what are higher strengths supposed to do? Keep the source grain or add even more?
I think Psy RDO neither tries to get as close as possible to the original nor does it intentionally add grain.

Instead it tries to retain the same "complexity" as the original, making the image look more pleasant for the human eye.

Higher values make the effect stronger: It helps to retain more detail, but also tends to add a new kind of artifacts.

(BTW: The second parameter of "--psy-rd" is for Psy Trellis, which is disabled by default)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 1st December 2008 at 19:41.
LoRd_MuldeR is offline   Reply With Quote
Old 2nd December 2008, 00:45   #630  |  Link
K0zi
Registered User
 
Join Date: Nov 2007
Location: PL
Posts: 26
So, should I use higher strengths for grainy movies then?
Or the amount of grain isn't the only factor here and to find the "most appropriate" settings I need to run hundreds of tests each time?

And given the screenshots (settings) above, which one would you pick?

Last edited by K0zi; 2nd December 2008 at 00:49.
K0zi is offline   Reply With Quote
Old 2nd December 2008, 00:47   #631  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by K0zi View Post
So, should I use higher strengths for grainy movies then?
Or the amount of grain isn't the only factor here and to find the "most appropriate" settings I need to run hundreds of tests each time?
Well, you'll have to find the value that preserves as much grain as possible without adding new annoying artifacts. It's a trade-off...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 26th January 2009, 10:55   #632  |  Link
vucloutr
Registered User
 
vucloutr's Avatar
 
Join Date: Nov 2008
Posts: 64
Quote:
Originally Posted by Dark Shikari View Post
Quote:
Originally Posted by MasterNobody View Post
Probably deadzones are used even with trellis=2 because trellis is used only for luma plane compression, and not used for chroma planes.
This is correct.

Also note that deadzones are used for RDO when trellis=1, and even in trellis=2, deadzones are used for B-frames unless b-rdo is enabled. Finally, even if RDO is on all frametypes, deadzones are still used for fast P-skip decision.
regarding to this http://git.videolan.org/?p=x264.git;...0adca2f4ea8fa2 trellis is nowadaystrellis also used for chroma plane compression. (?)

so with --trellis 2, --subme 9 (RDO on all frames) and --no-fast-pskip deadzones is not used, correct ?
vucloutr is offline   Reply With Quote
Old 26th January 2009, 11:01   #633  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by vucloutr View Post
regarding to this http://git.videolan.org/?p=x264.git;...0adca2f4ea8fa2 trellis is nowadaystrellis also used for chroma plane compression. (?)

so with --trellis 2, --subme 9 (RDO on all frames) and --no-fast-pskip deadzones is not used, correct ?
Sounds correct.

This means that if I combine that with QPRD and lambda-based AQ, the entire encoder from top to bottom can be based off lambda values...
Dark Shikari is offline   Reply With Quote
Old 26th January 2009, 11:36   #634  |  Link
vucloutr
Registered User
 
vucloutr's Avatar
 
Join Date: Nov 2008
Posts: 64
seems like a mighty plot although i dont know what it means^^

thanks for that quick answer.
vucloutr is offline   Reply With Quote
Old 10th September 2009, 13:35   #635  |  Link
Soshen
Registered User
 
Join Date: Oct 2003
Posts: 45
To you think that a low psy like 0.60 are good for anime?
Soshen is offline   Reply With Quote
Old 10th September 2009, 13:45   #636  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by Soshen View Post
To you think that a low psy like 0.60 are good for anime?
You can assume that there's a reason why "--tune animation" will lower Psy-RD strength to 0.4
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 11th September 2009, 18:24   #637  |  Link
Soshen
Registered User
 
Join Date: Oct 2003
Posts: 45
Yeah but i made a test and at bitrate 1400 the output was better with 1.0 than 0.4.

I've changed only psy value in the tests and there are so mutch differences: the test with psy-rd 0.4 have so mutch more compression artifacts.

(offcourse i use trellis = 2, ME=multi hex and subpixels refinem. = 07 RD on all frames)
Soshen is offline   Reply With Quote
Old 11th September 2009, 18:30   #638  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
just because in one case the value you choose is better does not mean it's better for all cases.
__________________
custom x264 builds & patches | F@H | My Specs
kemuri-_9 is offline   Reply With Quote
Old 12th September 2009, 06:37   #639  |  Link
creamyhorror
Registered User
 
Join Date: Mar 2008
Posts: 118
Quote:
Originally Posted by Soshen View Post
I've changed only psy value in the tests and there are so mutch differences: the test with psy-rd 0.4 have so mutch more compression artifacts.
Is your animation very grainy/detailed? Maybe you can post a few comparison frames?
creamyhorror is offline   Reply With Quote
Old 12th September 2009, 18:04   #640  |  Link
Soshen
Registered User
 
Join Date: Oct 2003
Posts: 45
Well is a new anime dvd version. I encode from original vobs.

I made test with 3 different dvd source.

Real Drive, Ponyo, Nodame Cantabile.

In all 3 test psy rd 0.40 increase the number of compression artifacts specially in dark area or in areas with high contrast, like clots borders.

Maybe with sar encoding have it some problems?
Soshen is offline   Reply With Quote
Reply

Tags
psy-rd, psyrdo

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 23:12.


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