goldenpi
5th September 2011, 18:04
I've been dabbling in a little project of late, and while I know it's probably worthless, I would like to hear the thoughts of some people more knowledgeable on video encoding than me.
http://birds-are-nice.me/programming/ponymath.shtml
It's a very basic script. You give it a video, and it encodes it lots of times with x264 - always at the same bitrate, each time varying just the deblocking parameters. Then it draws a graph showing how the SSIM changes with the deblocking, so you can see exactly which values are best for that particular video and settings.
Actually, it suggests 0,0 on almost all video. Turns out the defaults are actually pretty good in most cases. It's only if you're doing very low bitrates (streaming and such) or animation that this might come in handy, and even then the improvement in SSIM I've been able to achieve from fine-tuning deblocking alone is miniscule. It's just a research project, rather than a tool for serious use, but I thought some here might find it interesting or have some insights into other uses for it. If nothing else, anyone who knows even the tiniest bit of perl can easily modify this in order to graph the effect of varying other parameters. It even supports resuming if the many-hours-long task of multiple encodes is interrupted.
http://birds-are-nice.me/programming/ponymath.shtml
It's a very basic script. You give it a video, and it encodes it lots of times with x264 - always at the same bitrate, each time varying just the deblocking parameters. Then it draws a graph showing how the SSIM changes with the deblocking, so you can see exactly which values are best for that particular video and settings.
Actually, it suggests 0,0 on almost all video. Turns out the defaults are actually pretty good in most cases. It's only if you're doing very low bitrates (streaming and such) or animation that this might come in handy, and even then the improvement in SSIM I've been able to achieve from fine-tuning deblocking alone is miniscule. It's just a research project, rather than a tool for serious use, but I thought some here might find it interesting or have some insights into other uses for it. If nothing else, anyone who knows even the tiniest bit of perl can easily modify this in order to graph the effect of varying other parameters. It even supports resuming if the many-hours-long task of multiple encodes is interrupted.