Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Stabilize saved video on iOS

I'm trying to use the script below to stabilize a saved video in my iOS project:

https://github.com/Itseez/opencv/blob/3.0.0-beta/samples/cpp/videostab.cpp

However when it attempts to open the video Ptr<VideoFileSource> source = makePtr<VideoFileSource>(inputPath); it throws the following error:

OpenCV Error: No Error (can't open file: file:///private/var/mobile/Containers/Data/Application/D7312D3B-35DD-4292-9781-4C5D04CF62D4/tmp/output.mp4) in reset, file /Users/rafa/projects/opencv/modules/videostab/src/frame_source.cpp, line 71
error: /Users/rafa/projects/opencv/modules/videostab/src/frame_source.cpp:71: error: (0) can't open file: file:///private/var/mobile/Containers/Data/Application/D7312D3B-35DD-4292-9781-4C5D04CF62D4/tmp/output.mp4 in function reset

And I have no clue why, does anyone have a clue on why?

Stabilize saved video on iOS

I'm trying to use the script below to stabilize a saved video in my iOS project:

https://github.com/Itseez/opencv/blob/3.0.0-beta/samples/cpp/videostab.cpp

However when it attempts to open the video Ptr<VideoFileSource> source = makePtr<VideoFileSource>(inputPath); it throws the following error:

OpenCV Error: No Error (can't open file: file:///private/var/mobile/Containers/Data/Application/D7312D3B-35DD-4292-9781-4C5D04CF62D4/tmp/output.mp4) in reset, file /Users/rafa/projects/opencv/modules/videostab/src/frame_source.cpp, line 71
error: /Users/rafa/projects/opencv/modules/videostab/src/frame_source.cpp:71: error: (0) can't open file: file:///private/var/mobile/Containers/Data/Application/D7312D3B-35DD-4292-9781-4C5D04CF62D4/tmp/output.mp4 in function reset

And I have no clue why, does have anyone have a clue on why?faced this issue and can help? Thanks