Skip to content

The swiss army knife of lossless video/audio editing

Merge remote-tracking branch 'origin/master' into claude/ffmpeg-9.0

Claude9f61eedf30ae
diff --cc script/downloadFfmpeg.ts
index 6101ad6a,af7de005..5857fb1f
--- a/script/downloadFfmpeg.ts
+++ b/script/downloadFfmpeg.ts
@@@ -8,12 -8,12 +8,12 @@@ import { Readable } from 'node:stream'
import { pipeline } from 'node:stream/promises';
import { execa } from 'execa';
- // Bump these when upgrading FFmpeg
+ // Bump these when upgrading FFmpeg. This is also the minimum supported FFmpeg version (see `customFfPath` in src/main/ffmpeg.ts)
-const macRelease = '8.1.3-1'; // https://github.com/mifi/ffmpeg-build-script/releases
-const windowsLinuxRelease = '8.1-2'; // https://github.com/mifi/ffmpeg-builds/releases (mirrors BtbN's n<branch>-latest builds)
+const macRelease = '9.0.2-1'; // https://github.com/mifi/ffmpeg-build-script/releases
- const windowsLinuxRelease = '9.0-1'; // https://github.com/mifi/ffmpeg-builds/releases (mirrors BtbN's n<branch>-latest builds)
++const windowsLinuxRelease = '9.0-2'; // https://github.com/mifi/ffmpeg-builds/releases (mirrors BtbN's n<branch>-latest builds)
const target = process.argv[2];
- const btbnTargets: Record<string, string> = { 'linux-x64': 'linux64', 'win32-x64': 'win64', 'win32-arm64': 'winarm64' };
+ const btbnTargets: Record<string, string> = { 'linux-x64': 'linux64', 'linux-arm64': 'linuxarm64', 'win32-x64': 'win64', 'win32-arm64': 'winarm64' };
const macArchs: Record<string, string> = { 'darwin-x64': 'X64', 'darwin-arm64': 'ARM64' };
assert(target != null && (Object.hasOwn(btbnTargets, target) || Object.hasOwn(macArchs, target)), `Usage: downloadFfmpeg.ts ${[...Object.keys(macArchs), ...Object.keys(btbnTargets)].join('|')}`);
diff --cc src/renderer/src/hooks/useFfmpegOperations.ts
index 210afbee,06218082..53306afa
--- a/src/renderer/src/hooks/useFfmpegOperations.ts
+++ b/src/renderer/src/hooks/useFfmpegOperations.ts
@@@ -4,9 -4,9 +4,9 @@@ import pMap from 'p-map'
import invariant from 'tiny-invariant';
import i18n from 'i18next';
- import { getSuffixedOutPath, transferTimestamps, getOutFileExtension, getOutDir, getHtml5ifiedPath, unlinkWithRetry, getFrameDuration, isMac, html5ifiedPrefix, html5dummySuffix, assertFileExists } from '../util';
+ import { getSuffixedOutPath, transferTimestamps, getOutFileExtension, getOutDir, getHtml5ifiedPath, unlinkWithRetry, getFrameDuration, isMac, html5ifiedPrefix, html5dummySuffix, assertFileExists, isExecaError, getStdioString } from '../util';
import { isCuttingStart, isCuttingEnd, runFfmpegWithProgress, getFfCommandLine, getDuration, createChaptersFromSegments, readFileFfprobeMeta, getExperimentalArgs, getVideoTimescaleArgs, logStdoutStderr, runFfmpegConcat, RefuseOverwriteError, runFfmpeg } from '../ffmpeg';
-import { getEffectiveAvoidNegativeTs, getKeyframeCutSeekCompensation, getMapStreamsArgs, getStreamIdsToCopy, isCopyingOnlyAudioStreams, isCropActive, isAspectRatioActive } from '../util/streams';
+import { flacEncodeArgs, getEffectiveAvoidNegativeTs, getKeyframeCutSeekCompensation, getMapStreamsArgs, getStreamIdsToCopy, isCopyingOnlyAudioStreams, isCropActive, isAspectRatioActive } from '../util/streams';
import { needsSmartCut, getCodecParams } from '../smartcut';
import { getGuaranteedSegments, isDurationValid } from '../segments';
import type { FFprobeStream } from '../../../common/ffprobe';