【问题标题】:CVLC fails to connect to D-Bus sessionCVLC 无法连接到 D-Bus 会话
【发布时间】:2018-12-09 14:30:41
【问题描述】:

我在使用 cvlc 流式传输时遇到问题。我目前正在使用 Ubuntu 17.10 和 VLC 2.2.6,如下所示。我通过 python 子进程命令启动流。之后,将以下内容打印到终端。任何帮助表示赞赏。

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 通过管道传输到子进程的标准输入中。

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) 

【问题讨论】:

    标签: python ubuntu vlc dbus


    【解决方案1】:

    通过sudo chown username.username -R .dbus 添加权限来修复它。
    归功于Harris

    【讨论】:

      猜你喜欢
      • 2019-01-19
      • 1970-01-01
      • 2019-10-10
      • 2017-11-03
      • 1970-01-01
      • 2014-10-27
      • 1970-01-01
      • 2018-06-04
      • 1970-01-01
      相关资源
      最近更新 更多