|
1 |
| -# CES : Camera Emulation Server 1.0.0 |
| 1 | +# CES : Camera Emulation Server 1.1.0 |
2 | 2 |
|
3 | 3 | [](#license)
|
4 |
| -[](https://github.com/EtixLabs/CES/releases/latest) |
| 4 | +[](https://github.com/EtixLabs/CES/releases/latest) |
5 | 5 |
|
6 | 6 | ### RTSP server with authentication for testing purposes
|
7 | 7 |
|
8 | 8 | ## Dependencies
|
9 | 9 |
|
10 | 10 | * `docker`
|
11 | 11 |
|
12 |
| -## Examples of use |
| 12 | +## Usage from the official docker repository |
13 | 13 |
|
14 |
| -To create a simple test stream, just launch the following command: |
15 |
| -`docker run -p 8554:8554 ullaakut/CES` |
| 14 | +You can create a stream by launching the official docker image: |
| 15 | +`docker run --rm -p 8554:8554 ullaakut/ces` |
16 | 16 |
|
17 |
| -You can now access it on the URL `rtsp://0.0.0.0:8554/live.sdp`. |
| 17 | +With default options, stream will be available at `rtsp://0.0.0.0:8554/live.sdp` |
| 18 | +You can use [override options](#override-options) |
18 | 19 |
|
19 |
| -To create a test stream with credentials, just add the RTSP_PASSWORD and RTSP_USERNAME arguments like so: |
20 |
| - |
21 |
| -`docker run -p 8554:8554 -e RTSP_PASSWORD=mypass -e RTSP_USERNAME=myusername` |
22 |
| - |
23 |
| -You can now access it on the URL `rtsp://myusername:[email protected]:8554/live.sdp`. |
24 |
| - |
25 |
| -### Usage |
| 20 | +## Override options |
26 | 21 |
|
27 | 22 | ```
|
28 |
| -docker run \ |
29 |
| - [-e RTSP_LISTEN_ADDRESS=your_listen_address] \ |
| 23 | +docker run --rm \ |
| 24 | + [-e RTSP_ADDRESS=your_address] \ |
30 | 25 | [-e RTSP_PORT=your_port] -p your_port:your_port \
|
31 |
| - [-e RTSP_PATH=your_path] \ |
| 26 | + [-e RTSP_ROUTE=your_route] \ |
32 | 27 | [-e RTSP_INPUT_FILE=your_input_file] \
|
33 | 28 | [-e RTSP_USERNAME=your_username] \
|
34 | 29 | [-e RTSP_PASSWORD=your_password] \
|
35 | 30 | [-e RTSP_RESOLUTION='your_width'x'your_height'] \
|
36 | 31 | [-e RTSP_FRAMERATE=your_framerate] \
|
37 | 32 | [-e GST_DEBUG=your_debug_level] \
|
38 |
| - ullaakut/CES |
| 33 | + ullaakut/ces |
39 | 34 | ```
|
40 | 35 |
|
41 |
| -### Parameters |
42 |
| - |
43 |
| -All of these options override the default parameters for CES |
44 |
| -* `your_listen_address`: The address you want your server to listen on [default: `0.0.0.0`] |
45 |
| -* `your_port`: The port that you want your server to listen on [default: `8554`] _Don't forget to also expose the port in your container with the -p option like in the example above_ |
46 |
| -* `your_path`: The rtsp path at which you want your stream to be served [default: `/live.sdp`] |
47 |
| -* `your_input_file`: The video file you want to broadcast using CES [default: none] |
48 |
| -* `your_username`: If you want to enable security on your stream, using this option will allow you to specify the username required to access your stream [default: none] |
49 |
| -* `your_password`: If you want to enable security on your stream, using this option will allow you to specify the password required to access your stream [default: none] |
50 |
| -* `'your_width'x'your_height'`: The resolution at which you want to stream [default: `352x288`] |
51 |
| -* `your_framerate`: The desired output framerate for your stream [default: `25`] |
52 |
| -* `your_debug_level`: The desired debug level for GStreamer [default: none] _See [this link](https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html) for more information on this variable_ |
| 36 | +All of these environment variables override the default parameters for CES |
| 37 | +* `RTSP_ADDRESS`: The address you want your server to listen on [default: `0.0.0.0`] |
| 38 | +* `RTSP_PORT`: The port that you want your server to listen on [default: `8554`] _Don't forget to also expose the port in your container with the -p option like in the example above_ |
| 39 | +* `RTSP_ROUTE`: The rtsp route at which you want your stream to be served [default: `/live.sdp`] |
| 40 | +* `RTSP_INPUT_FILE`: The video file you want to broadcast using CES [default: none] |
| 41 | +* `RTSP_USERNAME`: If you want to enable security on your stream, using this option will allow you to specify the username required to access your stream [default: none] |
| 42 | +* `RTSP_PASSWORD`: If you want to enable security on your stream, using this option will allow you to specify the password required to access your stream [default: none] |
| 43 | +* `RTSP_RESOLUTION`: The resolution at which you want to stream [default: `352x288`] |
| 44 | +* `RTSP_FRAMERATE`: The desired output framerate for your stream [default: `25`] |
| 45 | +* `GST_DEBUG`: The desired debug level for GStreamer [default: none] _See [this link](https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html) for more information on this variable_ |
| 46 | + |
| 47 | +## Build and tweak yourself |
| 48 | + |
| 49 | +You can tweak CES and create your own docker image. For this simply run: |
| 50 | +`./build.sh` |
| 51 | + |
| 52 | +Then launch it with: |
| 53 | +`docker run --rm -p 8554:8554 ces` |
| 54 | + |
| 55 | +With default options, stream will be available at `rtsp://0.0.0.0:8554/live.sdp` |
| 56 | +You can use [override options](#override-options) |
53 | 57 |
|
54 | 58 | ## License
|
55 | 59 |
|
|
0 commit comments