Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to add openh264 to opencv

i want stream IP camera that compression is H264 i download open.h264 from openh and add system path var OPENH264_LIBRARY to dll files and even copy dll to my exe path but when i get image from camera this errors occur :

[h264 @ 000001ef9fd88c40] missing picture in access unit with size 120
[h264 @ 000001ef9fd88c40] No start code is found.
[h264 @ 000001ef9fd88c40] Error splitting the input into NAL units.

my code :

video_path = "http://admin:[email protected]:80/video.cgi?&.H264";
mCamera = new cv::VideoCapture();
mCamera->set(CV_CAP_PROP_FOURCC, CV_FOURCC('X', '2', '6', '4'));
isOpenedFile = mCamera->open(video_path);