Skip to content

[Bug] TrimControl allows trimStart to equal trimEnd producing zero-length video #14

@magic-peach

Description

@magic-peach

Bug Description

The TrimControl component validates that trimStart < trimEnd, but when trimEnd is manually set to exactly equal trimStart, the validation may pass (depending on floating point precision), resulting in a zero-length video being passed to FFmpeg.

Steps to Reproduce

  1. Upload a video
  2. In TrimControl, set Start to 5.0 and End to 5.0
  3. Attempt to export
  4. FFmpeg may error or produce an empty video

Expected Behavior

The UI should prevent trimStart from being equal to trimEnd and show a validation error.

File Reference

  • src/components/TrimControl.tsx — validation logic
  • Should require trimEnd > trimStart + minimumClipDuration (e.g., 0.1 seconds)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions