Minor fixed to README.md file in rtsp_ai_player

This commit is contained in:
Tuomas Järvinen
2024-07-14 19:54:46 +02:00
parent 8a7d681e5b
commit 43344365e3
+7 -8
View File
@@ -19,25 +19,24 @@ tar xf -C mediamtx mediamtx_v1.8.4_linux_amd64.tar.gz
### Launch mediamtx RTSP server: ### Launch mediamtx RTSP server:
```bash ```bash
Start mediamtx RSTP server: cd mediamtx
cd mediamtx ./mediamtx
./mediamtx
``` ```
### Play mp4 video file from RTSP server: ### Play mp4 video file from RTSP server:
```bash ```bash
ffmpeg -re -stream_loop -1 -i $HOME/azaion/models/videos/for_ai_short.mp4 -c copy -f rtsp rtsp://localhost:8554/live.stream ffmpeg -re -stream_loop -1 -i $HOME/azaion/models/videos/for_ai_short.mp4 -c copy -f rtsp rtsp://localhost:8554/live.stream
``` ```
### Test RTSP streaming with ffplay: ### Test RTSP streaming with ffplay:
```bash ```bash
ffplay -rtsp_transport tcp rtsp://localhost:8554/live.stream ffplay -rtsp_transport tcp rtsp://localhost:8554/live.stream
``` ```
### Compile and run rtsp_ai_player: ### Compile and run rtsp_ai_player:
```bash ```bash
cd autopilot/misc/rtsp_ai_player cd autopilot/misc/rtsp_ai_player
qmake6 && make qmake6 && make
./rtsp_ai_player ~/azaion/models/azaion/azaion-2024-06-28.onnx ./rtsp_ai_player ~/azaion/models/azaion/azaion-2024-06-28.onnx
``` ```