diff --git a/README.md b/README.md index 693e09e..701f37f 100644 --- a/README.md +++ b/README.md @@ -168,6 +168,7 @@ A collection of delicious docker recipes. - [x] ffmpeg - [x] ffmpeg-arm - [x] ffserver :beetle: +- [x] alexxit/go2rtc :camera: - [x] icecast :musical_note: - [x] live555 :camera: - [x] minidlna diff --git a/go2rtc/README.md b/go2rtc/README.md new file mode 100644 index 0000000..5d65ca7 --- /dev/null +++ b/go2rtc/README.md @@ -0,0 +1,17 @@ +go2rtc +====== + +[go2rtc][1] is a ultimate camera streaming application with support RTSP, RTMP, +HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc. + +## up and running + +```bash +$ mkdir -p data +$ wget -P data https://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_320x180.mp4 +$ vi data/go2rtc.yaml +$ docker compose up -d +$ curl http://127.0.0.1:1984 +``` + +[1]: https://github.com/AlexxIT/go2rtc diff --git a/go2rtc/data/go2rtc.yaml b/go2rtc/data/go2rtc.yaml new file mode 100644 index 0000000..ddb2ba2 --- /dev/null +++ b/go2rtc/data/go2rtc.yaml @@ -0,0 +1,29 @@ +api: + listen: ":1984" + #username: "admin" + #password: "pass" + +rtsp: + listen: ":8554" + #username: "admin" + #password: "pass" + #default_query: "video&audio" + +webrtc: + listen: ":8555" + +streams: + bunny: "ffmpeg:BigBuckBunny_320x180.mp4" + #usbcam: "ffmpeg:device?video=0&video_size=1280x720#video=h264" + +#publish: + #bunny: "rtmps://xxx.rtmp.youtube.com/live2/xxxx-xxxx-xxxx-xxxx-xxxx" + +log: + level: info + api: trace + exec: debug + ngrok: info + rtsp: warn + streams: error + webrtc: fatal diff --git a/go2rtc/docker-compose.yml b/go2rtc/docker-compose.yml new file mode 100644 index 0000000..f8750bc --- /dev/null +++ b/go2rtc/docker-compose.yml @@ -0,0 +1,14 @@ +version: "3.8" +services: + go2rtc: + image: alexxit/go2rtc + ports: + - "1984:1984" + - "8554:8554" + - "8555:8555" + volumes: + - ./data:/config + #devices: + # - /dev/video0 + #privileged: true + restart: unless