Skip to content

The swiss army knife of lossless video/audio editing

Merge remote-tracking branch 'origin/master' into claude/losslesscut-ranking-issue-km32mk

Claudec3f4c50233f7
diff --cc AGENTS.md
index 62e16e0a,2b3c7f0c..3644d0da
--- a/AGENTS.md
+++ b/AGENTS.md
@@@ -30,10 -24,18 +30,26 @@@ When helping with a release, follow [RE
Never submit to a store, publish a release or post an announcement without the user's approval of the exact text first.
+## Feature post
+
- When a visual or especially interesting feature lands in master, suggest a short post about just that feature. Use the channels, character limits, hashtags and posting steps of the [release announcement](./RELEASING.md#release-announcement), but start with the feature instead of a version number, and attach the user's screenshot or clip instead of a release image:
++When a visual or especially interesting feature lands in master, suggest a short post about just that feature. Use the channels, character limits, hashtags and posting steps of the [release announcement](./RELEASING.md#release-announcement), but start with the feature instead of a version number, and attach the screenshot or clip instead of a release image:
+
- - Ask the user to make a screenshot or a short silent screen recording (about 10 seconds) that shows it.
++- Record it with a scenario (see [Feature media](#feature-media)), and post its social media version, or ask the user for a screenshot or a short silent screen recording (about 10 seconds) that shows it.
+- Say that people can try it now in the latest nightly build (https://mifi.no/llc/nightly/), and that it will be in the next release.
- - Such a clip can also become the homepage's hero video (1024×640, silent, with a still of its first frame as the poster): upload it to static.mifi.no and update `heroVideo` in `website/src/images.ts`.
++- Its plain master can also go on the homepage (silent, with a still of its first frame as the poster): upload it to static.mifi.no and add it to `website/src/images.ts` (e.g. `heroVideo`).
++
+ ## Feature media
+
+ `script/featureMedia.ts` records screenshots and a short video of a feature demo, for social media posts and the website. Each demo is a scenario in `script/featureMedia/scenarios.ts` that drives the app through the HTTP API. It runs on Linux under Xvfb (e.g. in a cloud session):
+
+ ```bash
+ yarn build && yarn download-ffmpeg-linux-x64
+ # If missing: apt-get install xvfb xdotool fonts-inter
+ xvfb-run -a -s "-screen 0 1024x640x24" node script/featureMedia.ts cut-segments
+ ```
+
+ The clips come from `dist/feature-media-clips`. Missing ones are made from free sources with an ffmpeg stream copy (`script/featureMedia/clips.ts`, which only downloads the part that's needed) or downloaded from https://static.mifi.no/losslesscut (or `FEATURE_MEDIA_CLIPS_URL`; behind a proxy, e.g. in a cloud session, set `NODE_USE_ENV_PROXY=1`). For a new clip, prefer a free source in `clips.ts` (its host must be allowed by the network policy), or ask the user to upload it. `tears-of-steel.mkv` is an excerpt of [Tears of Steel](https://mango.blender.org/), which is CC BY 3.0, so posts that show it must credit "Tears of Steel (CC) Blender Foundation | mango.blender.org". The results go to `dist/feature-media`. Failed actions don't fail the script, so look at the screenshots (and `<scenario>-app.log`) to check that the demo did what it should. Never commit clips or results.
+
+ Each demo makes a plain master (`<scenario>.mp4`, for the website) and social media versions with the scenario's captions and zooms and an intro and outro card (`<scenario>-landscape.mp4`, and `<scenario>-vertical.mp4` for Reels, TikTok and Shorts). They have music: by default a track from `script/featureMedia/music.ts` (pick another with `--music <name>`, use an audio file, or `--music none`). The script prints the credit the track needs; add it to the post, e.g. `Music: "Werq" by Kevin MacLeod (incompetech.com), CC BY 4.0`. For sharp screenshots (e.g. for the website), record with `--scale 2` and Xvfb at `-screen 0 2048x1280x24`: the app is drawn at twice the pixels, and scenarios use the same coordinates.
+
+ When a user-visible feature lands on master, suggest adding a scenario for it and recording it.