-
-
Notifications
You must be signed in to change notification settings - Fork 55.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cv::VideoCapture.open(RTSP URL string) crashes on Android and iOS. #11995
Comments
There is no support for RSTP streams in builds for Android platform. Stack trace shows code from builtin OpenCV MJPEG codec. It is hard to say what is going wrong, but this codec definitely can't handle RSTP streams. You need to rebuild OpenCV with FFmpeg / GStreamer for Android (they can handle RSTP streams). |
We've solved the problem by aplying the following flags for compilation: The illegal alignment error lead us to use those options. |
Have the same error with a simple mp4 file, but rebuilding opencv with the flags doesn't seem to help... |
@takacsd We had this problem on a 32 bits armeabi-v7a Android phone. |
Yes, it is also a 32 bits armeabi-v7a Android phone, with the same error at the same place. |
Hi Omatrot, |
System information (version)
Detailed description
I'm using OpenCV native C++ code.
The following code:
cv::VideoCature.open("http://192.168.1.107/videostream.asf?user=admin&pwd=&resolution=32");
crashes and show the following variables (here in Android Studio):
cv::param_VIDEOCAPTURE_DEBUG = Cannot find the execution point
Signal = SIGBUS (signal SIGBUS: illegal alignment)
__cv_trace_location_extra_fn118 = {cv::utils::trace::details::Region::LocationExtraData * | 0x0} NULL
__cv_trace_location_fn118 = {const LocationStaticStorage}
this = {cv::VideoCapture * | 0x8bf893f0} 0x8bf893f0
filename = {const cv::String &}
__region_fn = {const cv::utils::trace::details::Region}
Please note that the URL is a RTSP stream. The same code works fine on Linux.
I'm sorry I can't find a way to copy the stack trace in Android Studio.
The last frame is:
cv::String::deallocate() 0x000000008b0829ce
Steps to reproduce
cv::VideoCapture cap;
cap.open("http://192.168.1.107/videostream.asf?user=admin&pwd=&resolution=32");
The text was updated successfully, but these errors were encountered: