VLC OpenCV Stream Delays

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

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_Visu...

However not sure what functions to import.

Kindly provide an example.

With best regards,

edit retag flag offensive close merge delete

Comments

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

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

@berak interestingly no delays or stream errors were observed when RTSP test stream used as an feed for object tracking. https://www.wowza.com/html/mobile.html

karan_maverick gravatar imagekaran_maverick ( 2017-10-09 13:53:37 -0500 )edit