vlc dshow:// :dshow-adev="麦克风 (Realtek High Definition Audio)"
同时打开桌面+麦克风
vlc screen:// --screen-fps=10 --screen-width=1920 :input-slave=dshow:// :dshow-adev="麦克风 (Realtek High Definition Audio)"
打开摄像头
vlc dshow:// :dshow-vdev="Integrated Camera"
打开摄像头、麦克风
vlc dshow:// :dshow-vdev="Integrated Camera" :dshow-adev="麦克风 (Realtek High Definition Audio)"
串流摄像头+麦克风(注意:杀毒软件对摄像头的防护、防火墙限制、摄像头是否在使用中)
服务端:
vlc dshow:// :dshow-vdev="Integrated Camera" :dshow-adev="麦克风 (Realtek High Definition Audio)" :dshow-size=320*240 :sout=#transcode{vcodec=VP80,vb=2000,acodec=vorb,ab=128,channels=2,samplerate=44100}:duplicate{dst=display,dst=rtp{sdp=rtsp://:8554/test}}
客户端:
vlc rtsp://127.0.0.1:8554/test
虚拟摄像头串流
服务端:
vlc -vvv dshow:// :dshow-adev="virtual-audio-capturer" :dshow-vdev="screen-capture-recorder" --sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:rtp{sdp=rtsp://:8554/} :no-sout-all :sout-keep
客户端:
vlc rtsp://127.0.0.1:8554/
抓屏推流
服务端:
vlc -vvv screen:// --screen-fps=10 --screen-width=1920 --sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100,scodec=none}:rtp{sdp=rtsp://:8554/} :no-sout-all :sout-keep
客户端:
vlc rtsp://127.0.0.1:8554/
————————————————
版权声明:本文为CSDN博主「beiger」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/dgnankai/article/details/126267038
Categories