Skip to content

Commit 5619323

Browse files
authored
docs(io): new video source props (#3960)
Signed-off-by: Jiyong Huang <huangjy@emqx.io>
1 parent 66aed42 commit 5619323

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

docs/en_US/guide/sources/plugin/video.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,23 @@ The video format. Run `ffmpeg -formats` to get all supported format, default to
5454

5555
The video codec. Check https://www.ffmpeg.org/general.html#Video-Codecs for all supported codec, default to 'mjpeg'
5656

57+
### debugResp
58+
59+
Whether to output the ffmpeg response to the log for debugging. Default to `false`.
60+
61+
### inputArgs
62+
63+
A map of input arguments to pass to ffmpeg input. This allows customizing ffmpeg input options like `-rtsp_transport`,
64+
`-fflags`, etc. For example:
65+
66+
```yaml
67+
default:
68+
url: rtsp://localhost:8554/stream
69+
inputArgs:
70+
rtsp_transport: tcp
71+
fflags: nobuffer
72+
```
73+
5774
## Override the default settings
5875
5976
If you have a specific connection that need to overwrite the default settings, you can create a customized section. In the previous sample, we create a specific setting named with `ext`. Then you can specify the configuration with option `CONF_KEY` when creating the stream definition (see [stream specs](../../../sqls/streams.md) for more info).

docs/zh_CN/guide/sources/plugin/video.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ dedup:
5353

5454
视频编码。访问 https://www.ffmpeg.org/general.html#Video-Codecs 以获取所有支持的编码。默认为 'mjpeg'。
5555

56+
### debugResp
57+
58+
是否将 ffmpeg 的响应输出到日志以进行调试。默认为 `false`。
59+
60+
### inputArgs
61+
62+
传递给 ffmpeg 输入的参数映射。这允许自定义 ffmpeg 输入选项,如 `-rtsp_transport`、`-fflags` 等。例如:
63+
64+
```yaml
65+
default:
66+
url: rtsp://localhost:8554/stream
67+
inputArgs:
68+
rtsp_transport: tcp
69+
fflags: nobuffer
70+
```
71+
5672
## 覆盖默认设置
5773

5874
如果您有特定的连接需要覆盖默认设置,则可以创建一个自定义部分。 在上一个示例中,我们创建一个名为 `ext` 的特定设置。 然后,您可以在创建流定义时使用选项 `CONF_KEY` 指定配置(有关更多信息,请参见 [stream specs](../../../sqls/streams.md))。

0 commit comments

Comments
 (0)