http://forum.doom9.org/showthread.php?p ??? ost1386559First you'll need the dither plugins.
After that, it's a matter of doing
- Code: Select all
GradFun3(lsb=true)
Dither_convey_yuv4xxp16_on_yvxx()
Obviously, do adjust the debanding strength to what your source needs so to not over deband. As I recall, there should also be a script that basically dithers back to 10bit while keeping the bitdepth to 16 for a better quality dither to 10bit, but it seems it is a temporary solution before it gets implemented in the dither pack, so I'll refrain from posting it here.
After that, you need to pipe the script to x264 in order to tell it it's 16bit, unless you are using JEEB's patched x264, which has a patch to avoid the piping for easier usage. Here is how you pipe however (works even if you do use JEEB's patched build):
- Code: Select all
avs2yuv -raw "script.avs" -o - | x264-10bit --demuxer raw --input-depth 16 --input-res 1280x720 --fps 24000/1001 --output "output.mkv" -
Where script.avs is your avs, output.mkv is the file you want to get in output, 1280x720 is the resolution of what you had (the convey will make it twice the width) and the framerate is, well, your framerate. Do feel free to adjust the other settings as well as needed.