diff --git a/ScreenPlay/src/create.cpp b/ScreenPlay/src/create.cpp index 6e875afa..df54c1af 100644 --- a/ScreenPlay/src/create.cpp +++ b/ScreenPlay/src/create.cpp @@ -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"); diff --git a/ScreenPlay/src/create.h b/ScreenPlay/src/create.h index bd926c19..db242732 100644 --- a/ScreenPlay/src/create.h +++ b/ScreenPlay/src/create.h @@ -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; } diff --git a/ScreenPlay/src/createimportvideo.cpp b/ScreenPlay/src/createimportvideo.cpp index d58ab961..eaa3d85f 100644 --- a/ScreenPlay/src/createimportvideo.cpp +++ b/ScreenPlay/src/createimportvideo.cpp @@ -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);