setup for adding thumbnails from videos

This commit is contained in:
Chris Cochrun 2023-02-07 10:55:23 -06:00
parent 6366dc2d88
commit fb9d551f6b
3 changed files with 26 additions and 11 deletions

View file

@ -543,12 +543,6 @@ void MpvObject::loadFile(QVariant urls)
}
void MpvObject::screenshotToFile(QUrl url) {
qDebug() << "Url of screenshot to be taken: " << url;
QDir dir = writeDir.absolutePath() + "/presenter/Church Presenter/thumbnails";
qDebug() << "thumbnails dir: " << dir;
QDir absDir = writeDir.absolutePath() + "/presenter/Church Presenter";
if (!dir.exists())
absDir.mkdir("thumbnails");
QString file = url.path() + ".jpg";
commandAsync(QVariantList() << "screenshot-to-file" << file << "video");
}