1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-25 12:13:00 +01:00

Fix import video when video contains a dot int the name

Like my.video.mp4
This commit is contained in:
Elias Steurer 2021-09-02 12:43:22 +02:00
parent 742dcdeba3
commit 66a6a30c04
3 changed files with 2 additions and 3 deletions

View File

@ -222,7 +222,7 @@ void Create::saveWallpaper(
obj.insert("title", title);
obj.insert("youtube", youtube);
obj.insert("videoCodec", codec == Create::VideoCodec::VP8 ? "vp8" : "vp9");
obj.insert("file", filePathFile.baseName() + ".webm");
obj.insert("file", filePathFile.completeBaseName() + ".webm");
obj.insert("previewGIF", "preview.gif");
obj.insert("previewWEBM", "preview.webm");
obj.insert("preview", previewImageFile.exists() ? previewImageFile.fileName() : "preview.jpg");

View File

@ -82,7 +82,6 @@ public:
};
Q_ENUM(VideoCodec)
float progress() const { return m_progress; }
QString workingDir() const { return m_workingDir; }
QString ffmpegOutput() const { return m_ffmpegOutput; }

View File

@ -597,7 +597,7 @@ bool CreateImportVideo::createWallpaperVideo()
args.append("-pass");
args.append("2");
const QFileInfo file(m_videoPath);
const QString convertedFileAbsolutePath { m_exportPath + "/" + file.baseName() + ".webm" };
const QString convertedFileAbsolutePath { m_exportPath + "/" + file.completeBaseName() + ".webm" };
args.append(convertedFileAbsolutePath);
const QString ffmpegOutput = waitForFinished(args);