{
VideoWriter writer;
Mat stabilizedFrame;
+ int nframes = 0;
while (!(stabilizedFrame = stabilizedFrames->nextFrame()).empty())
{
+ nframes++;
if (!saveMotionsPath.empty())
saveMotionsIfNecessary();
if (!outputPath.empty())
}
}
- cout << "\nfinished\n";
+ cout << endl
+ << "processed frames: " << nframes << endl
+ << "finished\n";
}
if (inputPath.empty()) throw runtime_error("specify video file path");
VideoFileSource *source = new VideoFileSource(inputPath);
- cout << "frame count: " << source->count() << endl;
+ cout << "frame count (rough): " << source->count() << endl;
if (arg("fps") == "auto") outputFps = source->fps(); else outputFps = argd("fps");
stabilizer->setFrameSource(source);