22
33namespace op
44{
5- VideoSaver::VideoSaver (const std::string& videoSaverPath, const int cvFourcc, const double fps, const Point<int >& cvSize) :
5+ VideoSaver::VideoSaver (const std::string& videoSaverPath, const int cvFourcc, const double fps,
6+ const Point<int >& cvSize) :
67 VideoSaver::VideoSaver{std::vector<std::string>{videoSaverPath}, cvFourcc, fps, cvSize}
78 {
89 }
910
10- VideoSaver::VideoSaver (const std::vector<std::string>& videoSaverPaths, const int cvFourcc, const double fps, const Point<int >& cvSize)
11+ VideoSaver::VideoSaver (const std::vector<std::string>& videoSaverPaths, const int cvFourcc, const double fps,
12+ const Point<int >& cvSize)
1113 {
1214 try
1315 {
@@ -23,8 +25,10 @@ namespace op
2325
2426 if (!mVideoWriters .crbegin ()->isOpened ())
2527 {
26- const std::string errorMessage{" Video to write frames could not be opened on " + videoSaverPath + " . Please, "
27- " check OpenCV is properly compiled with the FFmpeg codecs in order to save video." };
28+ const std::string errorMessage{" Video to write frames could not be opened as `" + videoSaverPath
29+ + " `. Please, check that:\n\t 1. The path ends in *.avi."
30+ " \n\t 2. OpenCV is properly compiled with the FFmpeg codecs in"
31+ " order to save video." };
2832 error (errorMessage, __LINE__, __FUNCTION__, __FILE__);
2933 }
3034 }
0 commit comments