增加 VLC Camera Stream 服务.

Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
ithink.chan 2019-12-10 13:23:49 +08:00
parent 03cbc5e80b
commit d9bb3f7c87
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
# VLC Camera Stream 服务
VLC 命令行访问摄像头并重定向到 HTTP 服务命令如下(适当更换 video0
```sh
vlc v4l2:///dev/video0 input_stream --sout="#transcode{vcodec=WMV2,vb=800,acodec=wma2,ab=128,channels=2,samplerate=44100,scodec=none}:http{mux=asf,dst=:8004/}" --no-sout-all
```
如果不知道参数,也可以在 VLC->Media->Stream->Capture Device 中选择 /dev/video0之后 Add HTTP将会生成参数[参考](https://my.oschina.net/lanshu/blog/732870))。