This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
projects:farmrobot:steuerungs-kamera [2021/03/08 18:23] jonas |
projects:farmrobot:steuerungs-kamera [2021/03/14 17:51] (current) jonas [Authors] |
||
|---|---|---|---|
| Line 3: | Line 3: | ||
| The FPV Camera serves a video stream as the first person view (FPV) of the Robot. This makes it possible to see the position of the Robot and anything in its way. | The FPV Camera serves a video stream as the first person view (FPV) of the Robot. This makes it possible to see the position of the Robot and anything in its way. | ||
| - | ==== Hardware ==== | + | ===== Hardware |
| A 3d Printed mount for the Bosch40x40 profile was made to stick a polie on it so that the camera gets a better view. The camera is set in a case which was designed with a litte roof to prevent raindrops on the lense. | A 3d Printed mount for the Bosch40x40 profile was made to stick a polie on it so that the camera gets a better view. The camera is set in a case which was designed with a litte roof to prevent raindrops on the lense. | ||
| Line 13: | Line 13: | ||
| The following hardware is used for capturing and broadcasting the video stream: | The following hardware is used for capturing and broadcasting the video stream: | ||
| * Raspberry Pi 4B (8GB) by element14 | * Raspberry Pi 4B (8GB) by element14 | ||
| - | * Raspberry Pi CSI camera NoIR | + | * element14 |
| * USB-C cable | * USB-C cable | ||
| * Heatsinks | * Heatsinks | ||
| Line 20: | Line 20: | ||
| * SD-Card | * SD-Card | ||
| - | ==== Software ==== | + | ===== Software |
| The SD-Card has been flashed with an Ubuntu 20.10 arm64-raspi OS. | The SD-Card has been flashed with an Ubuntu 20.10 arm64-raspi OS. | ||
| Line 26: | Line 26: | ||
| * user name: pi | * user name: pi | ||
| * password: farmrobot | * password: farmrobot | ||
| + | |||
| Its connectable via ethernet or build in wifi module. | Its connectable via ethernet or build in wifi module. | ||
| Line 36: | Line 37: | ||
| '' | '' | ||
| - | === Setup === | + | ==== Setup ==== |
| sudo apt install v4l-utils | sudo apt install v4l-utils | ||
| + | sudo apt install ffmpeg | ||
| sudo apt install openssh-server sudo ufw allow ssh ssh pi@farmrobot | sudo apt install openssh-server sudo ufw allow ssh ssh pi@farmrobot | ||
| | | ||
| === ffmpeg stream === | === ffmpeg stream === | ||
| Bash script '' | Bash script '' | ||
| - | ffmpeg -f v4l2 -input_format h264 -video_size 852x480 -framerate 5 -i /dev/vide> | + | ffmpeg -f v4l2 -input_format h264 -video_size 852x480 -framerate 5 -i /dev/video0> |
| -c:v h264 -preset veryfast -b:v 500k -maxrate 500k -bufsize 10k \ | -c:v h264 -preset veryfast -b:v 500k -maxrate 500k -bufsize 10k \ | ||
| -pix_fmt yuv420p -g 10 \ | -pix_fmt yuv420p -g 10 \ | ||
| Line 49: | Line 51: | ||
| - | ==== v4l2m2m encoder on arm 64 bit OS ==== | + | ==== Optional |
| Using v4l2m2m encoder to have arm64 hardware support to efficiently encode a efficient h.265 stream which is sent via rtmp to a server which reencodes to hls to view video stream in a browser. | Using v4l2m2m encoder to have arm64 hardware support to efficiently encode a efficient h.265 stream which is sent via rtmp to a server which reencodes to hls to view video stream in a browser. | ||
| - | ffmpeg | + | Building |
| '' | '' | ||
| Line 198: | Line 200: | ||
| | | ||
| source ~/.profile | source ~/.profile | ||
| + | |||
| + | ===== Authors ===== | ||
| + | * Jonas Geßmann, Environment & Energy, jonas.gessmann@protonmail.com \\ | ||
| + | * Nicolas Wiehe | ||