Skip to content

Add video editing features for cropping and trimming - #2

Merged
Panonim merged 3 commits into
mainfrom
dev
Sep 14, 2026
Merged

Panonim merged 3 commits into
mainfrom
dev

Conversation

@Panonim

@Panonim Panonim commented Sep 14, 2026

Copy link
Copy Markdown
Owner

This pull request introduces a new "edit" feature that allows users to trim and crop audio and video files after processing. The changes span backend job registration, API documentation, frontend logic, UI components, and styling to support this new capability. Below are the most important changes grouped by theme:

Backend/API Support for Edit Jobs

  • Registered the new edit job type with the backend job queue, enabling the server to process trim/crop edit requests.
  • Updated API documentation to include the new edit job type, specifying required parameters (start, end, crop_x, crop_y, crop_w, crop_h, retention_days) and describing the behavior and validation for edit jobs. [1] [2]

Frontend Functionality for Editing

  • Added logic in frontend/app.js to manage the editor state, including opening/closing the editor, handling playback, trimming, cropping, and submitting new edit jobs. Utility functions for crop manipulation and time formatting were also introduced. [1] [2] [3] [4] [5]

User Interface Enhancements

  • Introduced a new "Edit" button on completed audio/video jobs in the job list, allowing users to launch the trim/crop editor.
  • Added extensive CSS for the new editor UI, including layout, video/audio preview, crop box, trim handles, and responsive design adjustments.

UI/UX Adjustments

  • Increased the size of queue ring icons for better visibility and made minor tweaks to the telemetry bar display for consistency across views. [1] [2] [3]

These changes collectively enable users to perform precise post-processing edits (trimming and cropping) on supported media files directly from the frontend, with robust backend support and clear user interface feedback.

This pull request adds a new "Edit" (trim and crop) feature for media
files, allowing users to trim audio/video and crop video files directly
from the frontend. The implementation includes backend support for the
new job type, frontend UI components and logic for the editor, and
updates to documentation and job handling.
@Panonim Panonim self-assigned this Sep 14, 2026
@Panonim
Panonim merged commit 3fb405b into main Sep 14, 2026
1 check failed
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