<div dir="ltr">Look through the log starting at the beginning and examine the v4l2sink messages. The element is doing something. You might want to also enable GST_STATES:5 in the debug log.<br><br><div>0:00:02.675288957 10239 0x7f7160002370 DEBUG               v4l2sink gstv4l2sink.c:509:gst_v4l2sink_set_caps:<v4l2sink0>
 caps: video/x-raw, format=(string)I420, width=(int)1280, 
height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1</div><div>0:00:02.676007155 10239 0x7f7160002370 INFO                v4l2sink gstv4l2sink.c:533:gst_v4l2sink_set_caps:<v4l2sink0> <span style="color:rgb(255,0,0)"><b>outputting buffers via mmap(</b></span>)</div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 13, 2015 at 7:59 AM, Sérgio Agostinho <span dir="ltr"><<a href="mailto:sergio.r.agostinho@gmail.com" target="_blank">sergio.r.agostinho@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I would say dump the entire log on pastebin so that we can see it and in the meantime (if you have the option) you can try upgrading to the latest version 1.4.5 to see if the problem persists. <div><br></div><div>Cheers</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2015-02-13 13:01 GMT+01:00 Russell <span dir="ltr"><<a href="mailto:danrenjian@gmail.com" target="_blank">danrenjian@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi, </div><div><br></div>Setting GST_DEBUG did give me much more messages in the output, but I couldn't find any warning or errors.<div>Most DEBUG messages are about internals of decodebin, and following is the last few lines. I get this both through gst-launtch-1.0 and my own c program:</div><div><br></div><div><div>0:00:02.675222833 10239 0x7f7160002370 DEBUG              decodebin gstdecodebin2.c:4023:gst_decode_bin_expose:<decodebin0> Exposed everything</div><div>0:00:02.675288957 10239 0x7f7160002370 DEBUG               v4l2sink gstv4l2sink.c:509:gst_v4l2sink_set_caps:<v4l2sink0> caps: video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1</div><div>0:00:02.676007155 10239 0x7f7160002370 INFO                v4l2sink gstv4l2sink.c:533:gst_v4l2sink_set_caps:<v4l2sink0> outputting buffers via mmap()</div><div>0:00:02.676039389 10239 0x7f7160002370 DEBUG               v4l2sink gstv4l2sink.c:587:gst_v4l2sink_propose_allocation:<v4l2sink0> we had a pool with caps video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1</div><div>0:00:02.686470601 10239 0x7f7160002370 DEBUG               v4l2sink gstv4l2sink.c:587:gst_v4l2sink_propose_allocation:<v4l2sink0> we had a pool with caps video/x-raw, format=(string)I420, width=(int)1280, height=(int)720, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, framerate=(fraction)25/1</div></div><div><br></div><div>Here is my version of gst-launtch and gstreamer if that matters:</div><div><div>gst-launch-1.0 version 1.2.4</div><div>GStreamer 1.2.4</div></div><div><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 13, 2015 at 4:47 AM, Chuck Crisler <span dir="ltr"><<a href="mailto:ccrisler@mutualink.net" target="_blank">ccrisler@mutualink.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Also, when you see something that says 'WARNING' or 'ERROR', copy several lines around those lines and post them here.<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 3:36 PM, Sérgio Agostinho <span dir="ltr"><<a href="mailto:sergio.r.agostinho@gmail.com" target="_blank">sergio.r.agostinho@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Indeed, follow Chuck's advice and in the meantime make some more experiments.<div><br></div><div>What happens if you try to set all elements to PAUSE and then to PLAY again (once they're linked)? Try to set the rtspsrc and the decodebin to PAUSE before linking the v4l2sink and then set everything to PLAY. </div><div><br></div><div>Cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-12 20:34 GMT+01:00 Chuck Crisler <span dir="ltr"><<a href="mailto:ccrisler@mutualink.net" target="_blank">ccrisler@mutualink.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>It sounds like it is time to crank up logging on the decodebin and v4l2sink elements to see what is(n't) happening.<br><br></div><div>Something like:<br></div>export GST_DEBUG=decodebin:5,v4l2sink:5<br><br></div>This should generate enough messages to understand what is failing.<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 5:05 AM, Russell <span dir="ltr"><<a href="mailto:danrenjian@gmail.com" target="_blank">danrenjian@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">By the way, target v4l2 device is created by <a href="https://github.com/umlaeute/v4l2loopback" target="_blank">v4l2loopback</a><div>Besides, I have output the caps of all pads (static or dynamic) of these elements whenever one of them change states. They seem to be fixed at the end. That is, (dynamic) src pad of rtspsrc and sink pad of decodebin have same fixed caps, and (dynamic) src pad of decodebin and sink pad of v4l2sink have same fixed caps. Does that mean the caps negotiation is completed?</div><div><br></div><div>Thanks,</div><div>Russell</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 5:58 PM, Russell <span dir="ltr"><<a href="mailto:danrenjian@gmail.com" target="_blank">danrenjian@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">fakesink works, too. <div>rtspsrc, decodebin and fakesink (as well as the pipeline itself) are all in PLAYING state at the end.<div><br></div><div>Thanks,</div><div>Russell</div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 5:46 PM, Russell <span dir="ltr"><<a href="mailto:danrenjian@gmail.com" target="_blank">danrenjian@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-size:12.8000001907349px">Hi, </span></div><div><span style="font-size:12.8000001907349px"><br></span></div><span style="font-size:12.8000001907349px">autovideosink in code works ok, will give fakesink a try.</span><br><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Thanks,</span></div><div><span style="font-size:12.8000001907349px">Russell</span></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 5:03 PM, Sérgio Agostinho <span dir="ltr"><<a href="mailto:sergio.r.agostinho@gmail.com" target="_blank">sergio.r.agostinho@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Just for completion, do you have the same issue if you replace v4l2sink for fakesink and then for an autovideosink <b>in your code</b>. Trying to understand if this is something specific about the way you're connecting v4l2sink or just live sinks in general. <div><div><br></div><div>Cheers</div><span><font color="#888888"><div>Sérgio</div></font></span></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-12 7:44 GMT+01:00 Russell <span dir="ltr"><<a href="mailto:danrenjian@gmail.com" target="_blank">danrenjian@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>Here is how I add and link decodebin and v4l2sink into pipeline:</div><div><ol><li>When a new src pad is created for rtspsrc</li><ol><li>add decodebin to pipeline</li><li>set decodebin to PLAYING async</li><li>link src pad of rtspsrc to sink pad of decodebin</li></ol><li>When a new src pad is created for decodebin</li><ol><li>add v4l2sink to pipeline</li><li>set v4l2sink to PLAYING async</li><li>link src pad of decodebin to sink pad of v4l2sink</li></ol></ol><div>Eventually, rtspsrc will be PLAYING, decodebin be PAUSED, and v4l2sink be READY.</div></div><div><br></div><div>But if I detect state change for decodebin, so what when it move to PAUSED, I set its state to PLAYING asyc again, then eventually decodebin would be in PLAYING state.</div><div>v4l2sink would always be READY state even if I set its state several times like decodebin.</div><div><br></div><div>And, If I only did 1 and no 2 as decribed above (that is, without adding and linking for v4l2sink), then both rtspsrc and decodebin would be in PLAYING state.</div><div><br></div><div><br></div><div>Is there anything else I can try??</div><div><br></div><div>Thanks,</div><div>Russell</div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 12, 2015 at 9:06 AM, Russell <span dir="ltr"><<a href="mailto:danrenjian@gmail.com" target="_blank">danrenjian@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, Wonchul<div><br></div><div>How can I confirm whether v4l2sink receives any buffer, are there any logs that I can inspect?</div><div><br></div><div>Thanks,</div><div>Russell<br><div><br></div><div><br></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 11, 2015 at 10:06 PM, Wonchul Lee <span dir="ltr"><<a href="mailto:chul0812@gmail.com" target="_blank">chul0812@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I guess that v4l2sink didn't receive any buffer.<br>
Sink element what inherited from basesink will change to PAUSED states<br>
after receiving a buffer for preroll.<br>
<br>
<a href="http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/part-states.txt#n41" target="_blank">http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/design/part-states.txt#n41</a><br>
<div><div><br>
<br>
2015-02-11 18:23 GMT+09:00 Sérgio Agostinho <<a href="mailto:sergio.r.agostinho@gmail.com" target="_blank">sergio.r.agostinho@gmail.com</a>>:<br>
> Hi Russel,<br>
><br>
> If you do<br>
><br>
> gst-launch-1.0 videotestsrc ! v4l2sink<br>
><br>
> do you see video on your v4l2device? Also, if you do<br>
><br>
> gst-launch-1.0 rtspsrc location=rtspaddress ! decodebin ! autovideosink<br>
><br>
> Do you see your rtsp video stream playing on a window?<br>
><br>
> Cheers<br>
><br>
><br>
> 2015-02-11 7:50 GMT+01:00 Russell <<a href="mailto:danrenjian@gmail.com" target="_blank">danrenjian@gmail.com</a>>:<br>
>><br>
>> Hi,<br>
>><br>
>> I was trying this pipeline to feed rtsp stream into a v4l2 virtual<br>
>> loopback device:<br>
>> gst-launch-1.0 rtspsrc location=rtspaddress ! decodebin ! v4l2sink<br>
>><br>
>> Terminal gave this output and stops, and there are no video in the v4l2<br>
>> device:<br>
>> Progress: (request) Sending PLAY request<br>
>> Progress: (request) Sending PLAY request<br>
>> Progress: (request) Sent PLAY request<br>
>><br>
>><br>
>> So I am implementing the pipeline in c to see what happened. decodebin and<br>
>> v4l2sink are added and linked on on pad-added event. Eventually I found the<br>
>> v4l2sink element stay in READY state while the other two are PLAYING. I have<br>
>> set v4l2sink to PLAYING asynchronously but the state does not change.<br>
>><br>
>> What is the matter here? and where I can find any detailed reason why<br>
>> v4l2sink cannot go to PLAYING state?<br>
>><br>
>> Thanks in advance.<br>
>><br>
>> Sincerely,<br>
>> Russell<br>
>><br>
>> _______________________________________________<br>
>> gstreamer-devel mailing list<br>
>> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
>> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>