gst-inspect and g_object_set() for properties

Natanael Mojica neithanmo at gmail.com
Fri Oct 30 21:56:18 PDT 2015


Hi gstreamers

I can to list the properties of a any object,  for example x264enc using
gst-inspect-1.0 + "element name", but when i use the g_object_set(), for
set the especific properties for a object, i got(using x264enc):


    g_object_set(this->x264enc, "bitrate", 10000, "key-int-max", 60,
"bframes", 0, "byte-stream", false, "aud", true, "tune",
"zerolatency",

                 "threads", 0, "speed-preset", 2);


###################errors ########################################

(gstvideo:20027): GLib-GObject-WARNING **: value "((GstX264EncTune)
Still image | Fast decode | 4267832)" of type 'GstX264EncTune' is
invalid or out of range for property 'tune' of type 'GstX264EncTune'


(gstvideo:20027): GLib-GObject-WARNING **: g_object_set_valist: object
class 'GstX264Enc' has no property named '_ZNK8QVariant5toIntEPb'


####################################################################


but with gst-inspect-1.0:



  tune                : Preset name for non-psychovisual tuning options
                        flags: readable, writable
                        Flags "GstX264EncTune" Default: 0x00000000, "(none)"
                           (0x00000001): stillimage       - Still image
                           (0x00000002): fastdecode       - Fast decode
                           (0x00000004): zerolatency      - Zero latency


is equivalent the gst-inspect values and propertis with valist in the c code?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151030/5dcf8b28/attachment.html>


More information about the gstreamer-devel mailing list