VLC解码器错误,而stream媒体

我正在使用vlc为两台摄像机重新传输rtspstream。 第二台摄像机没有audio,它的工作正常,第一个( 有audio )stream启动失败9次错误core decoder error: cannot continue streaming due to errors ”10 。 但是,如果stream开始,它会正常工作,直到重新启动。 但是,我得到一些错误的凸轮1(当stream正确启动):

 core mux warning: late buffer for mux input (145003) 

有时(很less)我得到这些错误:

mux_ts mux警告:包含太奇怪的dts(dts = -6272,old = 0,pcr = 0)

我在nux-dextop repo的CentOS7上使用VLC 2.2.4:

 VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89) 

它安装在没有桌面的虚拟机上,可能没有任何audio支持(没有虚拟audio硬件)

vlc第一台摄像机的启动脚本:

 #!/bin/bash URL="rtsp://192.168.40.201:554/axis-media/media.amp" #--rtsp-frame-buffer-size=200000 \ sudo -u vlc cvlc -v \ --loop --http-reconnect --http-continuous -I dummy $URL \ --logfile=/var/log/bird-cam1.log \ --sout '#transcode{}'\ ':duplicate{dst=std{access=livehttp{seglen=3,delsegs=true,numsegs=5,index=/var/www/html/live/cam1/mystream.m3u8,index-url=http://10.20.30.40/live/cam1/mystream-########.ts},mux=ts{use-key-frames},'\ 'dst=/var/www/html/live/cam1/mystream-########.ts},'\ 'dst=std{access=http,mux=ts,dst=:8081/video.mp4}}' 

vlc输出

 VLC media player 2.2.4 Weatherwax (revision 2.2.3-37-g888b7e89) [0000000000b4f348] core interface error: no suitable interface module [0000000000a50118] core libvlc error: interface "globalhotkeys,none" initialization failed [0000000000b4f348] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 [0000000000b4f348] core interface error: no suitable interface module [0000000000a50118] core libvlc error: interface "dbus,none" initialization failed [0000000000b4f348] dummy interface: using the dummy interface module... MultiFramedRTPSource::doGetNextFrame1(): The total received frame size exceeds the client's buffer size (100000). 75129 bytes of trailing data will be dropped! [00007fb95c0009b8] core input error: ES_OUT_RESET_PCR called [00007fb960005148] mux_ts mux warning: packet with too strange dts (dts=-6457,old=0,pcr=0) [00007fb9604d1228] mux_ts mux warning: packet with too strange dts (dts=-6457,old=0,pcr=0) [00007fb95c0009b8] core input error: ES_OUT_RESET_PCR called [00007fb96051d348] core decoder error: cannot continue streaming due to errors 

任何想法,为什么这个stream不是每次都开始? 两台摄像机均可传输RTSP。 编解码器h264 AVC,第一个摄像头audio是mp4a

更新:

确认audio引起了问题。 随着audiostream停止vlc工作得很好。 audio编解码器是AAC。 它被设置为32kHz采样/ 32 kbit / s。 现在是48kHz采样/ 64kbit / s – 仍是同样的问题。

更新:

我在AAC-16kHz的相机中尝试了不同的设置 – 结果相同。 将audio设置为G.711会导致“不支持编码”错误,但即使audio不工作,数据stream仍能够启动。