Update readme for ASCII
This commit is contained in:
@@ -1193,6 +1193,10 @@ API examples:
|
|||||||
- You can use `rotate` param with `90`, `180`, `270` or `-90` values
|
- You can use `rotate` param with `90`, `180`, `270` or `-90` values
|
||||||
- You can use `hardware`/`hw` param [read more](https://github.com/AlexxIT/go2rtc/wiki/Hardware-acceleration)
|
- You can use `hardware`/`hw` param [read more](https://github.com/AlexxIT/go2rtc/wiki/Hardware-acceleration)
|
||||||
|
|
||||||
|
**PS.** This module also supports streaming to the server console (terminal) in the **animated ASCII art** format ([read more](https://github.com/AlexxIT/go2rtc/blob/master/internal/mjpeg/README.md)):
|
||||||
|
|
||||||
|
[](https://www.youtube.com/watch?v=sHj_3h_sX7M)
|
||||||
|
|
||||||
### Module: Log
|
### Module: Log
|
||||||
|
|
||||||
You can set different log levels for different modules.
|
You can set different log levels for different modules.
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
## Stream as ASCII to Terminal
|
## Stream as ASCII to Terminal
|
||||||
|
|
||||||
|
[](https://www.youtube.com/watch?v=sHj_3h_sX7M)
|
||||||
|
|
||||||
**Tips**
|
**Tips**
|
||||||
|
|
||||||
- this feature works only with MJPEG codec (use transcoding)
|
- this feature works only with MJPEG codec (use transcoding)
|
||||||
@@ -13,22 +15,24 @@
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
streams:
|
streams:
|
||||||
macarena: ffmpeg:macarena.mp4#video=mjpeg#hardware#width=210#height=59#raw=-r 10
|
gamazda: ffmpeg:gamazda.mp4#video=mjpeg#hardware#width=210#height=59#raw=-r 10
|
||||||
```
|
```
|
||||||
|
|
||||||
**API params**
|
**API params**
|
||||||
|
|
||||||
- `color` - foreground color, values: empty, `8`, `256`, `rgb`
|
- `color` - foreground color, values: empty, `8`, `256`, `rgb`, [SGR](https://en.wikipedia.org/wiki/ANSI_escape_code)
|
||||||
- `back` - background color, values: empty, `8`, `256`, `rgb`
|
- example: `30` (black), `37` (white), `38;5;226` (yellow)
|
||||||
|
- `back` - background color, values: empty, `8`, `256`, `rgb`, [SGR](https://en.wikipedia.org/wiki/ANSI_escape_code)
|
||||||
|
- example: `40` (black), `47` (white), `48;5;226` (yellow)
|
||||||
- `text` - character set, values: empty, one char, `block`, list of chars (in order of brightness)
|
- `text` - character set, values: empty, one char, `block`, list of chars (in order of brightness)
|
||||||
- example: `%20` (space), `block` (block elements), `ox` (two chars)
|
- example: `%20` (space), `block` (keyword for block elements), `ox` (two chars)
|
||||||
|
|
||||||
**Examples**
|
**Examples**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
% curl "http://192.168.1.123:1984/api/stream.ascii?src=macarena"
|
% curl "http://192.168.1.123:1984/api/stream.ascii?src=gamazda"
|
||||||
% curl "http://192.168.1.123:1984/api/stream.ascii?src=macarena&color=256"
|
% curl "http://192.168.1.123:1984/api/stream.ascii?src=gamazda&color=256"
|
||||||
% curl "http://192.168.1.123:1984/api/stream.ascii?src=macarena&back=256&text=%20"
|
% curl "http://192.168.1.123:1984/api/stream.ascii?src=gamazda&back=256&text=%20"
|
||||||
% curl "http://192.168.1.123:1984/api/stream.ascii?src=macarena&back=8&text=%20%20"
|
% curl "http://192.168.1.123:1984/api/stream.ascii?src=gamazda&back=8&text=%20%20"
|
||||||
% curl "http://192.168.1.123:1984/api/stream.ascii?src=macarena&text=helloworld"
|
% curl "http://192.168.1.123:1984/api/stream.ascii?src=gamazda&text=helloworld"
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user