Skip to content
Snippets Groups Projects
Commit 09886881 authored by Erlend Sørhus's avatar Erlend Sørhus
Browse files

CSV file get's named after video input file

parent 85472abf
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,7 @@ int main(int argc, char** argv) {
}
filesystem::path videoPath(argv[1]);
filesystem::path csvExtention(".csv");
if(videoPath.extension() != ".mp4") {
cerr << "Failed to read input; make sure it is a valid .mp4 video file." << endl;
cerr << "Current input: " << argv[1];
......@@ -55,7 +56,7 @@ int main(int argc, char** argv) {
}
// Currently using Myggbukta-[2021-05-21_10-47-06]-716 as test.mp4.
ofstream csv = createCSV("test.csv")
ofstream csv = createCSV(videoPath.replace_extension(csvExtention);
VideoCapture decoder(videoPath.string());
auto start = chrono::steady_clock::now();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment