首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CVLC无法连接到D-Bus会话

CVLC无法连接到D-Bus会话
EN

Stack Overflow用户
提问于 2018-07-01 03:33:04
回答 1查看 1.5K关注 0票数 0

我在使用cvlc进行流式传输时遇到了问题。我目前使用的是Ubuntu 17.10和VLC 2.2.6,如下所示。我通过python子进程命令启动流。然后,将以下内容打印到终端。任何帮助都是非常感谢的。

代码语言:javascript
复制
VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
[000055e7514d3d28] dbus interface error: Failed to connect to the D-Bus session daemon: Failed to connect to socket /tmp/dbus-1msq9as6ke: Connection refused
[000055e7514d3d28] core interface error: no suitable interface module
[000055e7513c5a88] core libvlc error: interface "dbus,none" initialization failed
[000055e7514d3d28] dummy interface: using the dummy interface module...
[00007fc8c0006c18] x264 encoder: using cpu capabilities: MMX2 SSE2Fast LZCNT

[00007fc8c0006c18] x264 encoder: profile High, level 3.0

[00007fc8c0006c18] x264 encoder: final ratefactor: 38.84

[00007fc8cc4ffbd8] stream_out_transcode stream out: input interval 33333 (base 1)
[00007fc8cc4ffbd8] stream_out_transcode stream out: output interval 66666 (base 1)
[00007fc8c0006c18] x264 encoder: using SAR=715/714

[00007fc8c0006c18] x264 encoder: using cpu capabilities: MMX2 SSE2Fast LZCNT

[00007fc8c0006c18] x264 encoder: profile High, level 3.0

[00007fc8c8000e08] core input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 312 ms)
[00007fc8c8000e08] core input error: ES_OUT_RESET_PCR called
[00007fc8c8000e08] core input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 323 ms)
[00007fc8c8000e08] core input error: ES_OUT_RESET_PCR called
...

这是我用来启动子进程的代码。Opencv被输送到子进程的stdin中。

代码语言:javascript
复制
pipe_out = subprocess.Popen([ 'cvlc', "--demux=rawvideo", "--rawvid-fps=30",
                "--rawvid-width=715",
                "--rawvid-height=576",
                "--rawvid-chroma=RV24",
                "-",
                "--sout",
                "#transcode{vcodec=h264,vb=200,fps=15,width=715,height=576}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=:5052/stream.flv}"],
                stdin = subprocess.PIPE, stdout = subprocess.PIPE) 
EN

回答 1

Stack Overflow用户

发布于 2018-07-01 04:39:32

通过sudo chown username.username -R .dbus添加权限修复。

功劳归功于Harris

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51117928

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档