From 409e5a8edad786510b68e71339fbda4346f10d57 Mon Sep 17 00:00:00 2001 From: Jakob Gahde Date: Mon, 10 Apr 2023 21:14:49 +0200 Subject: [PATCH] Replace -bitexact FFmpeg option with more compatible -(f)flags The -bitexact option was only added in FFmpeg 4 and is not available in older versions. Luckily, it is no more than a convenient shortcut for the bitexact codec and format flags, which should be old enough. --- core_lib/src/movieimporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core_lib/src/movieimporter.cpp b/core_lib/src/movieimporter.cpp index 6767f6f93f..e4cdd89ca7 100644 --- a/core_lib/src/movieimporter.cpp +++ b/core_lib/src/movieimporter.cpp @@ -342,7 +342,7 @@ Status MovieImporter::importMovieAudio(const QString& filePath, std::functionpath()).filePath("audio.wav"); - QStringList args{ "-i", filePath, "-map_metadata", "-1", "-bitexact", audioPath }; + QStringList args{ "-i", filePath, "-map_metadata", "-1", "-flags", "bitexact", "-fflags", "bitexact", audioPath }; status = MovieExporter::executeFFmpeg(ffmpegLocation(), args, [&progress, this] (int frame) { Q_UNUSED(frame)