1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-28 09:08:50 +02:00

update v4l2rtspserver

This commit is contained in:
kev 2021-03-26 11:48:13 +08:00
parent 8713f1d5fe
commit 7b589c4849
3 changed files with 20 additions and 1 deletions

View File

@ -3,4 +3,13 @@ v4l2rtspserver
[v4l2rtspserver][1] is a RTSP Server for V4L2 device capture supporting HEVC/H264/JPEG/VP8/VP9.
## up and running
```bash
$ docker-compose up -d
$ vlc rtsp://127.0.0.1/live
$ ffmpeg -rtsp_transport tcp -i rtsp://127.0.0.1/live -acodec copy -vcodec copy -t 60 cctv.mp4
$ vlc cctv.mp4
```
[1]: https://github.com/mpromonet/v4l2rtspserver

View File

@ -0,0 +1,10 @@
version: "3.8"
services:
v4l2rtspserver:
image: mpromonet/v4l2rtspserver:latest-arm32v7
command: -v -P554 -H640 -W480 -F5 -ulive
ports:
- "554:554"
devices:
- /dev/video0
restart: unless-stopped

View File

@ -2,7 +2,7 @@ version: "3.8"
services:
v4l2rtspserver:
image: mpromonet/v4l2rtspserver
command: -H640 -W480 -P554
command: -v -P554 -H640 -W480 -F5 -ulive
ports:
- "554:554"
devices: