diff --git a/include/openpose/wrapper/wrapper.hpp b/include/openpose/wrapper/wrapper.hpp index b981745c..99e23554 100644 --- a/include/openpose/wrapper/wrapper.hpp +++ b/include/openpose/wrapper/wrapper.hpp @@ -456,9 +456,9 @@ namespace op __LINE__, __FUNCTION__, __FILE__); if (!renderOutput && (!wrapperStructOutput.writeImages.empty() || !wrapperStructOutput.writeVideo.empty())) { - const auto message = "In order to save the rendered frames (`write_images` or `write_video`), you must" - " set `render_output` to true."; - error(message, __LINE__, __FUNCTION__, __FILE__); + const auto message = "In order to save the rendered frames (`write_images` or `write_video`), you" + " cannot disable `render_pose`."; + log(message, Priority::High); } if (!wrapperStructOutput.writeHeatMaps.empty() && wrapperStructPose.heatMapTypes.empty()) { diff --git a/src/openpose/filestream/videoSaver.cpp b/src/openpose/filestream/videoSaver.cpp index 421ebb7a..07a4ac91 100644 --- a/src/openpose/filestream/videoSaver.cpp +++ b/src/openpose/filestream/videoSaver.cpp @@ -2,12 +2,14 @@ namespace op { - VideoSaver::VideoSaver(const std::string& videoSaverPath, const int cvFourcc, const double fps, const Point& cvSize) : + VideoSaver::VideoSaver(const std::string& videoSaverPath, const int cvFourcc, const double fps, + const Point& cvSize) : VideoSaver::VideoSaver{std::vector{videoSaverPath}, cvFourcc, fps, cvSize} { } - VideoSaver::VideoSaver(const std::vector& videoSaverPaths, const int cvFourcc, const double fps, const Point& cvSize) + VideoSaver::VideoSaver(const std::vector& videoSaverPaths, const int cvFourcc, const double fps, + const Point& cvSize) { try { @@ -23,8 +25,10 @@ namespace op if (!mVideoWriters.crbegin()->isOpened()) { - const std::string errorMessage{"Video to write frames could not be opened on " + videoSaverPath + ". Please, " - "check OpenCV is properly compiled with the FFmpeg codecs in order to save video."}; + const std::string errorMessage{"Video to write frames could not be opened as `" + videoSaverPath + + "`. Please, check that:\n\t1. The path ends in *.avi." + "\n\t2. OpenCV is properly compiled with the FFmpeg codecs in" + " order to save video."}; error(errorMessage, __LINE__, __FUNCTION__, __FILE__); } }