bakaid commented on a change in pull request #612: MINIFICPP-854: Capture RTSP
Frame
URL: https://github.com/apache/nifi-minifi-cpp/pull/612#discussion_r304438766
##########
File path: extensions/opencv/CaptureRTSPFrame.cpp
##########
@@ -73,6 +73,11 @@ void CaptureRTSPFrame::initialize() {
relationships.insert(Success);
relationships.insert(Failure);
setSupportedRelationships(std::move(relationships));
+ // By default in OpenCV, ffmpeg capture is hardcoded to use TCP and this is
a workaround
+ // also if UDP timeout, ffmpeg will retry with TCP
+ // Note:
+ // 1. OpenCV community are trying to find a better approach than setenv.
+ setenv("OPENCV_FFMPEG_CAPTURE_OPTIONS", "rtsp_transport;udp", 1);
Review comment:
@phrocker Yes, we have ended up with adding an ObjectFactoryInitializer for
the OpenCV component with @nghiaxlee, but in person, so we didn't follow up
here. That should work without problems for now.
Adding it to minifi.sh could be a good solution if there is a framework for
it like you mentioned, but I am not sure everyone uses minifi.sh at the moment
(I usually just start the binary).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services