<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 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 class="HOEnZb"><div class="h5"><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>