From c2bda448c6e33d0a3e3ecde00eca813853a86f8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tuomas=20J=C3=A4rvinen?= Date: Wed, 2 Oct 2024 19:40:10 +0200 Subject: [PATCH] Updated build instructions of rtsp_ai_player for OPI5 --- misc/rtsp_ai_player/README.md | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/misc/rtsp_ai_player/README.md b/misc/rtsp_ai_player/README.md index dda7853..8410a89 100644 --- a/misc/rtsp_ai_player/README.md +++ b/misc/rtsp_ai_player/README.md @@ -83,3 +83,40 @@ qmake6 CONFIG+=gimbal && make ./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] +``` +