Avidemux Forum

Avidemux => Windows => Topic started by: antipro on August 02, 2021, 04:02:07 PM

Title: How do I reset to default the "mpeg4 AVC (x264)" configuration custom preset?
Post by: antipro on August 02, 2021, 04:02:07 PM
Hi,
How do I reset to default the "mpeg4 AVC (x264)" configuration custom preset?
I've already unsuccessfully tried to uninstall avidemux, manually deleted the "appdata\roaming\avidemux" folder and re-install.


Reading this tutorial:
https://www.avidemux.org/admWiki/doku.php?id=tutorial:h.264
it specifies "The default quantizer value is 26." for the "QP Mode", but says nothing about the default "CRF Mode" Quality value.

whatever I do, I can't restore to default those two values. pls help.
Title: Re: How do I reset to default the "mpeg4 AVC (x264)" configuration custom preset?
Post by: eumagga0x2a on August 02, 2021, 05:13:42 PM
The default value for quality in CRF mode and for qp in constant quantizer mode for x264 in Avidemux is 20. If you change any encoder or muxer settings and save that as the default output configuration ("Edit" --> "Save current settings as default") then indeed, it looks like the only way to reset these settings is to manually delete "defaultSettings.py" in your Avidemux profile (the folder %appdata%\avidemux). In doubt, open Avidemux log file ("Help" --> "Advanced") and look for "defaultSettings.py".
Title: Re: How do I reset to default the "mpeg4 AVC (x264)" configuration custom preset?
Post by: eumagga0x2a on August 02, 2021, 05:19:41 PM
I think it is better you understand where the value comes from. The origin of 20 as the value for qz is this define (https://github.com/mean00/avidemux2/blob/e300ead70c77eb10dfa517ccf6853b341d99680b/avidemux_plugins/ADM_videoEncoder/x264/ADM_x264.h#L34) which is used to initialize the global variable x264Settings here (https://github.com/mean00/avidemux2/blob/e300ead70c77eb10dfa517ccf6853b341d99680b/avidemux_plugins/ADM_videoEncoder/x264/ADM_x264.cpp#L36). This part is hardcoded.
Title: Re: How do I reset to default the "mpeg4 AVC (x264)" configuration custom preset?
Post by: eumagga0x2a on August 02, 2021, 05:27:36 PM
Quote from: eumagga0x2a on August 02, 2021, 05:13:42 PMit looks like the only way to reset these settings is to manually delete "defaultSettings.py (//defaultsettings.py)" in your Avidemux profile

Actually no, just switch to the copy mode and save it as default. x264 configuration will be reset to its default upon Avidemux restart.
Title: Re: How do I reset to default the "mpeg4 AVC (x264)" configuration custom preset?
Post by: antipro on August 02, 2021, 05:43:21 PM
Quote from: eumagga0x2a on August 02, 2021, 05:13:42 PMThe default value for quality in CRF mode and for qp in constant quantizer mode for x264 in Avidemux is 20.

Quote from: eumagga0x2a on August 02, 2021, 05:27:36 PMjust switch to the copy mode and save it as default. x264 configuration will be reset to its default upon Avidemux restart.

ok thx!