From 81cb4156638e7232f1a7117e1da18738c0102486 Mon Sep 17 00:00:00 2001 From: Stu Leak Date: Sat, 13 Dec 2025 08:38:05 -0500 Subject: [PATCH] Fix merge job progress reporting showing 100% throughout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The -progress flag was being added AFTER the output path in the FFmpeg command, causing FFmpeg to not recognize it and therefore not output progress information. Moved -progress pipe:1 -nostats to appear BEFORE the output path. Now merge jobs will correctly report progress as they encode: - Progress starts at 0% - Updates based on out_time_ms from FFmpeg progress output - Calculates percentage based on total duration of all clips - Shows accurate real-time progress in queue view and stats bar 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index e245b79..392be42 100644 --- a/main.go +++ b/main.go @@ -2047,11 +2047,11 @@ func (s *appState) executeMergeJob(ctx context.Context, job *queue.Job, progress } } - args = append(args, outputPath) - - // Add progress output for live updates + // Add progress output for live updates (must be before output path) args = append(args, "-progress", "pipe:1", "-nostats") + args = append(args, outputPath) + // Execute cmd := exec.CommandContext(ctx, platformConfig.FFmpegPath, args...) utils.ApplyNoWindow(cmd)