mirror of
https://github.com/azaion/autopilot.git
synced 2026-04-22 07:06:35 +00:00
Updated build instructions of rtsp_ai_player for OPI5
This commit is contained in:
@@ -83,3 +83,40 @@ qmake6 CONFIG+=gimbal && make
|
|||||||
./rtsp_ai_player ~/azaion/models/onnx/yolov8m.onnx
|
./rtsp_ai_player ~/azaion/models/onnx/yolov8m.onnx
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## How to use application on Orange PI 5.
|
||||||
|
|
||||||
|
### Install ffmpeg and mediamtx to Ubuntu PC:
|
||||||
|
```bash
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install ffmpeg
|
||||||
|
wget https://github.com/bluenviron/mediamtx/releases/download/v1.8.4/mediamtx_v1.8.4_linux_amd64.tar.gz
|
||||||
|
mkdir mediamtx
|
||||||
|
tar xf mediamtx_v1.8.4_linux_amd64.tar.gz -C mediamtx
|
||||||
|
```
|
||||||
|
|
||||||
|
### Launch RTSP server in Ubuntu PC
|
||||||
|
```bash
|
||||||
|
cd mediamtx
|
||||||
|
./mediamtx
|
||||||
|
```
|
||||||
|
|
||||||
|
### Play RTSP video stream in Ubuntu PC
|
||||||
|
```bash
|
||||||
|
ffmpeg -re -stream_loop -1 -i SOME_MP4_VIDEO_FILE -c copy -f rtsp rtsp://localhost:8554/live.stream
|
||||||
|
```
|
||||||
|
|
||||||
|
### Test RTSP stream with ffplay in Ubuntu PC:
|
||||||
|
```bash
|
||||||
|
ffplay -rtsp_transport tcp rtsp://localhost:8554/live.stream
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compile and launch RTSP AI PLAYER in Orange PI 5:
|
||||||
|
Modify autopilot/misc/rtsp_ai_player/aiengineconfig.h and change 192.168.168.91 to IP address of RTSP source
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd autopilot/misc/rtsp_ai_player
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
qmake6 CONFIG+=opi5 .. && make -j8 && ./rtsp_ai_player [RKNN_MODEL_FILE]
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user