Ask Your Question

VLC OpenCV Stream Delays

asked 2017-10-08 15:49:30 -0500

karan_maverick gravatar image

I am using OpenCV to process the VLC streams RTP, RTSP and HTTP. From the command line as soon I initialize the stream process. The it takes 15- 25 seconds to initiaze the frames:

[h264 @ 04f63240] no frame! [h264 @ 04f63240] non-existing PPS 0 reference [h264 @ 04f63240] non-existing PPS 0 reference [h264 @ 04f63240] decode_slice_header error

camera/video resolution: 704x576

Intermittently as the stream runs these messages appear

[h264 @ 0563e020] co located POCs unavailable

[h264 @ 056ca0a0] reference picture missing during reorder [h264 @ 056ca0a0] Missing reference picture, default is 65524 [h264 @ 056ca0a0] Missing reference picture, default is 65534 [h264 @ 0563e020] mmco: unref short failure

Please advise how to speed up the frame initialization and debug these errors.

I am following this wiki page to connect libVLC API with OpenCV.

However not sure what functions to import.

Kindly provide an example.

With best regards,

edit retag flag offensive close merge delete


i don't think, we can help much with libVLC problems (they have a nice irc channel, "#videolan" on

you could also use cv::VideoCapture to read streams (given ffmpeg/gstreamer support builtin)

berak gravatar imageberak ( 2017-10-09 02:35:58 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-10-09 13:53:37 -0500

karan_maverick gravatar image

@berak interestingly no delays or stream errors were observed when RTSP test stream used as an feed for object tracking.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-10-08 15:49:30 -0500

Seen: 1,242 times

Last updated: Oct 08 '17