Skip to content

fix(concat): two critical ffmpeg filter_complex bugs - #8

Merged
leether merged 1 commit into
mainfrom
feat/fix-concat-filter-syntax
Jun 7, 2026
Merged

fix(concat): two critical ffmpeg filter_complex bugs#8
leether merged 1 commit into
mainfrom
feat/fix-concat-filter-syntax

Conversation

@leether

@leether leether commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Fix empty filter name (comma bug) and audio stream loss (-an bug) in concat_engine filter_complex path.

Bug 1: Empty filter name when fade_in=fade_out=0
  Generated: [0:v]setpts=PTS-STARTPTS,[v0]
  ffmpeg parsed ',' as filter separator → [v0] treated as filter name
  Fix: [0:v]setpts=PTS-STARTPTS[v0] (no comma between filter and output pad)

Bug 2: Audio stream lost in _normalize_video
  -an deleted original audio, but need_audio logic skipped recovery
  when source had audio (has_audio=True → need_audio=False).
  Result: normalized videos had no audio → acrossfade 'matches no streams'.
  Fix: replace -an with -c:a copy to preserve original audio stream.

Both bugs caused filter_complex path to fail with exit code 8.
Fast path was unaffected.

Closes: concat-engine-ffmpeg-bugs
@leether
leether merged commit 976d05d into main Jun 7, 2026
1 check passed
@leether
leether deleted the feat/fix-concat-filter-syntax branch June 7, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant