Possible to add qp settings back to export encoder settings as export quality control?

In video ai 2.x, it used be able to switch to use qp to control the export quality. The bitrate waste storage space on scenes with less motions, and loss quality on secens with too many motions.
With nvidia encoder, using the qp has a much better quality with the same file size. Is it possible to add it back for H.265 encoder (nvidia) for the 3.x ?
I know that with ffmpeg with nvidia encoder if you only specify -cq and vbr, by default it gives very low bitrate.
Since now you are using ffmpeg, I hope that’s not the reason why you removed the qp option.
If that is the reason, then this problem can be circumvented by specifying the -bufsize, which I normally use 600M, and then it gives the correct bitrate output.

You can add custom entries to the encoders.json file at “C:\ProgramData\Topaz Labs LLC\Topaz Video AI\models”.

I made one that I use for everything, feel free to copy it and adjust to your liking:

  {
    "text": "NVENC HEVC QP 22",
    "encoder": "-c:v hevc_nvenc -rc constqp -qp 22 -pix_fmt yuv420p",
    "ext": [
      "mov",
      "mkv",
      "mp4"
    ],
    "transcode": "aac",
    "os": "windows",
    "device": "nvidia"
  },
1 Like

Interesting. Thanks, I will give it a try.

1 Like

@david.123 This working fine, until 3.3.2 is released, where the encoder profile is no more. Guess I will stick to 3.3.0 for a while.

To use it with new format of “video-encoders.json” add this:

  {
    "id": "h265-qp-win-nvidia",
    "encoder": "H265",
    "profile": "QP22",
    "ffmpegOpts": "-c:v hevc_nvenc -rc constqp -qp 22 -pix_fmt yuv420p -tag:v hvc1",
    "ext": [
      "mov",
      "mkv",
      "mp4"
    ],
    "transcode": "aac -b:a 320k -ac 2",
    "os": "windows",
    "device": "nvidia",
    "minSize": [129,129],
    "maxSize": [8192,8192],
    "maxBitDepth": 12
  },

And then make sure it’s selected as output format:

image

1 Like

you can read more about the encoder files changes since v3.3.1 in this post. even though this post is more aimed on how to add a certain lossless compression, but it provides you the background of the file structure and also how to add encoders to it.

1 Like