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 > Capturing and Editing Video > VapourSynth

Thread Tools Search this Thread Display Modes
Old 10th September 2019, 21:01   #1  |  Link
Registered User
Join Date: Jan 2019
Location: Romania
Posts: 6
Question about F3KDB

Does anybody know why dither_algo=3 is ignored when output_depth=16?
AlucardSama04 is offline   Reply With Quote
Old 10th September 2019, 22:40   #2  |  Link
Registered User
Join Date: Dec 2002
Posts: 5,494
I think you misread the documentation:
1: No dithering, LSB is truncated
2: Ordered dithering
3: Floyd-Steinberg dithering


Visual quality of mode 3 is the best, but the debanded pixels may easily be destroyed by x264, you need to carefully tweak the settings to get better result.

Mode 1 and mode 2 donít look the best, but if you are encoding at low bitrate, they may be better choice since the debanded pixels is easier to survive encoding, mode 3 may look worse than 1/2 after encoding in this situation.

(Thanks sneaker_ger @ doom9 for pointing this out!)

This parameter is ignored if output_depth = 16.

10bit x264 command-line example:

avs2yuv -raw "script.avs" -o - | x264-10bit --demuxer raw --input-depth 16 --input-res 1280x720 --fps 24 --output "out.mp4" -
Or compile x264 with the patch on https://gist.github.com/1117711, and specify the script directly:

x264-10bit --input-depth 16 --output "out.mp4" script.avs
Default: 3

I.e. the third note says that "dither_algo" (ANY value) is ignored when output-depth is 16 bit. I assume that is because dithering is only needed when reducing the bitdepth and if f3kdb calculates in 16 bit (does it?) there is no reduction hence no dithering is applied. (Dithering and debanding are different things.)
sneaker_ger is offline   Reply With Quote
Old 11th September 2019, 00:12   #3  |  Link
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 621
I answered that once before.
Dithering is only used when converting down from 16 bit to lower bit depth.
For 16 bit output there's nothing to dither down, and thus the parameter is ignored.

(And yes, its internal bit depth is 16 bit for all calculates.)
MeteorRain is offline   Reply With Quote

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 15:48.

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