Custom Script Syntax Wrong? Bitrate Isn't Set - Different between v2.8.0 and 2.8.2

Started by Dave9, June 19, 2023, 08:05:24 PM

Previous topic - Next topic

Dave9

I've been using v2.8.0, and today tried 2.8.2 latest nightly.

I don't really know what I'm doing writing custom settings script files, but I had used the following (relevant portion copied from the script, not the entire script) on 2.8.0, yet on 2.8.2 it does not change the bitrate, instead stays at default 10000kb instead of setting 1400kb.  I can understand if I edited it wrong but not why it works in 2.8.0 but not 2.8.2?

adm.videoCodec("ffNvEncH264", "preset=5", "profile=2", "rc_mode=0", "quality=20", "bitrate=1400",\
"max_bitrate=20000", "gopsize=100", "bframes=0", "b_ref_mode=2", "lookahead=0", "aq_strength=1", \
"spatial_aq=False", "temporal_aq=False", "weighted_pred=True")

Edit:  Additionally, I replace the above with the following, and that does work on 2.8.2, but does not work on 2.8.0, now 2.8.0 stays at default 10000kb instead of using 1400kb:

adm.videoCodec("ffNvEncH264", "preset=5", "profile=2", "rc_mode=0", "quality=20", "bitrate=1400", "max_bitrate=20000", "gopsize=100", "refs=0", "bframes=0", "b_ref_mode=0", "lookahead=0", "aq_strength=1", "spatial_aq=False", "temporal_aq=False", "weighted_pred=False")

Is there a happy medium, a way to write the above and have it work on both 2.8.0 and 2.8.2?

eumagga0x2a

No scripting compatibility across releases should be expected, I'm sorry for resulting inconvenience.