After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 742757 - vtenc_h264 ignores 'quality' setting
vtenc_h264 ignores 'quality' setting
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
1.4.5
Other Mac OS
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-01-11 14:11 UTC by Denis
Modified: 2018-11-03 13:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Denis 2015-01-11 14:11:43 UTC
I’ve found an issue in the vtenc.c when the ‘quality’ setting doesn’t get set for the VTCompressionSession object because self->session is not yet set within the gst_vtenc_create_session(). The fix is to replace

gst_vtenc_set_quality (self, self->quality);

with

gst_vtenc_session_configure_property_double (self, session,
kVTCompressionPropertyKey_Quality, self->quality);

which will also remove redundant lock on self if gst_vtenc_set_quality is called. Diff file attached.
Comment 1 Denis 2015-01-11 15:06:17 UTC
With the described change i'm seeing the VTSessionSetProperty is invoked but the returned status (-12900) seems to still indicate error.
Comment 2 Sebastian Dröge (slomo) 2015-01-11 15:28:00 UTC
You forgot to attach the actual patch :) It should ideally also be in "git format-patch" format.
Comment 3 Denis 2015-01-11 16:19:10 UTC
Looks like the proposed change isn't sufficient (see comment above about VTSessionSetProperty error). I'll attach the diff when i figure out why it's not working
Comment 4 Denis 2015-01-11 18:19:41 UTC
Eventually from the VT api description ("Some encoders, such as JPEG, describe the compression level of each image with a quality value.") looks like 'quality' is not applicable for the h264 codec so the module documentation is misleading and 'quality' parameter should be removed from vtenc_h264. '-12900' code actually means 'property not supported'.
Comment 5 GStreamer system administrator 2018-11-03 13:29:47 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/203.