-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (49 loc) · 1.16 KB
/
Makefile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
SERVER = http://rtsp.yunjiaiot.cn:18081
SECRET = fpmpassword
STREAM_ID = abc
server:
npx nodemon websocket-relay $(SECRET) 18081 18082
http:
npx http-server . -d False -s --cors -c-1 -p 8099
convert:
ffmpeg \
-i rtsp://admin:[email protected]:554/h264/1/sub/av_stream \
-an \
-f mpegts \
-codec:v mpeg1video -s 640x480 -b:v 100k -bf 0 \
-muxdelay 0.001 \
$(SERVER)/$(SECRET)/$(STREAM_ID)
convert-mac:
ffmpeg \
-f avfoundation -i "0"\
-framerate 50 -video_size 640x480 \
-f mpegts \
-codec:v mpeg1video -s 640x480 -b:v 10k -bf 0 \
-muxdelay 0.001 \
$(SERVER)/$(SECRET)/$(STREAM_ID)
convert-test:
ffmpeg \
-stream_loop -1 \
-re -i \
test.mp4 \
-an \
-f mpegts \
-codec:v mpeg1video -s 640x480 -b:v 100k -bf 0 \
-muxdelay 0.001 \
$(SERVER)/$(SECRET)/$(STREAM_ID)
convert-local:
ffmpeg \
-stream_loop -1 \
-re -i \
test.mp4 \
-an \
-f mpegts \
-codec:v mpeg1video -s 640x480 -b:v 100k -bf 0 \
-muxdelay 0.001 \
$(SERVER)/$(SECRET)/$(STREAM_ID)
docker-build:
docker build -t yfsoftcom/rtsp-websocket .
docker-push:
docker push yfsoftcom/rtsp-websocket
docker-run:
docker run -p 18081:8081 -p 18082:8082 -d yfsoftcom/rtsp-websocket