Streaming a online video from a Raspberry Pi (RPi) over a cordless advertisement hoc network:.
The effectiveness of 3 methods.
Disclaimer: the to some degree unfastened analysis technique worked to obtain early & a sign advantages, nonetheless the efficiency and appropriate evaluation is deeply dependant of the computer system software application variations used, also and the testbed circumstances. This little film is because of that not expected to provide a conclusive contrast, however in its location some convenient insights about the compromise in between ease of usage and efficiency in regards to latency. This compromise might the natural method modification with upcoming variations of the examined program.
September2014
Parts utilized:.
Dell latitude D630 Core 2 Duo T7250 2 GB RAM.
Raspberry Pi item A.
D-Link 7-port USB 2. center.
Edimax 802.11 b/g/n nano USB adapter.
Raspberry Pi digicam board.
Software application utilized:.
Debian 7.6.
http://debian.org
GStreamer.10 and 1.
http://gstreamer.freedesktop.org
OpenCV 2.3.
http://opencv.org
Python 2.7.
http://python.org
Raspian Linux.
http://raspbian.org
Vlc.
http://videolan.org/vlc
Soundtrack:.
Plasma by Chill Provider.
source
This tutorial cant work, please follow my step and thank me later:
Run this commands:
1) sudo apt-get install vlc
2) raspivid -o – -t 0 -hf -w 800 -h 400 -fps 24 |cvlc -vvv stream:///dev/stdin –sout '#standard{access=http,mux=ts,dst=:8160}' :demux=h264
Noted*: your streaming address will be (http://(your pi address):8160)
Stream your video using VLC player in Android or windows
The android cant work , please fix it PLEASE !!!!!
if you use soft AP method instead of LAN, your latency will be 30-70ms.
hi, i wish to stream a video from local pc to pi , any ideas?
Very interesting this video is what I need for my raspberry pi camera and laptop.
This is exactly what I want. Superb.thanks
Could you please share the script to utilize the connection on the client side? I only need the basic code to generate picture/video from raw data and not the object detection algo. Thanks.
I was having trouble with getting method 2 working as the author is using a combination of gstreamer 0.10 and 1.0
My solution was using only gstreamer 1.0
On the pi (Pi Model B+ V1.2):
raspivid -fps 30 -w 480 -h 270 -n -t 0 -b 1280000 -o – | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.1.2 port=5000
and on the client (desktop running arch linux):
gst-launch-1.0 -v tcpclientsrc host=192.168.1.2 port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! autovideosink sync=false
The pi's ip address is 192.168.1.2
I noticed that reducing the bit-rate (-b) decreased the frame rate but had minimal effect on the image quality.
at 1.28mbps the motion was smooth but at 128kbps the frame rate was about 5fps.
the width and height are 1/4 of 1920 x 1080 but the resolution does not seem to effect the frame rate very much.
Wow! Ending with a pipe to a python script is fantastic. It'd be cool to send it through a trained neural net.
You made my day ! Thank you very much (I was fighting with vlc options with no luck).
is it for local sever only or i can use it for any ip address?
how to setup ad-hoc network?
Well, I have found a 'secret' VLC setting to set up time of network caching in milliseconds. Will changing it to zero improves streaming latency?
J'si remarqué que vous êtes français et j'aurais des questions à propos du sujet que vous traitez dans vôtre vidéo vous serait-il possible de m'aider, si oui contacter moi sur mon adresse mail ([email protected]) (C'est parce que j'ai un projet que j'ai à faire au lycée)
Update, gStreamer can now have almost zero latency.
it is the best streaming option for the Pi by far!!
Hello, great video, could you share your testMKFifo.py code? It would be very useful for my work 🙂
hi ist here any chance to get the python script testMKFifo.py?
thanks for the video. I have another question, though… what software did you use for those cool orange arrows on the video? pretty cool
Cannot profile buffer
Basically, opencv can interpret the stream sent by netcat directly without relaying via a named pipe. Check this out https://github.com/experiencor/Streaming-Rasp-Cam.
Yocto on Raspberry pi 3
https://youtu.be/EVp530qn4yM
Is the Remote Laptop on a local network?
what should i write instead of raspivid incase i am using usb webcam with raspberry pi
Thank you so much for your great video. It is very helpful.
Hello!
I have a strange task at hand, and I've tried everything. I was wondering if you could help.
My task is to grab a stream put out by a RaspPi and save it to my PC. However, I need to view AND save it simultaneously.
This works to view it (on PC):
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false text-overlay=false
Okay, great. Now to save it to the PC simultaneously while viewing.
I am just not experienced enough to figure this out. I know I have to use the "tee" command. But that's all I know…
Could you help at all? You seem to know what you're doing.
Dear, thank you for your remind!! I have already implemented raspivid and nc to send h264 stream, however,if you can opensource your "testMKFifo.py" python script , it will be a great behaviour!!!! Thank you for you intention it!
Great video, it doesn't just tell you what to do, it says why, what a change does and shows the result of doing it. Really appreciate videos this well made.
Thanks so much for this. After wasting some hours googling latency with the pi cam I ended with the the exact three solutions you've demonstrated. I didn't test the last one and was about to give up but it looks great. I intend to use OpenCV as well so seeing that demo script running was particularly helpful.
can you share testMKFifo.py script?
Hi !! Your Video is very helpful ! Can you please share your python script ? I would really appreciate it . Thank you 🙂
can you try with the Pi 2 also?
I cant get the server side working too, can you please provide the python script ?