Raspberry Pi command: raspivid -t 999999– hflip -o – -w 512 -h 512 -fps 15|nc [IP address of your computer here][port number of your computer here]
For your computer system, if you may be on windows you wish to get netcat. You likewise require MPlayer which you can acquire someplace as effectively. Then, run:.
[netcat executable file path] -L -p [port number to communicate on]|[mplayer executable path] -vo direct3d -fps 24 -cache 512 -.
nc for house windows (variation 1.12):.
https://eternallybored.org/misc/netcat/
mplayer:.
http://mplayerwin.sourceforge.internet/downloads.html
source
Absolutelly brillant !!!! I useit with a rasperry pi, sending streaming throw SIM card 4g, and I receive it throw openVPN, on my Windows machine with a very low latency. Amazing. thanks a lot
Does this work with the pi camera while remotely accessing the pi using ssh?
Thanks for the video man will update when I'm done 😀
Is there any way i can get this kind of latency with my USB webcam?
is it possible to watch live over internet through this technique?
for me, on pc it will just print the instructions for mplayer, on the pi it will show the video for one frame and then vanish
thanks man
I run the commands but the cmd gets stuck on : Cache fill: 0.00% (0 bytes) any ideas what I'm doing wrong?
But where should Raspberry Pi command written ? python or terminal ?
and i know that you need to install openCV to could make live streaming video !! do you do this step ?
plz tell me i need this information in my graduation project 🙂
Can you do this with a usb webcam?
could be nice if an IP was not needed and any local pc could connect
This has not been working for me. Do you NEED the rasp pi camera module or do USB webcams work with this approach?
I think it doesn't work for me because my USB webcam does not support MJPEG compression.
Anybody have any ideas?
This is how I do it and I also get very very low latency:
on the RPi
raspivid -w 720 -h 540 -t 0 -fps 20 -b 1000000 -o – | nc -l -p 12345 -m 4 -k
on the pc
nc 192.168.1.101 | mplayer -fps 60 -demuxer h264es –
To measure the latency just have a digital clock run on the pc and point the camera at it. Then compare the clock in mplayer with the pc clock. Of course, this is only for estimation purposes, it's probably accurate only to 1 sec.
AMAZING! THANKS A LOT! The latency is barely noticeable. Wishing someone who would come with OSD as an addition to the stream using MAVlink data. FPV would be absolutely fantastic then.
RasPi:
raspivid -t 999999 -vf -o – -w 720 -h 480 -fps 15 | nc 192.168.2.13 5001
where 192.168.2.13 is an IP address of my laptop and 5001 was unused port (you may check it by a command "netstat -ano")
Laptop:
nc64 -L -p 5001 | mplayer -vo direct3d -fps 24 -cache 512 –
nc for windows (version 1.12):
https://eternallybored.org/misc/netcat/
mplayer:
http://mplayerwin.sourceforge.net/downloads.html
All unzipped files from netcat and mplayer were extracted to the same folder.
For anyone who would be interested in my setup, which work well indeed, although my hardware is pretty old – proof of robustness of configuration found by Mr. Oberhauser:
Raspberry Pi 2 Model B (connected to router using WiFi)
Crappy WiFi dongle Ralink 5370
Standard Pi Camera (of course)
7 year old Fujitsu Xi3650 on Win 7 Pro x64 (wired connection to router)
10 year old Belkin 54g router
HI, where could I download both Mplayer and Netcat for Windows?
Really cool! Do you have instructions on how to install the software and set it up? I am looking to use this for FPV purposes, something that requires minimal delay.
what did you use to measure the latency, as in tool?
wow!! I've just tried it and it really WORKS! Â u're my hero now! LOL. Â I couldn't get mplayer working on my mac but it did on a virtual machine with Win7. Â Clean workaround that worked like a charm !
What sort of latency are we looking at here?
Great idea !
Take a look here :
https://www.youtube.com/watch?v=0Jq2lgJ67oo