v4l2 element stay in READY state

Russell danrenjian at gmail.com
Wed Feb 11 16:54:23 PST 2015


Hi,

There are several pipelines that I can used to read rtsp data stream and
play directly:
gst-launch-1.0 playbin uri=rtspaddress
gst-launch-1.0 rtspsrc location=rtspaddress ! decodebin ! autovideosink
gst-launch-1.0 uridecodebin uri=rtspaddress ! autovideosink

And videotestsrc works, too:
gst-launch-1.0 videotestsrc ! v4l2sink


I just cannot connect rtsp stream to v4l2sink

Thanks,
Russell

On Wed, Feb 11, 2015 at 5:23 PM, Sérgio Agostinho <
sergio.r.agostinho at gmail.com> wrote:

> Hi Russel,
>
> If you do
>
> gst-launch-1.0 videotestsrc ! v4l2sink
>
> do you see video on your v4l2device? Also, if you do
>
> gst-launch-1.0 rtspsrc location=rtspaddress ! decodebin ! autovideosink
>
> Do you see your rtsp video stream playing on a window?
>
> Cheers
>
>
> 2015-02-11 7:50 GMT+01:00 Russell <danrenjian at gmail.com>:
>
>> Hi,
>>
>> I was trying this pipeline to feed rtsp stream into a v4l2 virtual
>> loopback device:
>> gst-launch-1.0 rtspsrc location=rtspaddress ! decodebin ! v4l2sink
>>
>> Terminal gave this output and stops, and there are no video in the v4l2
>> device:
>> Progress: (request) Sending PLAY request
>> Progress: (request) Sending PLAY request
>> Progress: (request) Sent PLAY request
>>
>>
>> So I am implementing the pipeline in c to see what happened. decodebin
>> and v4l2sink are added and linked on on pad-added event. Eventually I found
>> the v4l2sink element stay in READY state while the other two are PLAYING. I
>> have set v4l2sink to PLAYING asynchronously but the state does not change.
>>
>> What is the matter here? and where I can find any detailed reason why
>> v4l2sink cannot go to PLAYING state?
>>
>> Thanks in advance.
>>
>> Sincerely,
>> Russell
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150212/37142340/attachment.html>


More information about the gstreamer-devel mailing list