setting format for rawvideoparse

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

setting format for rawvideoparse

yair
trying to pass arguments to rawvideoparse,
g_object_set (G_OBJECT (parse), "format", "rgb888": , NULL);

getting this. 

 GLib-GObject-WARNING **: 13:32:32.332: value "((GstVideoFormat) 1967134597)" of type 'GstVideoFormat' is invalid or out of range for property 'format' of type 'GstVideoFormat'

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

Re: setting format for rawvideoparse

Nicolas Dufresne-5
Le jeudi 26 mars 2020 à 13:33 +0200, Yair Reshef a écrit :
> trying to pass arguments to rawvideoparse,
> g_object_set (G_OBJECT (parse), "format", "rgb888": , NULL);
>
> getting this.
>
>  GLib-GObject-WARNING **: 13:32:32.332: value "((GstVideoFormat) 1967134597)" of type 'GstVideoFormat' is invalid or out of range for property 'format' of type 'GstVideoFormat'

rgb888 is not a valid format name. From the name you have used, perhaps
you wanted 24bit packed rgb ? This is simply mapped to "rgb".

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

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

Re: setting format for rawvideoparse

yair
In reply to this post by yair
thanks,
anything i place there is invalid. it think there is some conversion
missing'


  g_object_set (G_OBJECT (parse), "format", "rgb" , NULL);



--
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: setting format for rawvideoparse

yair

looking at the source i see

  g_object_class_install_property (object_class,
      PROP_FORMAT,
      g_param_spec_enum ("format",
          "Format",
          "Format of frames in raw stream",
          GST_TYPE_VIDEO_FORMAT,
          DEFAULT_FORMAT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)
      );

but cant find what  GST_TYPE_VIDEO_FORMAT  is
plugging formats[1] doesnt work 
im missing something trivial

[1]  https://gstreamer.freedesktop.org/documentation/video/video-format.html#members-1

On Thu, Mar 26, 2020 at 7:49 PM yair <[hidden email]> wrote:
thanks,
anything i place there is invalid. it think there is some conversion
missing'


  g_object_set (G_OBJECT (parse), "format", "rgb" , NULL);



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: setting format for rawvideoparse

yair
ok..
had to call them by their id number as specified in the link above.
  g_object_set (G_OBJECT (parse), "format", 25 , NULL)





On Thu, Mar 26, 2020 at 8:16 PM Yair Reshef <[hidden email]> wrote:

looking at the source i see

  g_object_class_install_property (object_class,
      PROP_FORMAT,
      g_param_spec_enum ("format",
          "Format",
          "Format of frames in raw stream",
          GST_TYPE_VIDEO_FORMAT,
          DEFAULT_FORMAT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)
      );

but cant find what  GST_TYPE_VIDEO_FORMAT  is
plugging formats[1] doesnt work 
im missing something trivial

[1]  https://gstreamer.freedesktop.org/documentation/video/video-format.html#members-1

On Thu, Mar 26, 2020 at 7:49 PM yair <[hidden email]> wrote:
thanks,
anything i place there is invalid. it think there is some conversion
missing'


  g_object_set (G_OBJECT (parse), "format", "rgb" , NULL);



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: setting format for rawvideoparse

Nicolas Dufresne-5
In reply to this post by yair
Le jeudi 26 mars 2020 à 12:49 -0500, yair a écrit :
> thanks,
> anything i place there is invalid. it think there is some conversion
> missing'
>
>
>   g_object_set (G_OBJECT (parse), "format", "rgb" , NULL);

As per gst-inspect-1.0, type is:

  Enum "GstVideoFormat"

Sorry fo rmissing that, so you need to pass GST_VIDEO_FORMAT_RGB (make sure you
have the right include and that gstreamer-video-1.0 library is included).
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: setting format for rawvideoparse

yair
yesss adding
#include <gst/video/video.h> and gstvideo_dep =
dependency('gstreamer-video-1.0')
to meson.build made vscode happy



On Thu, Mar 26, 2020 at 9:31 PM Nicolas Dufresne <[hidden email]> wrote:

>
> Le jeudi 26 mars 2020 à 12:49 -0500, yair a écrit :
> > thanks,
> > anything i place there is invalid. it think there is some conversion
> > missing'
> >
> >
> >   g_object_set (G_OBJECT (parse), "format", "rgb" , NULL);
>
> As per gst-inspect-1.0, type is:
>
>   Enum "GstVideoFormat"
>
> Sorry fo rmissing that, so you need to pass GST_VIDEO_FORMAT_RGB (make sure you
> have the right include and that gstreamer-video-1.0 library is included).
> >
> >
> > --
> > Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel