forked from insight-platform/Fake-RTSP-Stream
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (31 loc) · 1.13 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# docker run --name=rtsp-server --env=RTSP_PROTOCOLS=tcp -p 1935:1935 -p 8554:8554 -p 8888:8888 --restart=always --detach=true aler9/rtsp-simple-server
# docker run --name=ffmpeg --volume=/home/ivan/testsrc.mpg:/testsrc.mpg --link rtsp-server --restart=always --detach=true jrottenberg/
# ffmpeg -re -stream_loop -1 -i /testsrc.mpg -c copy -f rtsp rtsp://rtsp-server:8554/mystream
version: "3.3"
services:
rtsp-server:
ports:
- "1935:1935"
- "8554:8554"
- "8888:8888"
environment:
- RTSP_PROTOCOLS=tcp
image: aler9/rtsp-simple-server
stream-sample:
image: jrottenberg/ffmpeg
links:
- "rtsp-server:rtsp-server"
depends_on:
- rtsp-server
volumes:
- ./samples/testsrc.mpg:/tmp/file.mpg
command: -re -stream_loop -1 -i /tmp/file.mpg -c copy -f rtsp rtsp://rtsp-server:8554/stream-sample
maxim-1:
image: jrottenberg/ffmpeg
links:
- "rtsp-server:rtsp-server"
depends_on:
- rtsp-server
volumes:
- ./samples/output-maxim1.mp4:/tmp/file.mpg
command: -re -stream_loop -1 -i /tmp/file.mpg -c copy -f rtsp rtsp://rtsp-server:8554/maxim-1