mirror of
https://github.com/rehan-remade/universal-modder.git
synced 2026-11-05 01:37:40 +00:00
[PR #279] [MERGED] um video: keep --preview sizes even, and refuse an odd EDL size up front #278
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
rehan-remade/universal-modder#278
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rehan-remade/universal-modder/pull/279
Author: @HEOJUNFO
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @rehan-remade
Base:
main← Head:fix/video-preview-even-size📝 Commits (3)
4ad6418um video: keep --preview sizes even, and refuse an odd EDL size up front0971d1brenormalize line endings to match .gitattributes (as on main since #304)0eb945aMerge remote-tracking branch 'origin/main' into land/pr-279📊 Changes
2 files changed (+20 additions, -1 deletions)
View changed files
📝
tests/test_um.py(+16 -0)📝
um/video.py(+4 -1)📄 Description
What:
um video compile --previewcrashed on a 4:5 edit. The preview size is now kept even, and an oddsizein the EDL stops with a clear message.Half of
"size": [1080, 1350]is 540x675. libx264 won't encode an odd height in yuv420p, so the first segment failed:--previewhalves each side and rounds down to an even number, so 1080x1350 previews at 540x674. Sizes that are multiples of 4 (1920x1080 → 960x540) don't change.sizein the EDL (say 1080x1351) used to fail the same way deep inside ffmpeg. It now stops before rendering:size 1080x1351: width and height must be even (yuv420p H.264 refuses odd sizes).test_compile_preview_keeps_size_evencompiles a 1080x1350 EDL withpreview=True, checks that the output is 540x674, and checks that a 1080x1351 EDL exits. It fails onmainwith the libx264 error above.Checklist
uv run --with pytest pytest -q testspasses (code): 141 passed, 1 skipped (macOS, ffmpeg 9.0.2)um kb indexregenerated (field notes): n/a, code only🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.