这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions app/src/actioncommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,10 @@ Status ActionCommands::importSound(FileType type)
{
st = Status::CANCELED;
}
else if (strSoundFile.endsWith(".wav"))
{
st = mEditor->sound()->loadSound(key, strSoundFile);
}
else
{
// Convert even if it already is a WAV file to strip metadata that the
// DirectShow media player backend on Windows can't handle
st = convertSoundToWav(strSoundFile);
}

Expand Down
2 changes: 1 addition & 1 deletion core_lib/src/movieimporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ Status MovieImporter::importMovieAudio(const QString& filePath, std::function<bo

QString audioPath = QDir(mTempDir->path()).filePath("audio.wav");

QStringList args{ "-i", filePath, audioPath };
QStringList args{ "-i", filePath, "-map_metadata", "-1", "-bitexact", audioPath };

status = MovieExporter::executeFFmpeg(ffmpegLocation(), args, [&progress, this] (int frame) {
Q_UNUSED(frame)
Expand Down