vtenc: Do not set the CRF/Quality parameter with ProRes

It's not supported with ProRes, setting the property will fail.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7232>
This commit is contained in:
Nirbheek Chauhan 2024-07-27 06:52:49 +05:30 committed by GStreamer Marge Bot
parent cbadb0b4ae
commit fa25dd4de5

View file

@ -1609,8 +1609,9 @@ gst_vtenc_create_session (GstVTEnc * self)
gst_vtenc_session_configure_realtime (self, session, self->realtime);
gst_vtenc_session_configure_allow_frame_reordering (self, session,
self->allow_frame_reordering);
gst_vtenc_session_configure_property_double (self, session,
kVTCompressionPropertyKey_Quality, self->quality);
if (codec_details->format_id != GST_kCMVideoCodecType_Some_AppleProRes)
gst_vtenc_session_configure_property_double (self, session,
kVTCompressionPropertyKey_Quality, self->quality);
if (self->dump_properties) {
gst_vtenc_session_dump_properties (self, session);