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:
parent
742dcdeba3
commit
66a6a30c04
@ -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");
|
||||
|
@ -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; }
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user