Yoann
Posts: 1
Joined: Sun Jul 07, 2013 1:25 pm

RTSP Stream: raspivid+gstreamer+gst-rtsp and Android

Sun Jul 07, 2013 1:41 pm

My solution to stream camera vid on RTSP:

Install GStreamer:
sudo apt-get install gstreamer-tools gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly

Make gst-rtsp:
wget http://gstreamer.freedesktop.org/src/gs ... .8.tar.bz2
bzip2 -d gst-rtsp-0.10.8.tar.bz2
tar xvf gst-rtsp-0.10.8.tar
cd gst-rtsp-0.10.8/
./configure
make

Run gst-launch with raspivid input:
raspivid -t 0 -w 800 -h 600 -fps 25 -g 5 -b 4000000 -vf -n -o - | gst-launch -v fdsrc ! h264parse ! gdppay ! tcpserversink host=127.0.0.1 port=5000

In gst-rtsp-0.10.8/exemples run the RTSP server:
./test-launch "( tcpclientsrc host=127.0.0.1 port=5000 ! gdpdepay ! rtph264pay name=pay0 pt=96 )"

On RTSP player or on Android with RTSP Player:
rtsp://192.168.0.10:8554/test

Improvment for fixed latency and permit to lose frame on bad connection are wellcome.

nexos
Posts: 1
Joined: Sun Jul 14, 2013 12:30 pm

Re: RTSP Stream: raspivid+gstreamer+gst-rtsp and Android

Sun Jul 14, 2013 12:39 pm

hell,

i just tried to setup a streaming server as descried on arch linux, but "./configure" prints "configure: error: This package requires GLib >= 2.10.0 to compile." arch linux only provides glib-1.2.10-9 - it there a way to solve this problem?

gst-rtsp seams to be build for gstreamer 0.10- i could not find a version for gstreamer 1.0. is there any alternative for gstreamer 1.0?

User avatar
Defiant
Posts: 179
Joined: Tue Oct 30, 2012 6:17 pm
Location: Hamburg, Germany

Re: RTSP Stream: raspivid+gstreamer+gst-rtsp and Android

Tue Jul 16, 2013 7:52 pm


Reactor15
Posts: 1
Joined: Mon Dec 02, 2013 3:07 pm

Re: RTSP Stream: raspivid+gstreamer+gst-rtsp and Android

Mon Dec 02, 2013 3:14 pm

Hi, has anyone got a pre-built version for the Pi that is built for gstreamer 1.0? I can't seem to build it from git.

Thanks.

Mecin
Posts: 14
Joined: Sat Jan 03, 2015 4:12 pm
Location: Poland

Re: RTSP Stream: raspivid+gstreamer+gst-rtsp and Android

Sat Jan 03, 2015 4:28 pm

Hi,

I have problems with build gst-rtsp-server:

Code: Select all

configure: No package 'gstreamer-0.10' found
configure: error: no gstreamer-0.10 >= 0.10.29 (GStreamer) found
  configure failed
no matter version (have tried almost all available variants, from git and source).

Its very important to me, I wrote Android application to control vehicle with camera stream (but my implementation "MJPEG like" is about 2 fps max, unusable). Need rtsp protocol to display in VideoView on fragment in my application.

Please, can someone help me? I've spend too much hours on it, without result. It seems that gstreamer from Raspbian Wheezy is different version (gstreamer1.0) instead of gstreamer0.10 needed by server.

Greetings.

AkshayTechbla
Posts: 2
Joined: Thu Feb 04, 2016 10:22 am

Re: RTSP Stream: raspivid+gstreamer+gst-rtsp and Android

Thu Feb 04, 2016 10:53 am

hi ..
i am trying to get RTSP Stream on my android so as per this post i have installed gst Rtsp on the pi
Ran gst-launch with raspivid input:
raspivid -t 0 -w 800 -h 600 -fps 25 -g 5 -b 4000000 -vf -n -o - | gst-launch-1.0 -v fdsrc ! h264parse ! gdppay ! tcpserversink host=127.0.0.1 port=5000

the pi showed :
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

then ran

In gst-rtsp-server-1.2.3/examples $ ran the RTSP server:
./test-launch "( tcpclientsrc host=127.0.0.1 port=5000 ! gdpdepay ! rtph264pay name=pay0 pt=96 )"
stream ready at rtsp://127.0.0.1:8554/test

Now when i try to play
rtsp://Pi address:8554/test
from VLC : nothing gets played in the media player and no error or warning is shown :
on the pi: i get GStreamer-WARNING **: gstpad.c:4555:store_sticky_event:<pay0:sink> Sticky event misordering, got 'segment' before 'caps'

so i tried to play the stream with playbin from mac terminal :

gst-launch-1.0 -v playbin uri=rtsp://192.168.42.1:8554/test

which gave:
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5889): gst_rtspsrc_try_send (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Could not receive message. (Timeout while waiting for server response)

please advice where i am going wrong:
or is there any way to check if at all i am able to stream live video from the cam using gstreame

Thanks

henryco
Posts: 33
Joined: Sat Jul 19, 2014 12:25 pm

Re: RTSP Stream: raspivid+gstreamer+gst-rtsp and Android

Sat Feb 27, 2016 7:03 am

How did you manage to install gst-rtsp , i'm on jessie and i get the following errors after ./configure

checking for GLIB... no
configure: No package 'glib-2.0' found
No package 'gobject-2.0' found
No package 'gmodule-no-export-2.0' found
configure: error: This package requires GLib >= 2.32.0 to compile.

Return to “Camera board”