GST_MESSAGE_EOS with V4L2

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

GST_MESSAGE_EOS with V4L2

Andreas Volz
Hello,

I'm getting always an GST_MESSAGE_EOS after some time (some seconds up
to one minute) after streaming from my V4L2 webcam.

Here is the demo application:

http://codepad.org/jtY0RTWs

Here is the output:

http://codepad.org/7JmtXcHj

Please notice line 39:

  "End-of-stream"

and before the log in line 37:

  <v4l2src0> pausing after gst_base_src_get_range() = unexpected

If I use this call I don't have such problems:

  gst-launch v4l2src ! glimagesink

So maybe something with the configuration of the pipeline in my example
is wrong.

Do you've any ideas what's wrong with my example?

regards
        Andreas

--
Technical Blog <http://andreasvolz.wordpress.com/>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GST_MESSAGE_EOS with V4L2

Andreas Volz
Am Sat, 25 Jun 2011 23:44:09 +0200 schrieb Andreas Volz:

Hello,

while inspecting another example I found out that after commenting out
this line it works without EOS message:

g_object_set(G_OBJECT(videosrc), "num-buffers", 400, NULL);

Is setting buffers for a V4L2 source in general "wrong" or is this a
bug?

regards
        Andreas

> Hello,
>
> I'm getting always an GST_MESSAGE_EOS after some time (some seconds up
> to one minute) after streaming from my V4L2 webcam.
>
> Here is the demo application:
>
> http://codepad.org/jtY0RTWs
>
> Here is the output:
>
> http://codepad.org/7JmtXcHj
>
> Please notice line 39:
>
>   "End-of-stream"
>
> and before the log in line 37:
>
>   <v4l2src0> pausing after gst_base_src_get_range() = unexpected
>
> If I use this call I don't have such problems:
>
>   gst-launch v4l2src ! glimagesink
>
> So maybe something with the configuration of the pipeline in my
> example is wrong.
>
> Do you've any ideas what's wrong with my example?
>
> regards
> Andreas
>
> --
> Technical Blog <http://andreasvolz.wordpress.com/>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


--
Technical Blog <http://andreasvolz.wordpress.com/>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GST_MESSAGE_EOS with V4L2

Tim-Philipp Müller-2
On Sun, 2011-06-26 at 15:42 +0200, Andreas Volz wrote:

Hi Andreas,

> while inspecting another example I found out that after commenting out
> this line it works without EOS message:
>
> g_object_set(G_OBJECT(videosrc), "num-buffers", 400, NULL);
>
> Is setting buffers for a V4L2 source in general "wrong" or is this a
> bug?

There's nothing wrong with setting the "num-buffers" property, if that's
what you want. Of course in this case it is expected that it EOSes after
400 frames.

The 'spontaneous EOS' you describe in your previous messages sounds like
a bug in v4l2src. Maybe a GST_DEBUG=v4l2*:5 log has more info.

Cheers
 -Tim


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