NotePublic/Software/Applications/VLC/VLC_Camera_Stream_服务.md

10 lines
505 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# VLC Camera Stream 服务
VLC 命令行访问摄像头并重定向到 HTTP 服务命令如下(适当更换 video0
```bash
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))。