Streaming webcam using rtsp protocol
Daniel Díaz
mrchapp at gmail.com
Wed Jul 25 08:49:32 PDT 2012
Hello!
On Wed, Jul 25, 2012 at 9:22 AM, Róbert Ungurán <unguranr at gmail.com> wrote:
> Hi,
> I'm trying to stream my webcam using rtsp protocol, but when I would like to
> display the stream using vlc I'm receivin one or two frames and after that
> I'm getting the following error messages:
> vlc rtsp://localhost:8554/test
[...]
> This is the code of the server:
[...]
> gst_rtsp_media_factory_set_launch (factory, "( "
> "v4l2src device=/dev/video0 !
> video/x-raw-yuv,width=320,height=240,framerate=30/1 ! "
> "x264enc ! queue ! rtph264pay name=pay0 pt=96 ! audiotestsrc !
> audio/x-raw-int,rate=8000 ! alawenc ! rtppcmapay name=pay1 pt=97 "")");
[...]
>
> Where did I make the mistake(s)?
I don't know about the rest, as I get good results with
gst-rtsp-server's test-launch example, but this pipeline looks wrongly
linked:
[...] ! rtph264pay name=pay0 pt=96 ! audiotestsrc !
audio/x-raw-int,rate=8000 ! [...]
should be:
[...] ! rtph264pay name=pay0 pt=96 audiotestsrc !
audio/x-raw-int,rate=8000 ! [...]
with no exclamation mark before audiotestsrc.
Greetings!
Daniel Díaz
yosoy at danieldiaz.org
More information about the gstreamer-devel
mailing list