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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 10th April 2006, 21:53   #21  |  Link
jellysandwich
Registered User
 
Join Date: Mar 2004
Posts: 247
Would someone mind posting a few screenshot examples? I tried doing a test on a small clip, but I can't really tell any differences... I think I'm picking bad scenes or something.

js
jellysandwich is offline   Reply With Quote
Old 10th April 2006, 22:37   #22  |  Link
akupenguin
x264 developer
 
akupenguin's Avatar
 
Join Date: Sep 2004
Posts: 2,392
http://forum.doom9.org/showthread.ph...115#post689115
akupenguin is offline   Reply With Quote
Old 31st March 2010, 17:23   #23  |  Link
lovelove
Registered User
 
Join Date: Mar 2010
Posts: 106
Quote:
Originally Posted by *.mp4 guy View Post
...Threshold Parameter refers to Beta Deblocking (Alpha and Beta Deblocking are the official names). [...]

Lower values of Beta Deblocking apply less deblocking to more flat blocks with details present (but more deblocking to blocks without details), while Higher values cause more deblocking to be applied to less flat blocks with details present.
If beta deblocking is indeed a treshold parameter, then your abovementioned explanation is wrong. A treshold is not gradual but a specific level/value dividing the basic set in two subsets: all values below the treshold and all values above the treshold. Now given a function with 2 parameters (strength and threshold), 'strength' will be applied to all values below (or above) the threshold.

Thus the correct explanation is (assuming the parameters work as you describe, which I have NOT tested in practice):

Code:
Deblocking is applied with alpha strength to blocks with less detail than the (beta) threshold. 

Therefore:
The higher the alpha parameter, the higher the deblocking strength applied.
The higher the beta parameter, the more blocks are deblocked (namely with strength alpha).

PS: In order for your explanation to be more correct, you would have to replace all red words above (i.e. "less deblocking" and "more deblocking") by "deblocking with alpha strength". But then you are still contradicting yourself when saying "to more flat blocks with details present" vs. "to less flat blocks with details present". So I would stick to my shorter and correct version ;-)

EDIT: having read the remainder of the thread, I add that DarkZell666 gives the same (correct) explanation.

Last edited by lovelove; 31st March 2010 at 17:42.
lovelove is offline   Reply With Quote
Old 12th April 2010, 17:02   #24  |  Link
infoeater
Registered User
 
Join Date: May 2007
Posts: 53
Quote:
Originally Posted by *.mp4 guy View Post
(...)more flat blocks with details present(...)
Is it antagonism or deblocking filter has some other method to measure amount of details then flatness?
infoeater is offline   Reply With Quote
Old 29th August 2014, 14:26   #25  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Does --deblock require the existence of conventional block sizes (like 8x8) to work properly? Or does it work as effectively on upscaled material too? (with still some visible blocking, but with what would now be larger, non-standard block sizes).

Thanks.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 29th August 2014, 14:38   #26  |  Link
Andouille
Registered sausage
 
Andouille's Avatar
 
Join Date: May 2012
Posts: 78
Quote:
Originally Posted by asarian View Post
Does --deblock require the existence of conventional block sizes (like 8x8) to work properly? Or does it work as effectively on upscaled material too? (with still some visible blocking, but with what would now be larger, non-standard block sizes).

Thanks.
x264's "deblock" does not filter your blocky source. It is a part of the encoding.
So resolution does not matter.
Andouille is offline   Reply With Quote
Old 29th August 2014, 14:46   #27  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by Andouille View Post
x264's "deblock" does not filter your blocky source. It is a part of the encoding.
So resolution does not matter.
Not sure I fully understand the answer. Obviously x264 does deblocking on what invariably takes my source for input, right?

Or are you saying it does not look at the source per se to deblock, but just generally deblocks on what it encodes? (Which would still leave me with a deblocked movie, right?)
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 29th August 2014, 15:56   #28  |  Link
detmek
Registered User
 
Join Date: Aug 2009
Posts: 463
X264 divides image into diferent block sizes, 16x16, 8x8, 4x4. Internal deblocking deblocks these macroblocks to prevent hard edges between those, and in general to prevent blocking as a result of encoding. It also removes a bit of details and makes picture softer when used with higher values. It does not remove blocking from source. Usd avisynth deblock or unblock plugin if you want to deblock source.
Read first post for more detailed explanation.

