From d9bb3f7c878ae2a6275f28aeb3092100b81e1ece Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Tue, 10 Dec 2019 13:23:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20VLC=20Camera=20Stream=20?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- Software/Applications/VLC/VLC_Camera_Stream_服务.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Software/Applications/VLC/VLC_Camera_Stream_服务.md diff --git a/Software/Applications/VLC/VLC_Camera_Stream_服务.md b/Software/Applications/VLC/VLC_Camera_Stream_服务.md new file mode 100644 index 0000000..0c845fb --- /dev/null +++ b/Software/Applications/VLC/VLC_Camera_Stream_服务.md @@ -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))。