Log in

View Full Version : compression test filter


Forensic
24th May 2013, 17:38
I need a plug-in that I can call in AVISYNTH that returns the estimated resulting compressed file size of the video file passed to it. This would replace the need to encode MPEG4 within in VirtualDub (2.5) just to denote the displayed estimated resulting file size.

The reason is that I will create a script to automatically test dozens of denoising/degraining filter combinations to determine which produces the clearest result, and thus smallest file size. I do not mind, and actually prefer, if this filter ran through the entire encoding process (without writing anything to the hard drive) so it could return the most accurate final file size. Any suggestions?

mandarinka
25th May 2013, 15:58
It doesn't work like this. The effects of denoisers aren't straightforward like this - some denoising will for example result in smaller file when encoded at given crf, however the quality might be significantly worse than with another denoiser that might result in a bigger file at the same crf. x264 isn't at all guaranteed to always maintain a "given quality" when the input changes.

And that isn't even taking into account that different denoisers have vastly different impact on the visuals... (frequency smoothers cause banding etc).

Forensic
25th May 2013, 18:08
Thank you for your detailed response. To sum my response up in one word...."bummer".