Personal Project · Web Application Development
JavaScript · HTML5 Canvas · Web Audio API · MediaRecorder API
Designed and built with AI assistance using Claude.
PROJECT OVERVIEW
Cutroom is a browser-based, non-linear video editor designed and developed as a single-page web application. It brings a multi-track editing workflow into the browser without requiring a backend server. The editor is implemented with JavaScript, semantic HTML, CSS, HTML5 Canvas, the Web Audio API, browser media elements, localStorage, object URLs, MediaRecorder, and native browser file APIs.
The project combines creative-tool design with systems engineering: timeline state, media timing, preview composition, audio routing, visual effects, captions, persistence, and export all work together inside one interactive editor. Preview and export use the same timeline composition model so that track order, clip placement, transforms, keyframes, text, effects, and transitions are represented consistently.
MEDIA MANAGEMENT
- Import video, audio, and image files through a multi-file media importer.
- Display imported assets in a Media bin with thumbnails, type labels, durations, and add-to-timeline controls.
- Filter the Media bin by all media, video, audio, or images.
- Adjust media preview and thumbnail size with a persistent size control.
- Preview imported video, images, and audio directly inside the Media section.
- Hover over media items for a quick preview and hover-scrub behavior where supported.
- Open a media item in a larger preview window.
- Delete individual imported media items from the bin.
- Analyze video for scene changes, adjust scene-detection sensitivity, preview detected scenes, add one scene, or add all detected scenes to the timeline.
- Organize detected scenes into a Scenes folder, open or collapse the folder, preview individual scenes, and delete the entire Scenes folder.
- In the media preview popout, set an In and Out range and add only the selected section to the timeline.
- Drag media directly from the Media bin onto a chosen timeline position and track.
- Keep media metadata, media IDs, folders, and project references synchronized with the timeline.
PREVIEW AND WORKSPACE DESIGN
- Render the current composition into an HTML5 Canvas preview player.
- Support project aspect ratios of 16:9, 9:16, 1:1, and 4:5, plus custom width and height ratios.
- Show the active aspect ratio in the preview and keep the video contained without stretching.
- Toggle preview axes for positioning and alignment work.
- Click and drag directly in the player to adjust the selected clip's position.
- Scroll over the player to adjust the selected clip's scale.
- Keep Transform and Scale controls at the top of the Inspector, including position X/Y, scale, rotation, and opacity.
- Resize the Media, Inspector, and Timeline sections independently.
- Use Focus Mode to choose which editor sections remain visible while working.
- Open the Media bin, Preview, Inspector, or Timeline in a separate panel window and dock it back into the editor.
- Preserve detached-panel behavior and synchronize controls across the main editor and panel documents.
- Click the preview to work on the video currently represented by the selected timeline clip.
- Provide playback controls, a start button, time display, frame display, playhead movement, and frame-accurate stepping.
- Configure preview render quality at full, half, or quarter resolution.
- Configure preview playback at 24, 30, or 60 FPS.
- Use an Audio Priority option to reduce aggressive video seeking when smoother audio playback is preferred.
TIMELINE AND TRACK ARCHITECTURE
The timeline is a multitrack model backed by explicit track and clip state. Each clip stores its media reference, track index, start time, source In point, duration, speed, volume, fades, transforms, keyframes, and effect state. Tracks store their kind, name, order, lock state, mute state, primary-track status, and persistence settings.
- Maintain a protected Main Video track as the primary video track at the bottom of the visual stack.
- Automatically create additional video overlay tracks above Main Video when video is added from Media.
- Keep video tracks visually ordered so higher video rows composite in front of lower rows according to the timeline layer order.
- Keep text tracks in the visual layer system and allow text to be placed above video overlays or behind video overlays while remaining above the main track.
- Keep audio tracks grouped separately below the visual tracks.
- Add tracks through one compact Add Track menu with Video Track, Audio Track, Text Track, General Track, Effect Track, Filter Track, and Transition Track options.
- Add, remove, reorder, lock, mute, and protect tracks without hardcoding the Main Video track to a numeric index.
- Prevent removal of Main Video and prevent removal of tracks that still contain clips until their clips are moved or deleted.
- Mute individual tracks from the track header with a synchronized mute button.
- Show a visual primary-track badge and distinct group separators for video, text, effect, filter, transition, and audio sections.
- Add a Main Track Magnet mode that joins Main Video clips and closes newly created gaps while keeping ordinary Snapping independent.
- Add a Remove Empty Tracks command and a Close Gaps command.
- Add a work area with Set In, Set Out, Clear Range, and optional work-area export.
- Show video thumbnails on video clips and waveform visuals on audio clips.
- Display keyframe diamonds and speed-ramp points directly on timeline clips.
TIMELINE EDITING
- Select one clip by clicking it.
- Select multiple clips by dragging a marquee across timeline items.
- Add or remove clips from a selection with Shift-click or Command/Ctrl-click.
- Apply compatible Inspector properties to multiple selected clips at once and show Mixed values when their properties differ.
- Drag clips to reposition them in time or move them across tracks.
- Drag clip edges to trim the left or right side.
- Split one clip at the playhead or split all clips under the playhead.
- Enter Split Mode for repeated cuts, then return to normal Select Mode.
- Delete selected clips individually or as a multi-selection.
- Copy, cut, and paste clips at the playhead.
- Use undo and redo with edit snapshots covering clip state, track state, text-layer order, and Main Track Magnet state.
- Use snapping to align clip starts and ends with the playhead, markers, and neighboring clip edges.
- Toggle Snapping from the timeline toolbar or with the S shortcut. The preference is saved independently from Main Track Magnet.
- Toggle hover scrubbing on or off for the timeline and use hover-scrub previews for audio and video without interrupting normal playback.
- Follow the playhead automatically during playback, or disable Follow Playhead for manual scrolling.
- Zoom the timeline with the slider and keyboard shortcuts, fit the timeline to the viewport, zoom to the selected clip, and center the playhead while preserving the current editing area.
- Use timeline markers with custom labels, colors, marker navigation, and jump-to-marker controls.
- Use a command palette to search and run editor commands.
- Customize keyboard shortcuts, reset them to defaults, clear assignments, and persist them in the browser.
EDITING TOOLS
- Add text clips from the main toolbar or from the dedicated Text workspace.
- Separate audio from a selected video clip with the Separate Audio button or Command/Ctrl+Shift+A shortcut.
- Create freeze-frame clips at the playhead with a configurable freeze duration.
- Split selected videos by detected scenes.
- Trim the selected clip to the playhead using left-side and right-side trim commands.
- Adjust clip speed from 0.1x to 4x with presets for 0.5x, 1x, 2x, and 4x.
- Reverse video playback; reversed clips are treated as muted where required by the browser playback model.
- Adjust per-clip volume, fade-in, fade-out, and timing.
- Keep clip timing and source media timing separate so trims and speed changes can be represented without destroying the source asset.
INSPECTOR AND TRANSFORMS
The Inspector is divided into focused tabs for Inspector, Text, and Effects. Transform and Scale appear first for visual clips so the most common positioning controls are immediately available.
- Edit Position X, Position Y, Scale, Rotation, and Opacity.
- Edit brightness, contrast, and saturation for visual clips.
- Edit volume, speed, reverse playback, fade-in, and fade-out for video and audio clips.
- Apply controls to multiple selected clips with shared-property editing.
- Add, delete, clear, and select keyframes at the playhead.
- Interpolate keyframes with linear, smooth, ease-in, ease-out, and hold easing.
- Create speed-ramp keyframes with the same editing model.
- Edit masks with rectangle or ellipse shapes, center, size, feather, and inversion.
- Apply chroma key removal with a selectable key color, tolerance, softness, and a color-picker from the preview.
- Keep current static values when keyframes are cleared.
TEXT AND CAPTIONS
- Generate title, caption, lower-third, outline, and neon text presets.
- Edit text content, size, vertical position, color, font family, weight, style, alignment, letter spacing, line height, and text-box width.
- Edit stroke color and width, shadow color, opacity, blur, and offsets.
- Edit background color, opacity, and text layout.
- Apply text effects including soft shadow, outline, and neon glow.
- Apply text properties and text effects to multiple selected text clips.
- Use a Captions workspace to transcribe a selected video or audio clip with browser speech recognition when available.
- Import SRT and VTT subtitle files.
- Paste transcript text and automatically distribute lines across a selected clip.
- Represent captions as editable text clips on the timeline so they can be moved, trimmed, styled, and composited like other visual layers.
EFFECTS, FILTERS, TRANSITIONS, AND AUDIO ENHANCEMENTS
The Effects workspace separates filters, video effects, audio enhancements, and specialized timeline clips.
- Apply color looks including warm, cool, cinematic, vivid, black-and-white, vintage, faded, and reset.
- Adjust temperature, tint, hue shift, monochrome amount, sepia, fade, and vignette.
- Apply video effects including blur, mirror, vignette, and monochrome.
- Add and manage a stack of timed effects with enabled/disabled state, removal, intensity controls, and effect keyframes.
- Add invert effects, invert flashes, white flashes, camera shake, and zoom punches where supported by the Effects menu.
- Add timeline Effect, Filter, and Transition clips with independent timing, intensity, fade-in, fade-out, amount, frequency, and enabled state.
- Use transitions such as dissolve, wipes, slides, zoom, spin, blur, circle reveal, cross-dissolve, dip-to-black, dip-to-white, and flash variants where supported.
- Link transitions to selected adjacent clips or apply them to the composite scope.
- Enhance audio with clean-up, voice clarity, bass boost, output gain, bass, treble, noise cut, and compression controls.
- Route audio enhancements through Web Audio nodes during preview and export.
- Keep effects and specialized timeline clips editable, movable, trimmable, and removable like other clips.
PLAYBACK, AUDIO, AND COMPOSITING
- Use a unified composition renderer to determine which visual clips are active at a given timeline time.
- Composite Main Video, overlays, text, filters, effects, and transitions according to the ordered track model.
- Preserve clip opacity and fades during playback and export.
- Apply transform interpolation, masks, chroma key, color grading, filters, video effects, text effects, and transition overlays through Canvas rendering.
- Route video and audio through HTML media elements and Web Audio nodes.
- Mix multiple audio tracks with per-track mute and per-clip volume, fades, speed, and enhancement settings.
- Keep playback synchronized to the timeline playhead and use audio-aware seeking behavior.
- Use thumbnails and waveforms as visual editing aids without altering original media.
RENDER AND EXPORT SYSTEM
Cutroom includes both a Render Timeline function for creating a smoother preview and an Export Video workflow for final output.
- Render the timeline into a canvas-backed preview stream for smoother playback of complex projects.
- Render explicit timeline timestamps instead of relying only on uncontrolled playback timing.
- Use the same frame-composition logic for preview, timeline rendering, and export so supported effects and layer order remain consistent.
- Export complete timelines or the selected work area.
- Choose project settings, YouTube 1080p, YouTube 720p, TikTok, Instagram Reels, YouTube Shorts, Square, or custom export settings.
- Configure aspect ratio, resolution, frame rate, bitrate, filename, audio inclusion, and export profile.
- Detect supported MediaRecorder MIME types before encoding and prefer a faster supported browser codec for automatic performance mode.
- Support browser-supported WebM and MP4 variants when available.
- Capture video from a canvas and mix audio into the recorded MediaStream through Web Audio.
- Include progress, estimated output size, diagnostics, completion status, cancellation, and actionable failure messages.
- Offer browser download output and native save-location selection when showSaveFilePicker is available.
- Clean up media elements, audio nodes, streams, object URLs, and temporary export resources after completion or cancellation.
- Validate export dimensions, canvas capture support, codec support, missing media references, and audio capability before rendering.
- Preserve playhead, selection, project settings, and editor layout while export runs.
PERSISTENCE AND RECOVERY
- Autosave project state to localStorage using versioned project data.
- Restore clips, tracks, media IDs, Scenes folders, aspect ratio, custom ratio, Main Track Magnet, text-layer mode, preview settings, work area, export settings, and other editor preferences after refresh.
- Keep imported media references and object URLs managed separately from serialized clip state.
- Preserve the user's Snapping, Hover Scrub, Follow Playhead, panel sizes, timeline height, media preview size, and keyboard shortcut preferences.
- Surface saved, unsaved, or storage-warning state in the editor header.
- Reconcile tracks after restoration so Main Video remains present, track indices remain valid, and text tracks are created only when needed.
KEYBOARD WORKFLOW
The shortcuts panel documents and allows customization of common commands, including Space for playback, arrow keys for frame stepping, Alt plus arrows for multi-frame stepping, Shift plus arrows for one-second stepping, Home and End for timeline bounds, Up and Down for edit points, M for markers, brackets for marker navigation, Command/Ctrl+B for split, Command/Ctrl+Shift+B for splitting all clips, Command/Ctrl+Shift+A for Separate Audio, B for Split Mode, A for Select Mode, Q and W for trim sides, Delete or Backspace for deletion, Command/Ctrl+Z and Command/Ctrl+Shift+Z for undo and redo, Command/Ctrl+C/X/V for clip copy, cut, and paste, S for Snapping, and timeline zoom and centering shortcuts. The command palette provides a searchable alternative to memorizing shortcuts.
ENGINEERING SKILLS DEMONSTRATED
- JavaScript application architecture and state management.
- HTML5 Canvas rendering and compositing.
- Web Audio API routing, mixing, filtering, compression, and audio analysis.
- HTMLMediaElement timing, seeking, playback-rate control, and media synchronization.
- MediaRecorder and canvas capture for browser-based video export.
- Browser File APIs, Blob handling, object URLs, localStorage, and native save dialogs.
- Timeline data modeling for tracks, clips, layers, timing, selection, keyframes, and specialized effect clips.
- Canvas image processing for color grading, masks, chroma key, blur, transitions, and pixel-level effects.
- Interaction design for drag-and-drop, marquee selection, snapping, trimming, scrubbing, resizing, popout windows, keyboard shortcuts, and accessibility attributes.
- Responsive dark-theme UI design with resizable panels and focused workspaces.
- Performance engineering through preview quality controls, FPS caps, audio-priority playback, direct canvas rendering for simple clips, explicit frame scheduling, codec preflight, and resource cleanup.
- Debugging and reliability work across browser codec support, export timing, audio/video synchronization, missing media, rendering failures, and persistence recovery.
- AI-assisted development using Claude for implementation support, debugging, feature planning, and iterative refinement while maintaining hands-on engineering ownership.
Cutroom demonstrates the design and implementation of a practical creative application: a browser-native editor that turns raw media into a structured, editable, composited, and exportable timeline while keeping the workflow accessible, persistent, and responsive.