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 > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th January 2019, 03:07   #1  |  Link
TomArrow
Registered User
 
Join Date: Dec 2017
Posts: 24
Plugin for displaying H264 quantization multiplier on a per-block basis?

I was wondering if there was a way to load an h264 file in such a way that not the image is displayed, but rather the quantization multiplier of each block is displayed visually, so that you could do the following:

A.) Optimize bit allocation if you are an encoder

B.) Combine two different encodes of the same source for maximum quality

My main desire is B. Imagine you have the same source, but two different encodes. Of course you can just average them out or Median if you have more than 2.

But that isn't really taking the potential quality to the limit I think. If you could display the bit allocation/quantization multiplier visually for each encode, you could create masks out of that information with a bit of extra processing and then simply use the better looking blocks with more allocated bits from each encode, combining both encodes for maximum quality.

Of course I'm not sure how well that would work in encodes made using strong psy-rd or other psychovisual algorithms, but I think it's worth a try nonetheless.

Last edited by TomArrow; 15th January 2019 at 08:47. Reason: Spelling mistake
TomArrow is offline   Reply With Quote
Old 15th January 2019, 16:51   #2  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,093
Quote:
Originally Posted by TomArrow View Post
B.) Combine two different encodes of the same source for maximum quality
This post might be of some interest to you: https://forum.doom9.org/showthread.p...23#post1770623
Reel.Deel is offline   Reply With Quote
Old 15th January 2019, 16:55   #3  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,649
One way to display the mb quantizers as numbers in an overlay is to use ffdshow as the directshow decoder (e.g. construct a graphstudio/graphedit graph), enable ffdshow's quantizer visualization , and use directshowsource in avisynth referencing the graph . But it's just an overlay , you cannot pull the actual numbers or use them in calculations

Any general approach or plugin would need access at the decoder level. By the time it passes the source filter, it's uncompressed data.
poisondeathray is offline   Reply With Quote
Reply

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 23:05.


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