作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在使用 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
...
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)
最佳答案
通过 sudo chown username.username -R .dbus
添加权限来修复它.
归功于 Harris .
关于python - CVLC 无法连接到 D-Bus session ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51117928/
我在使用 cvlc 流式传输时遇到问题。我目前正在使用 Ubuntu 17.10 和 VLC 2.2.6,如下所示。我通过 python 子进程命令启动流。之后,将以下内容打印到终端。任何帮助表示赞赏
我正在尝试将 rtsp 流传输到 flv 流,以便能够使用 vlc 在浏览器中显示它。我正在使用以下命令: cvlc rtsp://xxx.xxx.xxx.xxx/xxx/xxx :sout='#tr
我有一个带有 OV5647 摄像头模块的 Raspberry Pi,我用它来流式传输视频。 raspivid 采用名为 --mode, -md 的命令行参数,它提供了相机可以设置使用的几种模式。 Mo
我是一名优秀的程序员,十分优秀!