Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jun 15, 2020
1 parent 8a786b5 commit e644587
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ Features:

#### Setup publisher authentication

1. Start the server and set a username and a password:
```
./rtsp-simple-server --publish-user=admin --publish-pass=mypassword
```
Start the server and set a username and a password:
```
./rtsp-simple-server --publish-user=admin --publish-pass=mypassword
```

2. Only publishers that know both username and password will be able to publish:
```
ffmpeg -re -stream_loop -1 -i file.ts -c copy -f rtsp rtsp://admin:mypassword@localhost:8554/mystream
```
Only publishers that know both username and password will be able to publish:
```
ffmpeg -re -stream_loop -1 -i file.ts -c copy -f rtsp rtsp://admin:mypassword@localhost:8554/mystream
```

WARNING: RTSP is a plain protocol, and the credentials can be intercepted and read by malicious users (even if hashed, since the only supported hash method is md5, which is broken). If you need a secure channel, use RTSP inside a VPN.

#### How to perform remuxing, re-encoding, compression
#### Remuxing, re-encoding, compression

_rtsp-simple-server_ is an RTSP server: it publishes existing streams and does not touch them. It is not a media server, that is a far more complex and heavy software that can receive existing streams, re-encode them and publish them.

Expand Down Expand Up @@ -101,10 +101,10 @@ Flags:

Install Go ≥ 1.12, download the repository, open a terminal in it and run:
```
go build -o rtsp-simple-server . && ./rtsp-simple-server
go run .
```

If you have Docker installed, you can perform the entire operation with a single command:
You can perform the entire operation inside Docker with:
```
make run
```
Expand Down

0 comments on commit e644587

Please sign in to comment.