Skip to content
Snippets Groups Projects
Unverified Commit 4faf6208 authored by Christian Dreher's avatar Christian Dreher
Browse files

fix: Properly handle recording.

parent a69b630d
No related branches found
No related tags found
No related merge requests found
......@@ -160,6 +160,7 @@ convert(const std::filesystem::path& in, const std::filesystem::path& out, bool
throw std::runtime_error("Could not read input file format");
}
visionx::imrec::Recording recording = visionx::imrec::newRecording(out, playback->getFps());
recording->startRecording();
cv::Mat frame_buffer;
const unsigned int frame_count = playback->getFrameCount();
......
......@@ -299,7 +299,7 @@ visionx::imrec::newRecording(const std::filesystem::path& path, double fps)
return nullptr;
}
return newRecording(path, path.stem().string(), format, fps);
return newRecording(path.parent_path(), path.stem().string(), format, fps);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment