https://github.com/icetd/rtsptoweb
RtspToWeb
https://github.com/icetd/rtsptoweb
rtsp websocket
Last synced: 12 months ago
JSON representation
RtspToWeb
- Host: GitHub
- URL: https://github.com/icetd/rtsptoweb
- Owner: icetd
- Created: 2025-03-07T00:04:39.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-07T04:29:59.000Z (over 1 year ago)
- Last Synced: 2025-03-07T05:25:37.457Z (over 1 year ago)
- Topics: rtsp, websocket
- Language: C++
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## RtspToWeb
Read Rtsp url and send h264 raw stream to websocket frame by frame
## build
```
sudo apt install -y \
libavcodec-dev \
libavformat-dev \
libavfilter-dev \
libavdevice-dev \
libavutil-dev \
libswresample-dev \
libswscale-dev
git submodule update --init
mkdir build && cd build
cmake ..
make -j8
```
## use
example json send websocket client
```
{"cmd": "start","url": "rtsp://192.168.2.105:8555/unicast"}
{"cmd": "stop","url": "rtsp://192.168.2.105:8555/unicast"}
```
## configs
```
[server]
port = 9000 ; websocket port
threadnum = 4 ; EventLoop thread num
[log]
level = 4 ; log level
; TRACE = 0,
; DEBUG = 1,
; INFO = 2,
; WARN = 3,
; ERROR = 4,
; FATAL = 5,
basename = server ; log output base name
```