-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker_command.txt
33 lines (18 loc) · 1.1 KB
/
docker_command.txt
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
docker build -t rtspserver .
docker run --name hi -i -t rtspserver
docker rmi $(docker images |grep 'imagename')
docker rm [name]
systemctl start docker
hostname -i
docker run -i --name hi -p 1234:1234 -t rtspserver
--network host
docker run -i --name hi --network host -t rtspserver
gst-launch-1.0 audiotestsrc ! audioconvert ! queue ! r. videotestsrc is-live=1 ! queue ! x264enc tune=zerolatency byte-stream=true threads=1 key-int-max=15 intra-refresh=true ! video/x-h264,width=640,height=480,framerate=10/1 ! rtspclientsink debug=1 latency=0 location=rtsp://10.210.9.77:1234/test/record name=r
filesrc location=
gst-launch-1.0 videotestsrc is-live=1 ! queue ! x264enc tune=zerolatency byte-stream=true threads=1 key-int-max=15 intra-refresh=true ! video/x-h264,width=640,height=480,framerate=10/1 ! rtspclientsink debug=1 latency=0 location=rtsp://10.210.9.77:1234/test/record name=r
`hostname -I | awk '{print $1}'`
./build/rtsprelay -p 1234 -i `hostname -I | awk '{print $1}'`
docker network connect host alpine1
docker start name
docker container inspect alpine1
-d detach -i cmd