CLOUDMORROW

Quills / Creative

Clipper

A video editor for the videos and photos in your drive: drag clips and photos onto video and audio tracks, cut, trim and arrange them, put one small over another, blur what should not be seen, crop, and export.

Star on GitHub · 0 Nobody has starred it yet

What it does

  • Every video, photo and sound in your drive is material, as tiles beside the picture: drag one onto a track where it should go, or tap it to put it at the playhead; another drive or share is chosen above them
  • Edit this video, on a video in Media or Files (and Edit this sound on a sound), opens it under its own name, all of it on the first track; a photo is Retouch's
  • Save, on a video opened so: over the video itself (the one before goes to the Trash) or as a new file beside it; the project then starts afresh on the saved video
  • A real timeline: video and audio tracks, pieces cut, trimmed, split, moved and rearranged; a higher video track covers a lower one; a photo stays as long as you make it
  • Make a clip or a photo smaller and put it anywhere in the picture, over what is under it: a box dragged on the viewer, or numbers typed
  • Sound from every piece, mixed: mute one, or set its volume
  • Blur a face, a number plate or a screen with keyframes: the box moves and resizes in a straight line between them, and moves with its piece
  • Crop the whole picture
  • A new project is the size you choose (1080p, 720p, 4K, vertical, square or your own), or its first clip's
  • Export to MP4, WebM, MOV, GIF or sound-only M4A, as the project or at 1080p, 720p or 480p, into My Files › Clipper Exports
  • The same editor on the web and the phone (live, with sound), in the terminal (real frames) and on the command line

Add it to your cloud

In your cloud, open Quills: Administration → Quills as an administrator, Me → Your Quills as anybody else. On its Catalog tab, Clipper is on the Creative shelf: open it and say yes. Its id, wherever your cloud asks for a quill by name:

id clipper

Or on the command line, as an administrator for everyone, with --mine for yourself alone:

$ cm quill add clipper

Either way your cloud shows you everything below and waits for your yes.

Standard. The installer offers Clipper when you set up a new cloud, so you may have it already. How installing works

What it adds to your cloud

Datamodels

The kinds of data it works with. On a fresh cloud everyone can read and write what it brings the moment it is installed; the install sheet says so, and an administrator narrows it with circles. Records belong to the people who write them, not to the quill: removing it leaves every one where it is. What it adds — fields of its own, datamodels of its own — stays too, unless the administrator removing it chooses to drop them.

Uses

File file

foundational

A file or a folder in a share or in My Files: a real file on disk, reached over WebDAV and the desktop app's mounts as well.

  • Share share link to Sharerequired Indexed
  • Path path text, one linerequired Indexed
  • Folder folder text, one line Indexed
  • Name name text, one linerequired Indexed
  • Kind kind one of File, Folder Indexed
  • Size size whole number Indexed
  • Modified modified date and time Indexed
  • Type mime text, one line Indexed
  • Text text text Encrypted
  • Deleted deleted date and time Indexed
  • Deleted from deleted_from text, one line Encrypted
Introduces

Effect clipper.effect

new, from Clipper

A blur over part of a piece: what it hides, how strongly, and where its box is at moments of the piece.

  • Piece piece link to Piecerequired · deleted with its piece Indexed
  • Kind kind one of Blur Indexed
  • Label label text, one linerequired Encrypted
  • Strength strength whole number Encrypted
  • Keyframes keyframes JSON Encrypted
Introduces

Media clipper.media

new, from Clipper

What a video, photo or sound in the drive is: its length, picture size, frame rate, and whether it has a picture, sound, or is a still photo.

  • File source text, one linerequired Indexed
  • Name name text, one linerequired Encrypted
  • Modified modified text, one line Encrypted
  • Length (seconds) duration number Encrypted
  • Width width whole number Encrypted
  • Height height whole number Encrypted
  • Frames per second fps number Encrypted
  • Has a picture video yes or no Encrypted
  • Has sound audio yes or no Encrypted
  • Is a photo image yes or no Encrypted
Introduces

Piece clipper.piece

new, from Clipper

Part of a video, a photo or a sound on a project's track: where it starts, where in the file it is cut from, how long it lasts, and where in the picture it goes.

  • Project project link to Projectrequired · deleted with its project Indexed
  • Track track text, one linerequired Encrypted
  • File source text, one linerequired Indexed
  • Name name text, one linerequired Encrypted
  • Start start numberrequired Encrypted
  • Offset offset number Encrypted
  • Length length number Encrypted
  • Volume volume number Encrypted
  • Muted muted yes or no Encrypted
  • Place place JSON Encrypted
Introduces

Project clipper.project

new, from Clipper

A video being edited: pieces of the videos, photos and sounds in the drive on tracks, a crop, the file it was started from, and how it was last saved or exported.

  • Name name text, one linerequired Encrypted
  • Width width whole number Encrypted
  • Height height whole number Encrypted
  • Frames per second fps number Encrypted
  • Tracks tracks JSON Encrypted
  • Crop crop JSON Encrypted
  • Video source text, one line Indexed
  • Status status one of Editing, Queued, Rendering, Exported, Failed Indexed
  • Message message text, one line Encrypted
  • Export output text, one line Encrypted
  • Format format one of MP4 (H.264, AAC), WebM (VP9, Opus), MOV (H.264), GIF (no sound), M4A (sound only) Encrypted
  • Size size one of As the project, 1080p, 720p, 480p Encrypted
  • Export name export_name text, one line Encrypted
  • Over the video overwrite yes or no Encrypted
  • Save as save_name text, one line Encrypted
  • Exported at exported_at date and timeset when status becomes Exported Indexed

