Skip to content

Render GIF subtitles after crop - #232

Open
ekisu wants to merge 1 commit into
masterfrom
fix/subtitles-after-crop
Open

ekisu wants to merge 1 commit into
masterfrom
fix/subtitles-after-crop

Conversation

@ekisu

@ekisu ekisu commented Sep 21, 2026

Copy link
Copy Markdown
Owner

What changed

Render subtitles after the crop/scale video pipeline and before GIF palette generation. The preview now applies crop before the subtitle filter as well, matching normal mpv playback.

Evidence

Exact playback command:

mpv --vf=lavfi-crop=1920:800:0:140 -v file.mkv

Real mpv output confirms the video filter produces 1920x800 before subtitle OSD rendering:

mpv 0.41 log

Generated GIF from the same 1920x1080 source, embedded subtitle, crop, and 540px output scale:

Generated GIF

Validation

Ran 6 tests in 3.963s
OK

Tests cover GIF subtitles/palette handling, lavfi crop, lavfi graphs, EQ filters, and AVC crop handling.

@ekisu
ekisu force-pushed the fix/subtitles-after-crop branch from 8567f72 to 0666910 Compare September 21, 2026 03:24
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