-
Notifications
You must be signed in to change notification settings - Fork 3
/
howto_setup.txt
73 lines (68 loc) · 3.13 KB
/
howto_setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#Stage-1: Install Mischa Spiegelmock's RTSP-server
###reference: https://github.com/revmischa/rtsp-server
###Install debian jessie dependences:
sudo apt-get install libmoose-perl liburi-perl libmoosex-getopt-perl libsocket6-perl libanyevent-perl
sudo cpan AnyEvent::MPRPC::Client
###Clone from git
cd ~
git clone https://github.com/revmischa/rtsp-server
###Then make, test and install
cd rtsp-server
perl Makefile.PL
make
make test
sudo make install
###Simply fire up the included rtsp-server.pl application and it will listen for clients on port 554 (standard RTSP port), and source streams on port 5545.
sudo ./rtsp-server.pl
#Stage-2: Install ffmpeg
sudo apt-get install ffmpeg
###run example ffmpeg pipelines provided in scripts
###reference: https://www.bogotobogo.com/FFMpeg/ffmpeg_video_test_patterns_src.php
### : https://ffmpeg.org/ffmpeg.html
### : https://ffmpeg.org/ffmpeg-protocols.html
### : https://trac.ffmpeg.org/wiki/Encode/H.264
### : https://stackoverflow.com/questions/42471820/ffmpeg-error-setting-profile-how-to-keep-original-resolution-odf-odd-sized
./gen_test_file.sh
./gen_test_src.sh
###alternatively you may compile ffmpeg with OMX hardware support from its sources and make some adjustments
###reference: https://www.bitpi.co/2015/08/19/how-to-compile-ffmpeg-on-a-raspberry-pi/
### : https://github.com/legotheboss/YouTube-files/wiki/(RPi)-Compile-FFmpeg-with-the-OpenMAX-H.264-GPU-acceleration
### : https://github.com/umlaeute/v4l2loopback/issues/130#issuecomment-341928110
#Stage-3: Install gstreamer1.0
###because generic install 'sudo apt-get install gstreamer1.0' does not work install packages seperatly
sudo apt install gstreamer1.0-nice
sudo apt install gstreamer1.0-om*
sudo apt install gstreamer1.0-opencv
sudo apt install gstreamer1.0-packagekit
sudo apt install gstreamer1.0-plugi*
sudo apt install gstreamer1.0-pocketsphinx
sudo apt install gstreamer1.0-pulseaudio
sudo apt install gstreamer1.0-qt5
sudo apt install gstreamer1.0-rts*
sudo apt install gstreamer1.0-tools
sudo apt install gstreamer1.0-vaa*
sudo apt install gstreamer1.0-x
sudo apt install gstreamer1.0-alsa
sudo apt install gstreamer1.0-c*
sudo apt install gstreamer1.0-doc
sudo apt install gstreamer1.0-espeak
sudo apt install gstreamer1.0-fluendo-mp3
sudo apt install gstreamer1.0-g*
sudo apt install gstreamer1.0-l*
#Stage-4: Install QGroundControl
###reference: https://docs.qgroundcontrol.com/en/getting_started/download_and_install.html#ubuntu-linuxhttps://docs.qgroundcontrol.com/en/getting_started/download_and_install.html#ubuntu-linux
sudo usermod -a -G dialout $USER
sudo apt-get remove modemmanager -y
sudo apt install gstreamer1.0-plugins-bad gstreamer1.0-libav -y
###Logout and login again to enable the change to user permissions.
###Download QGroundControl.AppImage.
cd ~
mkdir QGroundControl
cd QGroundControl
wget https://s3-us-west-2.amazonaws.com/qgroundcontrol/latest/QGroundControl.AppImage
###Install (and run) using the terminal commands:
chmod +x ./QGroundControl.AppImage
./QGroundControl.AppImage
###Setup video streaming:
###Video Source: RTSP Video Stream
###RTSP URL : rtsp://localhost/test