0
我有使用vlc从相机录制视频流的问题。 当我运行命令vlc rtsp://172.X.X.X/live.sdp
vlc以适当的方式显示视频。当我运行命令使用vlc从相机打开rtsp流
vlc rtsp://172.X.X.X/live.sdp --run-time=5 --sout=file/ps:test6.mpg vlc://quit
有新创建的文件,但它重量为0或4K,我无法打开它。在控制台中我得到了下面的日志哪里不对 ?
VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
[0000000000a31148] core libvlc: Uruchamianie vlc z domyślnym
interfejsem. Użyj 'cvlc', aby używać vlc bez interfejsu.
[00007f42cc003258] mux_ps mux: Open
[00007f42cc003258] core mux error: cannot add this stream
[00007f42cc04b168] core decoder error: cannot create packetizer
output (mlaw)
[00007f42ec002918] core input error: ES_OUT_RESET_PCR called
[00007f42cc042988] core decoder error: cannot continue streaming
due to errors
[00007f42ec002918] core input error: ES_OUT_RESET_PCR called
[00007f42cc003258] mux_ps mux: Close
[00007f42cc003258] idummy demux: command `quit'
QObject::~QObject: Timers cannot be stopped from another thread
`