pass properties to gst_caps_from_string()

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

pass properties to gst_caps_from_string()

kilamski
I can pass "capabilities" such as width, height or framerate to
gst_caps_from_string() but no element "properties" such as quality

example:

GstCaps *caps;
GstSample *from_sample, *to_sample;
caps = gst_caps_from_string("image/jpeg, quality=99"); *//doesn't work!*
to_sample = gst_video_convert_sample (from_sample, caps,
GST_CLOCK_TIME_NONE, &err);

Please help



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: pass properties to gst_caps_from_string()

Sebastian Dröge-3
On Fri, 2019-06-21 at 02:53 -0500, kilamski wrote:
> I can pass "capabilities" such as width, height or framerate to
> gst_caps_from_string() but no element "properties" such as quality

Caps and properties are not the same. You can't pass properties via
caps.

Caps only describe the concrete media format, independent of any
elements. Properties are configuration of a specific element.

gst_video_convert_sample() does not allow configuring element
properties for the encoder currently. Can you create a feature request
issue for that in GitLab?

--
Sebastian Dröge, Centricular Ltd · https://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment