Skip to content

The swiss army knife of lossless video/audio editing

Link the website's images and videos, and the README's screenshot, from static.mifi.no/media

Mikael Finstad2610269c8d2b
diff --git a/AGENTS.md b/AGENTS.md
index 3644d0da..8e4041ee 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -36,7 +36,7 @@ When a visual or especially interesting feature lands in master, suggest a short
- 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.
-- 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`).
+- Its plain master can also go on the homepage (silent, with a still as the poster: its first frame, or one that shows the feature): ask the maintainer (Mikael) to publish it on static.mifi.no, and put the `media/<public id>/` URLs they give you in `website/src/images.ts` (e.g. `heroVideo`). Don't upload files yourself.
## Feature media
diff --git a/README.md b/README.md
index 2960979f..d4265185 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,7 @@
<a href="https://mifi.no/thanks/">Thanks to my supporters</a> and everyone who purchased LosslessCut!
<br>
<br>
- <p align="center"><img src="https://static.mifi.no/dist/losslesscut/screenshots/main-2000.jpg" width="600" alt="screenshot" /></p>
+ <p align="center"><img src="https://static.mifi.no/media/InHeghy_4DwVeujK/2000.jpg" width="600" alt="screenshot" /></p>
<br>
<br>
</div>
diff --git a/no.mifi.losslesscut.appdata.xml b/no.mifi.losslesscut.appdata.xml
index ee1c8f82..d897b0e8 100644
--- a/no.mifi.losslesscut.appdata.xml
+++ b/no.mifi.losslesscut.appdata.xml
@@ -14,7 +14,7 @@
<launchable type="desktop-id">no.mifi.losslesscut.desktop</launchable>
<screenshots>
<screenshot type="default">
- <image>https://static.mifi.no/dist/losslesscut/screenshots/main-2000.jpg</image>
+ <image>https://static.mifi.no/media/InHeghy_4DwVeujK/2000.jpg</image>
<caption>A screenshot of the main window of LosslessCut</caption>
</screenshot>
</screenshots>
diff --git a/website/src/images.ts b/website/src/images.ts
index 706b6efb..d24b517e 100644
--- a/website/src/images.ts
+++ b/website/src/images.ts
@@ -1,36 +1,39 @@
-// The homepage's images are hosted on static.mifi.no (resized versions in dist/; the originals are private).
-const baseUrl = 'https://static.mifi.no';
-
-// The `''` size is about 0.3 megapixels and `-2000` is the full image for these, so they make a 1x/2x pair
-const withSrcSet = (path: string) => ({
- src: `${baseUrl}/dist/${path}.jpg`,
- srcSet: `${baseUrl}/dist/${path}.jpg 1x, ${baseUrl}/dist/${path}-2000.jpg 2x`,
+// The homepage's images and videos are published on static.mifi.no from Mikael's photo library, each at
+// media/<public id>/<file>: images as <size>.jpg, videos as <size>.mp4 with posters as poster-<size>.jpg. Sizes are about 0.3 (300),
+// 1 (1000) and 2 (2000) megapixels, never larger than the original. The originals are private.
+const media = (publicId: string, file: string) => `https://static.mifi.no/media/${publicId}/${file}`;
+
+// The 300 size is about 0.3 megapixels, and 2000 is the full image for these (800×600), so they make a 1x/2x pair (about 1x/1.3x)
+const withSrcSet = (publicId: string) => ({
+ src: media(publicId, '300.jpg'),
+ srcSet: `${media(publicId, '300.jpg')} 1x, ${media(publicId, '2000.jpg')} 2x`,
});
-export const generationLossOriginal = withSrcSet('losslesscut/website/generation-loss-original');
-export const generationLossReencoded = withSrcSet('losslesscut/website/generation-loss-reencoded');
+export const generationLossOriginal = withSrcSet('JsdhNV0HgDGbh8kK');
+export const generationLossReencoded = withSrcSet('Pyj2ktQ2cfCZV5Lv');
-export const background1 = `${baseUrl}/dist/losslesscut/website/background-1000.jpg`;
-export const background2 = `${baseUrl}/dist/losslesscut/website/background2-1000.jpg`;
+export const background1 = media('Dh1-fklTTZgeL_-d', '1000.jpg');
+export const background2 = media('HJz8FiHBINJq9DoO', '1000.jpg');
-// Screen recordings (script/featureMedia.ts): silent, a smaller one for phones, and a still of the first frame
+// Screen recordings (script/featureMedia.ts): silent, a smaller one for phones, and a still for the poster (the first frame, or one that
+// shows the feature)
export interface Video { src: string, smallSrc: string, poster: string, width: number, height: number }
// About 13 s
export const heroVideo: Video = {
- src: `${baseUrl}/dist/losslesscut/feature-media/hero-2026-10-22-1000.mp4`,
- smallSrc: `${baseUrl}/dist/losslesscut/feature-media/hero-2026-10-22.mp4`,
- poster: `${baseUrl}/dist/losslesscut/feature-media/hero-2026-10-22-poster-1000.jpg`,
+ src: media('eiLI5DmAyZ164Vb4', '1000.mp4'),
+ smallSrc: media('eiLI5DmAyZ164Vb4', '300.mp4'),
+ poster: media('eiLI5DmAyZ164Vb4', 'poster-1000.jpg'),
width: 1024,
height: 640,
};
// About 10 s: creating segments from the scene changes of a Tears of Steel excerpt (CC BY: the homepage credits it)
export const sceneChangesVideo: Video = {
- src: `${baseUrl}/dist/losslesscut/feature-media/detect-scene-changes-2026-10-22-1000.mp4`,
- smallSrc: `${baseUrl}/dist/losslesscut/feature-media/detect-scene-changes-2026-10-22.mp4`,
- poster: `${baseUrl}/dist/losslesscut/feature-media/detect-scene-changes-2026-10-22-poster-1000.jpg`,
+ src: media('Ctw7264I6yLMJzmc', '1000.mp4'),
+ smallSrc: media('Ctw7264I6yLMJzmc', '300.mp4'),
+ poster: media('Ctw7264I6yLMJzmc', 'poster-1000.jpg'),
width: 1024,
height: 640,
};
@@ -38,12 +41,12 @@ export const sceneChangesVideo: Video = {
// About 7 s: switching off tracks one by one, in a crop of the Tracks panel, with a Tears of Steel excerpt (CC BY: the homepage
// credits it). The small one is 1330×750
export const tracksVideo: Video = {
- src: `${baseUrl}/dist/losslesscut/feature-media/tracks-panel-2026-10-22-2000.mp4`,
- smallSrc: `${baseUrl}/dist/losslesscut/feature-media/tracks-panel-2026-10-22-1000.mp4`,
- poster: `${baseUrl}/dist/losslesscut/feature-media/tracks-panel-2026-10-22-poster-1000.jpg`,
+ src: media('dA_qOIvwYnjEOOfT', '2000.mp4'),
+ smallSrc: media('dA_qOIvwYnjEOOfT', '1000.mp4'),
+ poster: media('dA_qOIvwYnjEOOfT', 'poster-1000.jpg'),
width: 1834,
height: 1034,
};
// Social preview image (1200x630)
-export const ogImage = `${baseUrl}/dist/losslesscut/og-image-1000.jpg`;
+export const ogImage = media('MbXWWcu1zsMAinf4', '1000.jpg');