Last edited by detmek; 29th August 2014 at 16:04.
detmek is offline   Reply With Quote
Old 29th August 2014, 16:32   #29  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by detmek View Post
X264 divides image into diferent block sizes, 16x16, 8x8, 4x4. Internal deblocking deblocks these macroblocks to prevent hard edges between those, and in general to prevent blocking as a result of encoding. It also removes a bit of details and makes picture softer when used with higher values. It does not remove blocking from source. Usd avisynth deblock or unblock plugin if you want to deblock source.
Read first post for more detailed explanation.
Ah, thank you! It's a lot more clear now.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 13th April 2015, 02:32   #30  |  Link
Thunderbolt8
Registered User
 
Join Date: Sep 2006
Posts: 2,197
what are the deblocking effects on encoding speed? is it logical to assume that the lowest values -3;-3 are fastest, because the least amount of deblocking is applied then?
__________________
Laptop Lenovo Legion 5 17IMH05: i5-10300H, 16 GB Ram, NVIDIA GTX 1650 Ti (+ Intel UHD 630), Windows 10 x64, madVR (x64), MPC-HC (x64), LAV Filter (x64), XySubfilter (x64) (K-lite codec pack)

Last edited by Thunderbolt8; 13th April 2015 at 02:35.
Thunderbolt8 is offline   Reply With Quote
Old 13th April 2015, 20:09   #31  |  Link
foxyshadis
Angel of Night
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
Depends on high low your crf and how high your rd level is. The more blocks with quants below or barely above the deblocking threshold, the less get deblocked. The higher your rd level, the more times each block is checked, so the more helpful less deblocking is. Any benchmarks will be heavily weighted toward the video and settings you use, but will be a rather small part of the overall speed.

You can actually go all the way down to -6,-6, at which point you might as well just turn deblocking off completely.
foxyshadis is offline   Reply With Quote
Old 16th January 2017, 08:05   #32  |  Link
Lathe
Registered User
 
Lathe's Avatar
 
Join Date: Aug 2005
Posts: 1,100
Deblocking vs. bitrate used...

Sort of along the topic of this thread...

If I lower the deblock settings and slightly raise the Psy Trellis, this is pretty much encoding at high bitrates with Blu-rays using a CRF around 20 and x264 settings around 'Slow', does that increase the amount of bitrate used and thus increase the file size?

Say I use a setting of --deblock -3:-3 --psy-rd 1.00:0.25, will this inherently raise the amount of bitrate 'needed' while encoding and thus increase the overall resulting file size?

Thanks!

***EDIT

Hmmm, well, I THINK I got the answer to my question here from reading a few more threads. Apparently, YES, the bitrate will indeed go up even using --tune film according to other threads, so -3, -3 AND raising the Psy Trellis is BOUND to increase it even more, I guess...

I was bloody wondering WHY my encodes were coming out so big...

Last edited by Lathe; 16th January 2017 at 08:28. Reason: More stuff...
Lathe is offline   Reply With Quote
Old 1st January 2022, 14:56   #33  |  Link
Kill3rWolf
Registered User
 
Join Date: Aug 2021
Posts: 27
Quote:
Originally Posted by Lathe View Post
Sort of along the topic of this thread...

If I lower the deblock settings and slightly raise the Psy Trellis, this is pretty much encoding at high bitrates with Blu-rays using a CRF around 20 and x264 settings around 'Slow', does that increase the amount of bitrate used and thus increase the file size?

Say I use a setting of --deblock -3:-3 --psy-rd 1.00:0.25, will this inherently raise the amount of bitrate 'needed' while encoding and thus increase the overall resulting file size?

Thanks!

***EDIT

Hmmm, well, I THINK I got the answer to my question here from reading a few more threads. Apparently, YES, the bitrate will indeed go up even using --tune film according to other threads, so -3, -3 AND raising the Psy Trellis is BOUND to increase it even more, I guess...

I was bloody wondering WHY my encodes were coming out so big...
Could you explain more about how you got your answers & your test results? What about animation film x265 encoding? Deblock=1:-3:-3 can be used?
Kill3rWolf is offline   Reply With Quote
Old 3rd January 2022, 16:30   #34  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by Kill3rWolf View Post
Could you explain more about how you got your answers & your test results? What about animation film x265 encoding? Deblock=1:-3:-3 can be used?
Note the post you responded to was nearly 5 years ago.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner 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 08:21.


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