Reading and displaying a rtsp stream

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

Reading and displaying a rtsp stream

Ekrem SEREN
I'm trying to read a rtsp stream over network and view/record it. PlayBin
works fine with rtsp like below;

$ gst-launch playbin uri=rtsp://localhost:5554/Camera1

It displays the stream. But I couldn't get it to work with my own pipeline;

$ gst-launch -v rtspsrc location=rtsp://localhost:5554/Camera1 ! decodebin !
fmpegcolorspace ! textoverlay text="fsvbzlvcjzjhkvhlkczvjkd " ! autovideosink

This gives an error like this;

http://dpaste.com/hold/68630/

Could anybody help me about this? What am I doing wrong?
--
Ekrem SEREN
________________________________________
UYGUN Teknoloji Bilişim Hiz.Tic.Ltd.Şti.
http://www.uygunteknoloji.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Reading and displaying a rtsp stream

michael smith-6-3
On Thu, Jul 31, 2008 at 12:21 AM, Ekrem SEREN <[hidden email]> wrote:
> I'm trying to read a rtsp stream over network and view/record it. PlayBin
> works fine with rtsp like below;
>
> $ gst-launch playbin uri=rtsp://localhost:5554/Camera1
>
> It displays the stream. But I couldn't get it to work with my own pipeline;
>
> $ gst-launch -v rtspsrc location=rtsp://localhost:5554/Camera1 ! decodebin !
> fmpegcolorspace ! textoverlay text="fsvbzlvcjzjhkvhlkczvjkd " ! autovideosink

Does it work with another ffmpegcolorspace after the textoverlay? Your
video sink might not support I420 (the only format that textoverlay
supports).

You also in general might need a videoscale (though probably not in this case).

Mike

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Reading and displaying a rtsp stream

Aurelien Grimaud (elzz)
Beside, in your paste, there is no ffmpegcolorspace at all.
I tried your pipeline with some movies (audio/video).
gst-launch -v rtspsrc location=rtsp://localhost/sample_100kbit.mp4 ! decodebin ! ffmpegcolorspace ! textoverlay text="Hello Wolrld" ! autovideosink

When I have a ffmpegcolorspace before textoverlay, it is always ok.
when not, pipeline always fails to link.

Best is ffmpegcolorspace does nothing : caps on src and sink are the same.

This also works if ffmpegcolorspace is replaced by any element with "always pads" like videoscale or videorate.

I think this is a gst-launch negotiation problem : decodebin has a "sometimes" src pad and textoverlay has 2 sink pads.

It also works without ffmpegcolorspace if you change textoverlay to clockoverlay (1 sink pad) or timeoverlay


--- En date de : Jeu 31.7.08, Michael Smith <[hidden email]> a écrit :
De: Michael Smith <[hidden email]>
Objet: Re: [gst-devel] Reading and displaying a rtsp stream
À: "Discussion of the development of GStreamer" <[hidden email]>
Date: Jeudi 31 Juillet 2008, 19h25

On Thu, Jul 31, 2008 at 12:21 AM, Ekrem SEREN <[hidden email]>
wrote:
> I'm trying to read a rtsp stream over network and view/record it.
PlayBin
> works fine with rtsp like below;
>
> $ gst-launch playbin uri=rtsp://localhost:5554/Camera1
>
> It displays the stream. But I couldn't get it to work with my own
pipeline;
>
> $ gst-launch -v rtspsrc location=rtsp://localhost:5554/Camera1 ! decodebin
!
> fmpegcolorspace ! textoverlay text="fsvbzlvcjzjhkvhlkczvjkd " !
autovideosink

Does it work with another ffmpegcolorspace after the textoverlay? Your
video sink might not support I420 (the only format that textoverlay
supports).

You also in general might need a videoscale (though probably not in this case).

Mike

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


Envoyé avec Yahoo! Mail.
Une boite mail plus intelligente.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Reading and displaying a rtsp stream

Ekrem SEREN
Hello,

Sorry for the delayed reply.

2008/7/31, Aurelien Grimaud <[hidden email]>:
> Beside, in your paste, there is no ffmpegcolorspace at all.
> I tried your pipeline with some movies (audio/video).

I messed command and outputs a little in the previous post, sorry.
Now, I've tried some things;

This works OK, no problem at all;
$ gst-launch -v playbin uri=rtsp://192.168.97.76:5554/cam1

But this opens a video windows but it did not play anything;
$ gst-launch -v rtspsrc location=rtsp://192.168.97.76:5554/cam1 !
decodebin ! ffmpegcolorspace ! autovideosink
(output is attached)

So, I am missing something that playbin has but can't figure out what it is?

--
Ekrem SEREN
________________________________________
UYGUN Teknoloji Bilişim Hiz.Tic.Ltd.Şti.
http://www.uygunteknoloji.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

gst-rtsp-err-output.log (11K) Download Attachment