shubhamjan12
Posts: 11
Joined: Thu Apr 02, 2015 10:54 am

Video streaming (RPi to windows7) by using GST-RTSP and VLC

Thu Apr 02, 2015 11:13 am

I have created a GST-RTSP server on my Raspberry Pi as described in the below link.
http://www.raspberrypi.org/forums/viewt ... 8&p=664616
and also on
http://www.aftermath.kr/category/Raspberry%20Pi (Although i don't understand the language given on the link but the steps shown on terminal are same and quite enough to run gstreamer. :) )
Now the problem is occuring when i am trying to run the streaming on my Windows 7 using VLC, It's showing only a single frame in video which is very first arrived frame(I guess). When i checked the VLC messages by applying it's verbosity=2 then i noticed it is showing Buffering 0% continuously.
Then i tried to run it using GOM player. GOM player is showing the streaming very fine (Except that it is taking 20-40 sec to start streaming) and with a very little latency (around 100ms).

The problem is i have to run this stream only in VLC so that i can use VLC libraries in my other application. If anyone gets the point where i am doing wrong then please guide me through. I have used the following command to run the GST-RTSP server on my pi:

Code: Select all

raspivid -t 0 -h 320 -w 240 -rot 90 -fps 25 -b 2000000 -vf -hf -n -o - | gst-launch -v fdsrc ! h264parse ! gdppay ! tcpserversink host=192.168.1.15 port=5000 | ./test-launch "( tcpclientsrc host=192.168.1.15 port=5000 ! gdpdepay ! avdec_h264 ! rtph264pay name=pay0 pt=96 )"
Thanks in advance :)

Where 192.168.1.15 is the IP address of my Pi.

towolf
Posts: 421
Joined: Fri Jan 18, 2013 2:11 pm

Re: Video streaming (RPi to windows7) by using GST-RTSP and

Thu Apr 09, 2015 10:30 am

Try this tightened setup.

You need to compile gst-rpicam also. rpicamsrc directly provides video. Where you think you are piping video, you aren’t ( | ./test-launch). The problem of buffering on the receiving side has to be solved somehow. Dunno how to do that for VLC.

shubhamjan12
Posts: 11
Joined: Thu Apr 02, 2015 10:54 am

Re: Video streaming (RPi to windows7) by using GST-RTSP and

Mon Apr 13, 2015 4:35 am

towolf wrote:Try this tightened setup.

You need to compile gst-rpicam also. rpicamsrc directly provides video. Where you think you are piping video, you aren’t ( | ./test-launch). The problem of buffering on the receiving side has to be solved somehow. Dunno how to do that for VLC.
Hi towolf,
Thanks for your reply. I am able to play the stream coming from RPi on Windows by using gstreamer and following command.

Code: Select all

gst-launch-1.0 rtspsrc location=rtsp://192.168.1.15:8554/test ! application/x-rtp !  rtpjitterbuffer ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false text-overlay=false
I have compile rpicamsrc but i am unable to resolve the vlc error at client end.

Return to “Troubleshooting”