v4l2src & GstGLUpload (was: White frames with v4l2 source & GstGLUploadElement)

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

v4l2src & GstGLUpload (was: White frames with v4l2 source & GstGLUploadElement)

Gottfried Haider
Hello all,

I've managed to narrow down the issue I described yesterday - so posting again, in the hope that someone has an idea:

Running testegl.c from gst-omx [1] with the playbin uri set to v4l2:///dev/video0 only renders a black cube.

Is this expected? I am running GStreamer 1.8.1. Running testegl.c with a video file works just fine, as does playing back /dev/video0 via gst-launch-1.0 - which does include a GLUpload & GLImageSink for me as well, btw.


Changes to testegl.c that I have attempted:
* using GST_PLAY_FLAG_VIDEO instead GST_PLAY_FLAG_NATIVE_VIDEO
* adding format=RGBA to the capsfilter
* removing the max-lateness property from the fakesink caps


Here is the resulting pipeline:

Compared to "gst-launch-1.0 playbin uri=v4l2:///dev/video0":


Thanks in advance
Gottfried


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

Re: v4l2src & GstGLUpload (was: White frames with v4l2 source & GstGLUploadElement)

Matthew Waters
On 28/04/16 06:40, Gottfried Haider wrote:

> Hello all,
>
> I've managed to narrow down the issue I described yesterday - so
> posting again, in the hope that someone has an idea:
>
> Running testegl.c from gst-omx [1] with the playbin uri set to
> v4l2:///dev/video0 only renders a black cube.
>
> Is this expected? I am running GStreamer 1.8.1. Running testegl.c with
> a video file works just fine, as does playing back /dev/video0 via
> gst-launch-1.0 - which does include a GLUpload & GLImageSink for me as
> well, btw.
>
>
> Changes to testegl.c that I have attempted:
> * using GST_PLAY_FLAG_VIDEO instead GST_PLAY_FLAG_NATIVE_VIDEO
> * adding format=RGBA to the capsfilter
> * removing the max-lateness property from the fakesink caps
Which version of testegl.c did you use?  You need git master of gst-omx
for the latest (>= 1.8) changes to libgstgl.

Cheers
-Matt

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

signature.asc (484 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: v4l2src & GstGLUpload (was: White frames with v4l2 source & GstGLUploadElement)

Gottfried Haider
Hi Matt,

I used current git master of from gst-omx [1] and tag 1.8.1 for gstreamer & gst-plugins-bad.

Gottfried


On Thu, Apr 28, 2016 at 7:27 AM, Matthew Waters <[hidden email]> wrote:
On 28/04/16 06:40, Gottfried Haider wrote:
> Hello all,
>
> I've managed to narrow down the issue I described yesterday - so
> posting again, in the hope that someone has an idea:
>
> Running testegl.c from gst-omx [1] with the playbin uri set to
> v4l2:///dev/video0 only renders a black cube.
>
> Is this expected? I am running GStreamer 1.8.1. Running testegl.c with
> a video file works just fine, as does playing back /dev/video0 via
> gst-launch-1.0 - which does include a GLUpload & GLImageSink for me as
> well, btw.
>
>
> Changes to testegl.c that I have attempted:
> * using GST_PLAY_FLAG_VIDEO instead GST_PLAY_FLAG_NATIVE_VIDEO
> * adding format=RGBA to the capsfilter
> * removing the max-lateness property from the fakesink caps

Which version of testegl.c did you use?  You need git master of gst-omx
for the latest (>= 1.8) changes to libgstgl.

Cheers
-Matt

> Here is the resulting pipeline:
> http://sukzessiv.net/~gohai/gstreamer/testegl-v4l.png
> <http://sukzessiv.net/%7Egohai/gstreamer/testegl-v4l.png>
>
> Compared to "gst-launch-1.0 playbin uri=v4l2:///dev/video0":
> http://sukzessiv.net/~gohai/gstreamer/gst-launch-v4l.png
> <http://sukzessiv.net/%7Egohai/gstreamer/gst-launch-v4l.png>


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