Indexed fields are kept plain, so your cloud can sort and filter by them. Encrypted fields are encrypted before they reach the disk.

Screens

ClipperA timeline of projects.

Each is a tab, drawn by your cloud itself on every surface:

  • Phonethe web app, made for the phone
  • Webthe full web app, in a browser
  • Terminalthe terminal app
  • Command linecm clipper
  • Assistanttools for your assistant, as you

Its own code

Service renderpython services/render.py, kept running
API frames/api/q/clipper/…, answered by its service render
Action edit-videoEdit this video, on a file; asks for nothing
Action edit-soundEdit this sound, on a file; asks for nothing
Action saveSave, on a project; asks for overwrite, name
Action exportExport, on a project; asks for format, size, name
Action refreshRefresh; asks for nothing

Its Python, quill.py, runs in a sandbox on your cloud, as whoever uses it, and reaches only what it declares. Your cloud shows all of this before you say yes; code on your own machine runs only once you switch it on there.

In its own words

A video editor for the videos and photos in your own drive: drag clips and photos onto video and audio tracks, cut, trim and rearrange them, put one small over another, blur what should not be seen with keyframes, crop, and export a new file. It is a Quill for Cloudmorrow: the editor is Cloudmorrow's timeline kit, drawn on the phone, in the web app, in the terminal and on the command line by Cloudmorrow itself, and the pictures and exports are made beside your own server, with an ffmpeg the install brings. Nothing leaves it.

How it works

  1. Open Clipper: it starts on your projects. The new button asks for a name and a video size — 1080p, 720p, 4K, vertical, square, a size of your own, or the size of the first clip you add.
  2. In the editor, the media beside the picture are the videos, photos and sounds in your drive, as tiles (another drive or share is chosen above them). Drag one onto a track where it should go — it snaps to the pieces already there — or tap it to put it at the playhead, after whatever is on the track; on the phone, Add clip brings the tiles up. A photo stays five seconds, or as long as you trim it. Move pieces along the timeline and between tracks, trim either end, split at the playhead, mute a piece or set its volume. A higher video track covers a lower one; every piece's sound is mixed. Or start from a video in Media (or Files): Edit this video on it — a video's sheet has it, a sound's has Edit this sound, a photo's has Retouch's button — opens it under its own name, all of it on the first track, with nothing to type first.
  3. Make smaller on a piece puts its picture in a box over whatever is on the tracks under it: drag the box on the viewer to move and resize it, or type where it goes, and Fill the picture makes it whole again. So a photo or a second clip can sit in a corner of the first.
  4. Add blur on a piece and drag its box over a face, a number plate or a screen. Every change sets a keyframe at the playhead; between keyframes the box moves and resizes in a straight line. Blurs belong to their piece, so moving the piece takes them with it.
  5. Crop the whole picture, if you like.
  6. Save, on a project opened from a video: write over the video itself (the one before goes to the Trash for thirty days, and the project starts afresh on the saved video), or save as a new file beside it, in the kind its name says — .mp4, .mov, .webm, .gif or .m4a. Export is for the rest: MP4 (H.264 and AAC, plays anywhere), WebM (VP9 and Opus), MOV, GIF (no sound) or M4A (the sound alone), as the project or at 1080p, 720p or 480p, into My Files › Clipper Exports, under the name you give it.

What it adds to your Cloudmorrow

Datamodels uses the foundational file; introduces clipper.project (a timeline: its picture size, frame rate, tracks, crop, export settings and the status of its export), clipper.piece (part of a file on a track: where it starts, where in the file it is cut from, how long, its volume, and its place in the picture), clipper.effect (a blur on a piece and its keyframes) and clipper.media (what the renderer read from a file: its length, size, whether it has sound, and whether it is a photo)
Screens Clipper (the projects and the editor: the timeline kit) — on the phone, the web app, the terminal, cm clipper, and to your assistant
Actions Edit this video (on a video's sheet, in Media or Files) and Edit this sound (on a sound's), Save (over the video, or as a new file by name), Export (format, size, name), Refresh
Quills requires Media, which shows the videos and photos in your drive and is installed with Clipper
Services, APIs render: a program beside the server (services/render.py), kept running, with ffmpeg. It serves the frames API the editor's viewer draws from (/api/q/clipper/frames/info, /source, /frame), fills in the lengths and sizes the editor leaves blank, and renders the exports, through the record API

What it needs

Media, which comes with the install: the manifest requires the media Quill ([requires] quills), so installing Clipper installs Media first, from the catalog, and Media cannot be removed while Clipper is here. Media works without Clipper.

ffmpeg, which comes with the install: the manifest requires the ffmpeg runtime, so the install sheet says what it adds to the server, and the server fetches the catalog's static build for its own machine, checks it, and puts ffmpeg and ffprobe first on the renderer's PATH. Nothing is installed on the system itself, and nobody opens a shell. Removing Clipper offers to take ffmpeg too when no other Quill needs it. Should the program ever be missing all the same, an export says so.

The renderer runs as the administrator who installed Clipper, the way Quill services do today, so it draws and renders the projects in their drive. Other people's projects wait for services that run for everyone.

Working on it

See CLAUDE.md. In short: cm quill check, cm quill test (and --sandbox), then cm quill dev --local. The renderer's arithmetic (a timeline to ffmpeg filter graphs) is services/graph.py, tested without a server in tests/test_graph.py; tests/test_render.py exports a real timeline made of tiny ffmpeg-generated media and looks at its pixels, when ffmpeg is installed.