feat(video): implement ffmpeg-based video operations backend

Add src/main/VideoOperations.js with pure argument-builder functions
(buildConvertArgs, buildCompressArgs, buildTrimArgs, buildFramesArgs,
buildGifArgs) and a single executeOperation entry point that spawns
ffmpeg via dependency-injected execFileFn, mirroring AudioOperations.js.

Wire ipcMain.handle('process-video-operation', ...) in main.js using
getFFmpegPath() and sanitizeErrorMessage(). Update preload.js's
ALLOWED_SEND_CHANNELS: remove 6 stale video-* channel names, add
process-video-operation.

Amit Haridas
This commit is contained in:
2026-08-23 19:31:33 +05:30
parent a353a695b5
commit 8dc1ae1c45
4 changed files with 316 additions and 6 deletions
+1 -6
View File
@@ -52,12 +52,7 @@ const ALLOWED_SEND_CHANNELS = [
'process-audio-operation',
// Video converter
'video-convert',
'video-batch-convert',
'video-compress',
'video-trim',
'video-frames',
'video-gif',
'process-video-operation',
// Header/Footer
'get-header-footer-settings',