Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: Nicogigo on November 19, 2019, 04:16:14 PM

Title: Quantizer curve compression option disabled
Post by: Nicogigo on November 19, 2019, 04:16:14 PM
Hello,

When I use x264 under avidemux, I cannot adjust the option "quantizer curve compression". The option is disabled. Do you know how to activate it?

Thank you.
Title: Re: Quantizer curve compression option disabled
Post by: eumagga0x2a on November 19, 2019, 09:32:50 PM
You would need to implement it (is it really needed?). There is no code behind the related widgets apart from the line which takes care of disabling it (https://github.com/mean00/avidemux2/blob/master/avidemux_plugins/ADM_videoEncoder/x264/qt4/Q_x264.cpp#L465).
Title: Re: Quantizer curve compression option disabled
Post by: Nicogigo on November 20, 2019, 08:16:41 AM
Thank you for your answer but how can I go to the code?
Title: Re: Quantizer curve compression option disabled
Post by: eumagga0x2a on November 20, 2019, 08:36:58 AM
First of all, you need either a Linux installation or macOS with Homebrew, install git, then clone Avidemux source:
git clone https://github.com/mean00/avidemux2.git
The plugin is in avidemux2/avidemux_plugins/ADM_videoEncoder/x264
You will need to extend config, i. e. edit x264_encoder. conf and regenerate the header, the description and the json executing the admSerialization.py script in the x264 directory with conf as argument. The Qt code resides in the qt4 subdirectory, the translation to libx264 parameters in ADM_x264Setup.cpp.

Of course, you should be somewhat fluent in C++.
Title: Re: Quantizer curve compression option disabled
Post by: Nicogigo on November 20, 2019, 11:18:05 AM
Unfortunalty, I am not fluent in C++ and I have a PC with windows 10. Anyway, I try it. If I cannot, maybe I try to get a older version of avidemux that allow the option or I don't use this option. I will decide...

Thank you for your help.
Title: Re: Quantizer curve compression option disabled
Post by: eumagga0x2a on November 20, 2019, 11:59:44 AM
Quote from: Nicogigo on November 20, 2019, 11:18:05 AM
maybe I try to get a older version of avidemux that allow the option

Are you sure this option ever existed in an older version?

Native built of Avidemux on Windows is possible, but immensely complicated (I haven't mastered it yet). It is easier to setup environment to build just common plugins (http://avidemux.org/admWiki/doku.php?id=build:devel_2.6_msvc) (please be warned that -DCMAKE_BUILD_TYPE=Release doesn't work), but here you will need Qt too (and x264 with headers, of course). Linux setup is much, much easier and very straightforward.
Title: Re: Quantizer curve compression option disabled
Post by: Nicogigo on November 20, 2019, 12:11:40 PM
This option exist in the 2.5 version. But unfortunatly, with the same parameters, the quality is much less than the newest version. So, this is not so interesting to work with the 2.5 version. I don't know why they desactivated this option...