使用来自网络摄像头的VLC流式传输视频 - errormain访问错误:套接字绑定错误(权限被拒绝)

时间:2015-07-23 07:14:40

标签: sockets video video-streaming vlc

我想使用旧笔记本电脑的网络摄像头(我的笔记本电脑是Packard Bell EasyNote MX37)来制作流媒体视频。

我尝试按照Ubuntu 14.04 LTS中的tutorial来通过VLC进行流式传输视频。

不幸的是,当我应用此命令行时,我卡住了:

cvlc v4l2:///dev/video0 :v4l2-standard= :input-slave=alsa://hw:0,0
:live-caching=300
:sout="#transcode{vcodec=WMV2,vb=800,acodec=wma2,ab=128,channels=2,samplerate=44100}:http{dst=:8080/stream.wmv}"

确实,我收到此错误消息:

VLC media player 2.1.6 Rincewind (revision 2.1.6-0-gea01d28)
[0x19....] dummy interface: using the dummy interface module...
[0x7f1................] main access out error: socket bind error (Permission denied)
[0x7f1................] main access out error: socket bind error (Permission denied)
[0x7f1................] main access out error: cannot create socket(s) for HTTP host
[0x7f1................] access_output_http access out error: cannot start HTTP server
[0x7f1................] stream_out_standard stream out error: no suitable sout access module for `http/asf://:8080/stream.wmv'
[0x7f1................] main stream output error: stream chain failed for `transcode{vcodec=WMV2,vb=800,acodec=wma2,ab=128,channels=2,samplerate=44100}:http{dst=:8080/stream.wmv}'
[0x7f1................] main input error: cannot start stream output instance, aborting

非常感谢你的帮助!

PS:目标是密切关注我的停车位。

1 个答案:

答案 0 :(得分:0)

就像错误消息所示,VLC不允许打开您指定的端口。这可能是因为它已被您操作系统上的其他应用程序使用,或者因为您的用户帐户根本没有打开端口所需的权限。考虑使用不同的端口,如32000等。