Skip to content

Instantly share code, notes, and snippets.

@KonradIT
Forked from GOROman/gist:6248503
Last active April 5, 2020 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KonradIT/8554673 to your computer and use it in GitHub Desktop.
Save KonradIT/8554673 to your computer and use it in GitHub Desktop.
GoPro Live Preview with OpenCV in C ++
#include <opencv2/opencv.hpp>
int main()
{
cv::VideoCapture cap( "http://10.5.5.9:8080/live/amba.m3u8" );
cv::namedWindow( "GoPro" );
cv::Mat frame;
do {
cap >> frame;
cv::imshow( "GoPro", frame );
} while ( cv::waitKey( 30 ) < 0 );
return 0;
}
@snowbeto
Copy link

Hello, I want to access the goPro Hero 4 but I get this error:

GStreamer Plugin: Embedded video playback halted; module source reported: Not Found
OpenCV Error: Unspecified error (GStreamer: unable to start pipeline
) in icvStartPipeline, file /home/daniel/Downloads/opencv/modules/videoio/src/cap_gstreamer.cpp, line 380
terminate called after throwing an instance of 'cv::Exception'
what(): /home/daniel/Downloads/opencv/modules/videoio/src/cap_gstreamer.cpp:380: error: (-2) GStreamer: unable to start pipeline
in function icvStartPipeline

You you have an idea about how to solve it?

Thanks

Daniel V.

@garyZ21
Copy link

garyZ21 commented Jun 7, 2016

@snowbeto,

I'm trying to do the same thing as well. Have you had any luck in resolving this issue? Any leads will be helpful.

Thanks,
Gary Z.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment