Closed MarkGhanz closed 6 months ago
There should have been a log with settings attached for such a report.
Defaults with neither version are tuned for OBS. You will need to know about these settings and set them to your use case. As they are two different encoders their settings may be quite different. 1080p60 seemed fine to me. Everything else you probably would have to report to GStreamer.
For my own tracking: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1991
Thanks for taking it upstream!
Ive been testing the new encoder a fair bit and here are the tips i can give
@Big-FG thanks for the investigation.
Note that the entire point of CQP is to have a variable bitrate but relatively constant quality given the content.
If you had a video with a few seconds of high movement and then a few seconds of a static image, those sections would require wildly different bitrates. With CBR, they'd get the same bitrate however; making the high-movement scene look pretty bad and the static image not much better.
CQP is for recordings where the exact bitrate at any given time doesn't matter much (but average bitrate does to a degree) and CBR for streaming where both current and average need to be relatively stable.
@Big-FG thanks for the investigation.
Note that the entire point of CQP is to have a variable bitrate but relatively constant quality given the content. If you had a video with a few seconds of high movement and then a few seconds of a static image, those sections would require wildly different bitrates. With CBR, they'd get the same bitrate however; making the high-movement scene look pretty bad and the static image not much better.
CQP is for recordings where the exact bitrate at any given time doesn't matter much (but average bitrate does to a degree) and CBR for streaming where both current and average need to be relatively stable.
Im aware, but what i mean by "go pretty nuts" is itll suddenly shoot to hundreds of megabits per second and overload the encoder in situations it really shouldnt be. The issue is acknowledged in the post just before mine and ive even experienced it to a lesser degree at lower resolutions.
The encoder simply behaves better with CBR at the moment with H.265 especially if youre recording 4k. I was recording 720p 60fps at CQP 24 and it was spiking in excess of 100mb/s which I dont have happen on AMF, the Old Encoder, or the old OBS patch for HEVC. Its to be expected on a brand new encoder still in the works, at least on 720p/1080p CQP doesnt seem to go crazy too often. 4k seems to really suffer from it the most unfortunately for those who record in it.
Interesting. Not sure that has anything to do with this add-on as it simply uses/configures the gstreamer VAAPI encoder whose responsibility it is to implement things like CQP. That might happen one step further down actually, in mesa.
As a workaround, I believe you can set a reasonable bitrate limit.
Interesting. Not sure that has anything to do with this add-on as it simply uses/configures the gstreamer VAAPI encoder whose responsibility it is to implement things like CQP. That might happen one step further down actually, in mesa.
As a workaround, I believe you can set a reasonable bitrate limit.
i didnt say it was related to the plugin, its and upstream issue please track the progress in the linked issue above like i mentioned previously.
Closing this. No idea what the exact status is, but if there is still something wrong it sounds like an upstream issue.
Is there a better setting for h265? The default setting can easily overload the encoder and output a video of bitrate several hundred mbps if setting the bitrate to 0 (auto calculate). But H265(legacy) and the h265 option from obs-gstreamer plugin works fine. Can it be a regression of gstreamer?
Graphics Card: RX 7900 XT Mesa version: 23.0.0 gstreamer vaapi version: 1.22.0 OS: Arch Linux Kernel Version: 6.2.1 OBS Version: 29.0.2