# Receiving RTSP stream from Insta360 Pro 2 and other cameras

**URL:** <https://discourse.libcinder.org/t/receiving-rtsp-stream-from-insta360-pro-2-and-other-cameras/1714>\
**Category:** Using Cinder\
**Created:** [September 23, 2020, 8:19am UTC](https://discourse.libcinder.org/t/receiving-rtsp-stream-from-insta360-pro-2-and-other-cameras/1714 "2020-09-23T08:19:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eight\_io](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/eight_io/32/57_2.png) [@eight\_io](https://discourse.libcinder.org/u/eight_io)\
**Post date:** [September 23, 2020, 8:19am UTC](https://discourse.libcinder.org/t/receiving-rtsp-stream-from-insta360-pro-2-and-other-cameras/1714/1 "2020-09-23T08:19:31Z")

</div>

Any solutions out there with low latency? I am trying to built an opencv-based ([https://gist.github.com/benjaminbojko/0bd9659b62f1bb181520](https://gist.github.com/benjaminbojko/0bd9659b62f1bb181520)) streamer on cinder 0.9.1 / Catalina, and am getting linker errors about libraries absence:

_Ld /Users/eigh\_io/repos/cinder\_0.9.0\_mac/blocks/Cinder-OpenCV3-master/samples/ocvCapture/xcode/build/Debug/ocvCapture.app/Contents/MacOS/ocvCapture normal x86\_64 (in target ‘ocvCapture’ from project ‘ocvCapture’)_

- cd /Users/eigh\_io/repos/cinder\_0.9.0\_mac/blocks/Cinder-OpenCV3-master/samples/ocvCapture/xcode\*
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -target x86\_64-apple-macos10.8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk -L/Users/eigh\_io/repos/cinder\_0.9.0\_mac/blocks/Cinder-OpenCV3-master/samples/ocvCapture/xcode/build/Debug -F/Users/eigh\_io/repos/cinder\_0.9.0\_mac/blocks/Cinder-OpenCV3-master/samples/ocvCapture/xcode/build/Debug -filelist /Users/eigh\_io/repos/cinder\_0.9.0\_mac/blocks/Cinder-OpenCV3-master/samples/ocvCapture/xcode/build/ocvCapture.build/Debug/ocvCapture.build/Objects-normal/x86\_64/ocvCapture.LinkFileList -dead\_strip -Xlinker -object\_path\_lto -Xlinker /Users/eigh\_io/repos/cinder\_0.9.0\_mac/blocks/Cinder-OpenCV3-master/samples/ocvCapture/xcode/build/ocvCapture.build/Debug/ocvCapture.build/Objects-normal/x86\_64/ocvCapture\_lto.o -Xlinker -export\_dynamic -Xlinker -no\_deduplicate -stdlib=libc++ …/…/…/…/…/lib/libcinder\_d.a …/…/…/lib/macosx/libopencv\_core.a …/…/…/lib/macosx/libopencv\_imgproc.a …/…/…/lib/macosx/libopencv\_ml.a …/…/…/lib/macosx/libippicv.a …/…/…/lib/macosx/libopencv\_hal.a -lz -framework IOSurface -lopencv\_flann -framework OpenCL -lopencv\_stitching -framework IOKit -framework AVFoundation -framework CoreMedia -lopencv\_calib3d -lopencv\_videoio -framework Cocoa -framework OpenGL -lopencv\_photo -lopencv\_ts -framework CoreVideo -lopencv\_imgcodecs -lopencv\_highgui -lopencv\_objdetect -lopencv\_hal -lopencv\_video -lopencv\_core -lopencv\_imgproc -lopencv\_superres -framework Accelerate -framework AudioToolbox -framework AudioUnit -framework CoreAudio -lopencv\_features2d -lopencv\_videostab -lopencv\_shape -lippicv -lopencv\_ml -Xlinker -dependency\_info -Xlinker /Users/eigh\_io/repos/cinder\_0.9.0\_mac/blocks/Cinder-OpenCV3-master/samples/ocvCapture/xcode/build/ocvCapture.build/Debug/ocvCapture.build/Objects-normal/x86\_64/ocvCapture\_dependency\_info.dat -o /Users/eigh\_io/repos/cinder\_0.9.0\_mac/blocks/Cinder-OpenCV3-master/samples/ocvCapture/xcode/build/Debug/ocvCapture.app/Contents/MacOS/ocvCapture\*

_ld: library not found for -lopencv\_flann_  
_clang: error: linker command failed with exit code 1 (use -v to see invocation)_

although they are included

 ![Screenshot 2020-09-23 at 11.17.15](https://canada1.discourse-cdn.com/flex030/uploads/libcinder/original/1X/79a03f2e4aa7818d4dec9201c191f6a507fe2c88.png)

My app is here: [https://gist.github.com/eighteight/ed7d68f480cc433c94a6950b4ee63a69](https://gist.github.com/eighteight/ed7d68f480cc433c94a6950b4ee63a69)

---

<div class="post-metadata">

**Author:** ![Kino](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/kino/32/465_2.png) [@Kino](https://discourse.libcinder.org/u/Kino)\
**Post date:** [September 29, 2020, 10:13am UTC](https://discourse.libcinder.org/t/receiving-rtsp-stream-from-insta360-pro-2-and-other-cameras/1714/2 "2020-09-29T10:13:25Z")

</div>

I think the linker error is caused when the complier can not find the needed definitions (not the included declarations). I saw that you’ve included the videoio modules of OpenCV and it reminded me of an issue I had a couple of years back when I wanted to use the same modules with Cinder’s pre-built OpenCV lib. The problem was that those modules’ 3rd party libs were not built with Cinder’s build. Back then , I made a GitHub issue about it at [https://github.com/cinder/Cinder-OpenCV3/issues/7](https://github.com/cinder/Cinder-OpenCV3/issues/7) . So you might want to try building OpenCV again and this time include those modules properly in your build. Might be worth a try 😊

---

<div class="post-metadata">

**Author:** ![eight\_io](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/eight_io/32/57_2.png) [@eight\_io](https://discourse.libcinder.org/u/eight_io)\
**Post date:** [January 9, 2021, 6:52pm UTC](https://discourse.libcinder.org/t/receiving-rtsp-stream-from-insta360-pro-2-and-other-cameras/1714/3 "2021-01-09T18:52:41Z")

</div>

Thanks, Kino!  
I switched to the older Cinder version 0.8.6, which had opencv libs packaged with it, and after minor modification of the ocvCapture (as shown above in the first gist), everything compiled and linked.

–8
