Hello,
I'm trying for quite a while getting hd fpv over wifi using my hardware and the latest software.
My setup:
Tricopter 6S2P NCR18650PF , hk elite 268kv , pixhawk , neo 8 gps , 433Mhz scherrer LRS.
Flight time is approx 30-40 min , currently building the last parts.
Laptop:
Windows 7 64bit 32gb ddr3 samsung 480gb pro ssd i7 quad
Vmware running Ubuntu 14.04 LTS
Phone:
LG Nexus 5
Hw on copter:
RPI 2 B running wheezy raspbian 2015-05-05
Alfa AWUS036NHR v2 - 2000mW 33dBm - 802.11 B/G/N Wireless USB adapter
This adapter works by default on raspbian , making a wifi AD hoc can be done using the "linux way".
Camera:
Raspberry Pi cam
-----------------------------
My goal:
Having a reasonable low latency, high resolution fpv stream over about 1.6 kilometer (1 mile). To a laptop running ubuntu or windows7/8 or stream it to a android phone.
-----------------------------
My experience:
-Gstreamer:
Seems like a good idea , but all the versions are verry messy. Moved (or removed) functions from one rev to the other, no clear idea of what just works and what not.
Latest wheezy comes with gstreamer-0.10 and it seems that lots of fuctions that are used in tutorials etc don not work anymore. Most of the tutorials for installing gstreamer-1.0 or similar do not seem to work anymore.
I finally got gstreamer 1.2 working via this tutorial: (takes ~6-8 hours)
http://www.onepitwopi.com/raspberry-pi/gstreamer-1-2-on-the-raspberry-pi/
But still installing gstreamer with the correct plugins on windows or Ubuntu 14.04 lts is a lot of hassle. Not much support tbh. I have it working on the pi side for now, not in the windows/Ubuntu side.
-------
-Vlc:
This is very easy to setup, works with no hassle but has noticeable delay of about 1800-2000ms.
I have played with the vlc buffer settings @ the win7 side but it does not seem to have much influence (std. 1200ms buffer, changed to 350 and 500ms but still not much change. Changing to 100 or lower it will not work).
-------
-Netcap:
This is installed by default on ubuntu (if i remember correctly).
Used this tutorial:
http://zacharybears.com/low-latency-raspberry-pi-video-streaming/
Code works on Pi side with no hassle. Code works on laptop. Could not receive stream op laptop. Connection refused. Must be a firewall issue or something like that.
-------
-UV4L
Easy to set up , just works but latency was quite long when viewing on the pc. It should be ~200ms but i was getting much more. Must be an issue from my side
Tut used:
http://www.linux-projects.org/modules/sections/index.php?op=viewarticle&artid=14
-------
AirPi firmware package:
Seems nice but does not work on RPI 2
url:
http://www.swat-drones.de/index.php/hd-fpv/einleitung
-----------------------------
To test:
https://befinitiv.wordpress.com/wifibroadcast-analog-like-transmission-of-live-video-data/
Seems good , from a fellow diydrone'er . Have to look if this works with my hardware.
-----------------------------
so... after trying quite a lot of methods i'm still not where i want to be.
If anybody could help me with a method that works on the RPI 2 and ubuntu / windows that works good on recent hardware. Any help is appreciated. I have tried over 30 tutorials but around 95% of them do not work. Even ones that have been posted very recently.
Would be awesome if we could create a image of a guide that sets up the user for fpv streaming without having all this hassle and time wasting finding out what works and what not.
Thanks,
Spikee
Replies
Cpu usage with two clients is 3-4% , so plenty of power for doing something else!
When i have more time i will add pan tilt to the webpage
Full HD 30FPS ~100-200ms latency 100% quality setting
Pi is not overclocked
Todo make a wireless AP for my phone/pc to join and maybe add some telemetry on the webpage?
edit... Click on video on the webpage to get fullscreen ;)
Did this:
http://elinux.org/RPi-Cam-Web-Interface
Works immediatly verry low latency 100-200ms, works on phone with same low latency.
perfect!
I just have to edit the source so it scales the video nicely to fullscreen and i'm pretty much done!