-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
executable file
·41 lines (29 loc) · 979 Bytes
/
start.sh
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
#!/bin/bash
sudo lsof -i :1935
sudo lsof -i :8008
# Sprawdź czy porty nie są zajęte
lsof -i tcp:8554
fuser -k 8554/tcp
sudo ss -tulpn | grep '1935\|8008'
vlc rtsp://localhost:8554/stream
vlc rtsp://localhost:8554/stream
lsof -i tcp:5001
fuser -k 5001/tcp
node server.js
lsof -i tcp:5001
vlc rtsp://localhost:8554/stream
vlc rtsp://localhost:8554/stream
vlc rtsp://localhost:8554/stream
ffprobe -v error -rtsp_transport tcp -i rtsp://localhost:8554/stream
ffprobe -v error -rtsp_transport tcp -i rtsp://localhost:8554/stream
ffprobe -v error -rtsp_transport tcp -i rtsp://localhost:8554/stream
ffprobe -v error -rtsp_transport tcp -i rtsp://localhost:8554/stream
ffprobe -v error -rtsp_transport tcp -i localhost
ffprobe -v error -rtsp_transport tcp -i localhost
DEBUG=node-media-server node run.js
ffplay rtmp://localhost:1935/live/stream
# Wyczyść stare pliki
rm -rf received_frames/*
rm -rf media/live/*
# Uruchom aplikację
DEBUG=node-media-server node run.js