Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VLC OpenCV Stream Delays

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.

https://wiki.videolan.org/LibVLC_Visual_C%2B%2B/

However not sure what functions to import.

Kindly provide an example.

With best regards,