@gentbajko/slopify 4.3.5 → 4.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/edge/http/projects.js +4 -1
  2. package/dist/extension/slopify-studio-chrome.zip +0 -0
  3. package/dist/extension/slopify-studio-firefox.zip +0 -0
  4. package/dist/main.js +12 -3
  5. package/dist/patch-notes/4.4.0.md +37 -0
  6. package/dist/patch-notes/4.5.0.md +20 -0
  7. package/dist/patch-notes/index.json +12 -0
  8. package/dist/slices/admission/schema.js +3 -1
  9. package/dist/slices/rebuild/recipe-edit.js +8 -1
  10. package/dist/slices/rebuild/runtime-export.js +4 -3
  11. package/dist/slices/revisions/view.js +19 -8
  12. package/dist/slices/shorts/captions.js +2 -1
  13. package/dist/slices/storage/named-ids.js +46 -0
  14. package/dist/slices/storage/trim.js +24 -12
  15. package/dist/slices/subtitles/captions.js +2 -1
  16. package/dist/slices/video/cards.js +2 -0
  17. package/dist/slices/video/clip-cache.js +15 -7
  18. package/dist/slices/video/clip-captions.js +120 -0
  19. package/dist/slices/video/colour.js +22 -0
  20. package/dist/slices/video/edit-settings.js +17 -0
  21. package/dist/slices/video/encoder-probe.js +124 -0
  22. package/dist/slices/video/encoding.js +157 -92
  23. package/dist/slices/video/ffmpeg.js +64 -73
  24. package/dist/slices/video/look.js +23 -9
  25. package/dist/slices/video/move.js +89 -0
  26. package/dist/slices/video/pool.js +6 -5
  27. package/dist/slices/video/slideshow.js +137 -28
  28. package/dist/slices/video/still-sizes.js +37 -0
  29. package/dist/tutorials/Create-Video-and-Style.md +13 -0
  30. package/dist/tutorials/Settings-Reference.md +4 -2
  31. package/dist/tutorials/Video-Editing.md +4 -0
  32. package/dist/web/assets/index-hN_yzSRs.js +460 -0
  33. package/dist/web/index.html +1 -1
  34. package/package.json +1 -1
  35. package/dist/web/assets/index-Bvtq2QTE.js +0 -460
@@ -1,26 +1,49 @@
1
- import { copyFileSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs";
2
- import { extname, join } from "node:path";
1
+ import { copyFileSync, cpSync, existsSync, mkdirSync, mkdtempSync, readdirSync, readFileSync, rmSync, writeFileSync, } from "node:fs";
2
+ import { extname, join, resolve } from "node:path";
3
3
  import { errorText, internalError } from "../../kernel/errors.js";
4
4
  import { masterFile, masterReport } from "../loudness/loudnorm.js";
5
5
  import { cardsAss } from "./cards.js";
6
- import { cacheKey, fileIdentity, keepClip, pruneClips, reuseClip } from "./clip-cache.js";
7
- import { defaultEncode, nvencFallbackNotice, } from "./encoding.js";
6
+ import { cacheKey, contentIdentity, fileIdentity, keepClip, pruneClips, reuseClip, } from "./clip-cache.js";
7
+ import { captionedClips, drawsOwnCaptions, readCaptions, } from "./clip-captions.js";
8
+ import { defaultEncode, encoderBin, nvencFallbackNotice, svtav1FallbackNotice, } from "./encoding.js";
8
9
  import { audioMixArgs, burnPartArgs, concatList, joinArgs, runFfmpeg, segmentArgs, slideshowClips, } from "./ffmpeg.js";
9
10
  import { cardsIn } from "./look.js";
10
11
  import { inPool, renderJobs } from "./pool.js";
11
- // estimate: a zoompan frame from a 4x still costs several plain encoded frames, and a
12
+ import { stillSizes } from "./still-sizes.js";
13
+ // estimate: a frame sampled from its still and encoded costs several plain encoded frames, and a
12
14
  // copying join is nearly free, so progress is weighted by that rather than by clock time.
13
15
  const clipWeight = 4;
14
16
  const copyWeight = 0.05;
17
+ // The caption fonts beside the clips, apart from the chapter cards' `fonts`.
18
+ const captionFonts = "caption-fonts";
15
19
  // floor: a burned-in part shorter than a minute is not worth its own run.
16
20
  const leastPartFrames = 60 * 30;
17
21
  // The sound the join plays, as the join itself brings every segment to it.
18
22
  const masterFormat = { sampleRate: 44100, channels: 2 };
19
- // What the master measured, when the run asked for one. A render on the NVIDIA card that fails
20
- // for any reason but a cancel is made again on the processor: the card never fails a render.
23
+ // What the master measured, when the run asked for one. A render in the computer's own ffmpeg
24
+ // (the NVIDIA card, SVT-AV1) that fails for any reason but a cancel is made again on the
25
+ // processor with the bundled one: neither ever fails a render. The card's HEVC falls back to
26
+ // x265; its AV1, like SVT-AV1's, to H.264, since the processor's AV1 needs that same ffmpeg.
21
27
  export async function renderSlideshow(run) {
22
28
  const encode = run.machine?.encode ?? defaultEncode;
23
- if (encode.kind !== "nvenc")
29
+ const fallback = run.machine?.fallback;
30
+ // Automatic's card AV1: today's H.264 render takes over, without a notice, which keeps its
31
+ // own way of recovering from a card that fails.
32
+ if (fallback !== undefined && run.machine !== undefined) {
33
+ try {
34
+ return await renderWith(run, encode);
35
+ }
36
+ catch (error) {
37
+ if (run.signal.aborted)
38
+ throw error;
39
+ run.log.write("warn", "video.encoder", {
40
+ detail: `the automatic AV1 render on the card failed; rendering H.264 as before: ${errorText(error)}`,
41
+ });
42
+ const { fallback: _used, ...machine } = run.machine;
43
+ return renderSlideshow({ ...run, machine: { ...machine, encode: fallback } });
44
+ }
45
+ }
46
+ if (encode.kind !== "nvenc" && encode.kind !== "svtav1")
24
47
  return renderWith(run, encode);
25
48
  try {
26
49
  return await renderWith(run, encode);
@@ -29,28 +52,43 @@ export async function renderSlideshow(run) {
29
52
  if (run.signal.aborted)
30
53
  throw error;
31
54
  const detail = errorText(error);
55
+ const card = encode.kind === "nvenc";
32
56
  run.log.write("warn", "video.encoder", {
33
- detail: `the NVENC render failed; rendering again on the processor: ${detail}`,
57
+ detail: `the ${card ? "NVENC" : "SVT-AV1"} render failed; rendering again on the processor: ${detail}`,
58
+ });
59
+ const why = `it stopped the render: ${detail}`;
60
+ run.notice?.(card ? nvencFallbackNotice(why) : svtav1FallbackNotice(why));
61
+ return renderWith(run, {
62
+ kind: card && encode.codec === "hevc" ? "x265" : "x264",
63
+ clipSpeed: encode.clipSpeed,
34
64
  });
35
- run.notice?.(nvencFallbackNotice(`it stopped the render: ${detail}`));
36
- return renderWith(run, { kind: "x264", clipSpeed: encode.clipSpeed });
37
65
  }
38
66
  }
39
67
  async function renderWith(run, encode) {
40
68
  const { edit } = run;
41
69
  const priority = run.machine?.priority;
42
70
  // The ffmpeg that encodes the picture; copying, sound and probing stay with the bundled one.
43
- const encoder = encode.kind === "nvenc" ? encode.bin : run.bin;
44
- const { clips, order } = slideshowClips(edit);
71
+ const encoder = encoderBin(encode, run.bin);
72
+ const distinct = slideshowClips(edit);
73
+ // Captions are burned in one of two ways (`clip-captions.ts`): drawn by each clip's own run,
74
+ // or over the joined clips in a second encode.
75
+ const own = run.burnSubtitles && drawsOwnCaptions(distinct.clips, distinct.order)
76
+ ? ownCaptions(run, edit.fps)
77
+ : undefined;
78
+ const twice = run.burnSubtitles && own === undefined;
79
+ const { clips, order, } = own === undefined
80
+ ? { clips: distinct.clips.map((clip) => ({ name: clip.name, clip })), order: distinct.order }
81
+ : captionedClips(distinct.clips, distinct.order, own.captions, edit.fps);
82
+ const sized = { ...edit, stills: stillSizes(edit.shots, run.log) };
45
83
  const msOf = (frames) => (frames / edit.fps) * 1000;
46
84
  const joinMs = msOf(edit.shots.reduce((sum, shot) => sum + shot.frames, 0));
47
85
  // Progress is reported against the video's length, the longer of picture and sound.
48
86
  const totalMs = Math.max(joinMs, edit.audio.reduce((sum, segment) => sum + segment.seconds * 1000, 0));
49
- const clipMs = clips.reduce((sum, clip) => sum + msOf(clip.frames), 0);
87
+ const clipMs = clips.reduce((sum, one) => sum + msOf(one.clip.frames), 0);
50
88
  const jobs = run.jobs ?? renderJobs();
51
- const parts = run.burnSubtitles ? burnParts(order, clips, jobs) : [];
89
+ const parts = twice ? burnParts(order, distinct.clips, jobs) : [];
52
90
  const work = clipMs * clipWeight +
53
- joinMs * (run.burnSubtitles ? 1 : copyWeight) +
91
+ joinMs * (twice ? 1 : copyWeight) +
54
92
  (parts.length > 1 ? joinMs * copyWeight : 0);
55
93
  const report = (done) => {
56
94
  run.onProgress(work > 0 ? Math.round((Math.min(done, work) / work) * totalMs) : 0);
@@ -66,6 +104,8 @@ async function renderWith(run, encode) {
66
104
  mkdirSync(join(workspace, "fonts"), { mode: 0o700 });
67
105
  copyFileSync(font.path, join(workspace, "fonts", `card${extname(font.path)}`));
68
106
  }
107
+ // And so are a clip's own captions, with their fonts and the speaker portraits.
108
+ const drawn = own === undefined ? undefined : captionFiles(own, run.portraits, workspace);
69
109
  // The sound is mixed, levelled and encoded while the picture renders, on its own run; the
70
110
  // join then only copies it in. Either failing stops the other, and the first failure is
71
111
  // the one reported.
@@ -96,16 +136,25 @@ async function renderWith(run, encode) {
96
136
  const tell = () => {
97
137
  report(rendered + [...running.values()].reduce((sum, one) => sum + one, 0));
98
138
  };
99
- await inPool(clips, jobs, halt, async (clip, signal) => {
100
- const script = clip.name.replace(/\.mp4$/, ".ass");
139
+ await inPool(clips, jobs, halt, async (made, signal) => {
140
+ const { clip } = made;
141
+ const script = made.name.replace(/\.mp4$/, ".ass");
101
142
  const shown = cardsIn(cards, clip.segment.start, clip.segment.count);
102
- const drawn = shown.length > 0 && font !== undefined
143
+ const carded = shown.length > 0 && font !== undefined
103
144
  ? cardsAss(edit, shown, font.name, clip.segment.start, edit.cardColor)
104
145
  : undefined;
105
- if (drawn !== undefined)
106
- writeFileSync(join(workspace, script), drawn, { mode: 0o600 });
107
- const output = join(workspace, clip.name);
108
- const args = segmentArgs(edit, clip.segment, output, run.burnSubtitles, script, encode);
146
+ if (carded !== undefined)
147
+ writeFileSync(join(workspace, script), carded, { mode: 0o600 });
148
+ const spoken = made.name.replace(/\.mp4$/, ".said.ass");
149
+ const said = drawn === undefined ? undefined : made.said;
150
+ if (said !== undefined)
151
+ writeFileSync(join(workspace, spoken), said, { mode: 0o600 });
152
+ const output = join(workspace, made.name);
153
+ const args = segmentArgs(sized, clip.segment, output, drawn !== undefined && said !== undefined
154
+ ? { script: spoken, fonts: drawn.fonts, portraits: drawn.portraits }
155
+ : twice
156
+ ? "recaptioned"
157
+ : "watched", script, encode);
109
158
  const weight = msOf(clip.frames) * clipWeight;
110
159
  const cache = run.cache;
111
160
  let key;
@@ -113,7 +162,18 @@ async function renderWith(run, encode) {
113
162
  // let it go a moment ago) is encoded as if there were none.
114
163
  try {
115
164
  if (cache !== undefined) {
116
- key = cacheKey(encoder, args.map((value) => drawn === undefined ? value : value.replaceAll(script, "\u0000cards")), output, drawn === undefined || font === undefined ? [] : [drawn, fileIdentity(font.path)]);
165
+ key = cacheKey(encoder,
166
+ // The scripts are named after the clip's place in this render; what they say
167
+ // is in the key instead.
168
+ args.map((value) => {
169
+ const unsaid = said === undefined ? value : value.replaceAll(spoken, "\u0000captions");
170
+ return carded === undefined ? unsaid : unsaid.replaceAll(script, "\u0000cards");
171
+ }), output, [
172
+ ...(carded === undefined || font === undefined
173
+ ? []
174
+ : [carded, fileIdentity(font.path)]),
175
+ ...(drawn === undefined || said === undefined ? [] : [said, ...drawn.identity()]),
176
+ ], drawn?.stand());
117
177
  keys.add(key);
118
178
  if (reuseClip(cache, key, output)) {
119
179
  rendered += weight;
@@ -128,17 +188,17 @@ async function renderWith(run, encode) {
128
188
  }
129
189
  await runFfmpeg({
130
190
  bin: encoder,
131
- ...(cards.length > 0 ? { cwd: workspace } : {}),
191
+ ...(cards.length > 0 || drawn !== undefined ? { cwd: workspace } : {}),
132
192
  args,
133
193
  signal,
134
194
  log: run.log,
135
195
  priority,
136
196
  onProgress: (elapsedMs) => {
137
- running.set(clip.name, Math.min(elapsedMs * clipWeight, weight));
197
+ running.set(made.name, Math.min(elapsedMs * clipWeight, weight));
138
198
  tell();
139
199
  },
140
200
  });
141
- running.delete(clip.name);
201
+ running.delete(made.name);
142
202
  rendered += weight;
143
203
  if (cache !== undefined && key !== undefined) {
144
204
  try {
@@ -191,7 +251,7 @@ async function renderWith(run, encode) {
191
251
  throw failed.error;
192
252
  if (played === undefined)
193
253
  throw new Error("the render was canceled");
194
- const burnsHere = run.burnSubtitles && parts.length <= 1;
254
+ const burnsHere = twice && parts.length <= 1;
195
255
  await runFfmpeg({
196
256
  bin: burnsHere ? encoder : run.bin,
197
257
  cwd: run.cwd,
@@ -218,6 +278,55 @@ async function renderWith(run, encode) {
218
278
  rmSync(workspace, { recursive: true, force: true });
219
279
  }
220
280
  }
281
+ // The whole video's captions, read so each clip can draw its own part of them.
282
+ function ownCaptions(run, fps) {
283
+ const again = "Press Make the video again in the project's Video section";
284
+ const folder = run.cwd;
285
+ if (folder === undefined)
286
+ throw new Error(internalError("the captions have no folder", again));
287
+ let script;
288
+ try {
289
+ script = readFileSync(join(folder, "subtitles.ass"), "utf8");
290
+ }
291
+ catch (error) {
292
+ throw new Error(internalError(`the captions could not be read: ${errorText(error)}`, again), {
293
+ cause: error,
294
+ });
295
+ }
296
+ return { captions: readCaptions(script, fps), folder };
297
+ }
298
+ // What the clips draw their own captions with, put beside them: the caption fonts, and the
299
+ // speaker portraits where the caption folder holds them. That folder is written anew for
300
+ // every render, so `identity` and `stand` name the files in a clip's cache key by what they
301
+ // hold rather than by their path and date.
302
+ function captionFiles(own, portraits = [], workspace) {
303
+ const from = join(own.folder, "fonts");
304
+ const to = join(workspace, captionFonts);
305
+ if (existsSync(from))
306
+ cpSync(from, to, { recursive: true });
307
+ else
308
+ mkdirSync(to, { mode: 0o700 });
309
+ const placed = portraits.map((portrait) => ({
310
+ ...portrait,
311
+ path: resolve(own.folder, portrait.path),
312
+ }));
313
+ let identity;
314
+ let stand;
315
+ return {
316
+ fonts: captionFonts,
317
+ portraits: placed,
318
+ identity: () => {
319
+ identity ??= readdirSync(to)
320
+ .toSorted()
321
+ .map((name) => `${name}|${contentIdentity(join(to, name))}`);
322
+ return identity;
323
+ },
324
+ stand: () => {
325
+ stand ??= new Map(placed.map((portrait) => [portrait.path, `portrait:${contentIdentity(portrait.path)}`]));
326
+ return stand;
327
+ },
328
+ };
329
+ }
221
330
  // The video's finished sound as AAC in the working folder: the narration, silences and bed
222
331
  // mixed, and with Level the volume mastered first, alone and then as one file.
223
332
  async function renderSound(run, edit, workspace, signal) {
@@ -0,0 +1,37 @@
1
+ import { closeSync, openSync, readSync } from "node:fs";
2
+ import { errorText } from "../../kernel/errors.js";
3
+ import { pictureSize } from "../designs/picture-size.js";
4
+ // A PNG states its size in its first 24 bytes; a JPEG after its metadata, which a camera's
5
+ // thumbnail and colour profile can make a few hundred kilobytes.
6
+ const headBytes = 512 * 1024;
7
+ // Each still's own size, from the start of its file: a still with no more pixels than the
8
+ // frame is sampled from a smaller base (`move.ts`). One whose size cannot be read is left
9
+ // out and treated as a large one, which loses nothing and only costs time.
10
+ export function stillSizes(shots, log) {
11
+ const sizes = new Map();
12
+ const seen = new Set();
13
+ const head = Buffer.alloc(headBytes);
14
+ for (const { source } of shots) {
15
+ if (source.kind !== "image" || seen.has(source.path))
16
+ continue;
17
+ seen.add(source.path);
18
+ try {
19
+ const file = openSync(source.path, "r");
20
+ try {
21
+ const size = pictureSize(head.subarray(0, readSync(file, head, 0, head.length, 0)));
22
+ if (size !== undefined)
23
+ sizes.set(source.path, size);
24
+ }
25
+ finally {
26
+ closeSync(file);
27
+ }
28
+ }
29
+ catch (error) {
30
+ // The render refuses a still it cannot open, in ffmpeg's own words; this only notes it.
31
+ log.write("warn", "video.still", {
32
+ detail: `could not read the size of ${source.path}: ${errorText(error)}`,
33
+ });
34
+ }
35
+ }
36
+ return sizes;
37
+ }
@@ -63,6 +63,19 @@ After the run, you can fix a misheard word or nudge a caption's timing on the pr
63
63
 
64
64
  Turning on **More images for long videos** in the Images row switches **Motion** from Zoom to **Mix of both**. See [Images](Create-Images#more-images-for-long-videos).
65
65
 
66
+ ## Video codec
67
+
68
+ **Video codec** sits beside **Cuts** and decides the format of the finished video file. It is saved with the project or template.
69
+
70
+ | Choice | What it does |
71
+ | --- | --- |
72
+ | **Automatic (AV1 on the graphics card, else H.264)** | The default, and what a project without the setting gets. AV1 encoded on the NVIDIA card whenever the card can encode AV1 (RTX 40 series and newer), whatever **Video encoder** says in Settings: about 44% of the H.264 file for the same picture. Without such a card the video is H.264 exactly as before, made by the Video encoder you chose, and nothing is said about it. If the card's AV1 fails mid-render, the video is made again the old way. |
73
+ | **H.264** | Works everywhere: every player, browser and upload site. Always H.264, as every video was before, never AV1. |
74
+ | **HEVC** | About half to three fifths of the file for the same picture. On the processor it is x265, from Slopify's own ffmpeg; on an NVIDIA card, the card's HEVC encoder. |
75
+ | **AV1** | The smallest file: about 29% of the H.264 one on the processor, about 44% on an NVIDIA card, for the same picture (measured on a 1080p video). On the processor it needs an ffmpeg with SVT-AV1 on the computer (the `ffmpeg` on your `PATH` or `/usr/bin/ffmpeg`) and renders slower. |
76
+
77
+ For the explicit choices, whether the processor or the NVIDIA card encodes it is **Settings → Production defaults → Video encoder**. If AV1 is chosen and no ffmpeg with SVT-AV1 is found, or the card can't encode the chosen codec, the video is made as H.264 and its Video part says why; the video is never failed for it. Shorts and the style preview are always H.264. Choosing HEVC or AV1 makes only the video again; Automatic and H.264 leave a finished video current, and it comes out AV1 the next time it is made where the card allows.
78
+
66
79
  ## The Look
67
80
 
68
81
  **Look** is a fold in the row. Folded, its line lists what is on (for example **Crossfade 2 s · Warm fantasy · Fog · Vignette**). Everything in it is drawn on this computer at no cost; only animated images are charged, by the image service.
@@ -116,10 +116,12 @@ The volume fields show only while the switch is on. A project keeps what it star
116
116
  | Control | What it does | Default |
117
117
  |---|---|---|
118
118
  | **Video encoder** | What turns the frames into the finished file. **Processor (x264)** is the one every computer has. **NVIDIA graphics card (NVENC)** encodes on the card at its highest-quality settings (preset p7, tune hq, constant quality) and leaves the processor for the rest. It is offered only when Slopify finds an ffmpeg with NVENC (its own, else the `ffmpeg` on your `PATH` or `/usr/bin/ffmpeg`) that passes a tiny test encode; otherwise the line under it says "No working NVIDIA graphics card was found on this computer" (or that none was found) and that videos are encoded on the processor, with what the test printed under **Details**. | Processor (x264) |
119
- | **Clip encoding** | How hard the processor works on each image's clip before the captions are drawn over them. **Thorough** is x264's medium preset; **Fast** is its veryfast preset at the same quality setting (CRF 16), about half the processor time for a slightly softer picture. Only the clips under captions in the video change. Has no effect with the NVIDIA encoder. | Thorough |
119
+ | **Clip encoding** | How hard the processor works on a video with captions drawn into the picture. **Thorough** is x264's medium preset. **Fast** takes about a sixth less time for a slightly softer picture. Where each image is shown once, every clip draws its own captions and is encoded once, and Fast is x264's faster preset. Where the same images come round again, their clips are encoded once and the captions are drawn over the joined video in a second encode, and Fast is the veryfast preset for those clips (CRF 16). Has no effect without captions in the video, or with the NVIDIA encoder. | Thorough |
120
120
  | **Encoding priority** | **Background (your other programs come first)** runs every ffmpeg of a video, short or audio file, its volume mastering included, below normal priority, and that of the style preview, template samples, designs and posts' pictures too (nice 10 on Linux and macOS, below-normal on Windows): your browser, games and other programs take the processor first and the video gets what is left. **Normal** competes with them as an equal. The finished video is the same either way. | Background |
121
121
 
122
- What they cost and give, measured on two minutes of a real project with captions in the video (32-core processor, RTX 5080): **Fast** halved the clips' processor time and cut the whole video's by 30% (10 to 17% less waiting), for a slightly softer picture (0.9 VMAF less) at the same file size. **NVIDIA** cut the processor time by 80% and the waiting by a quarter (the zoom and pan on each image still runs on the processor), at about the same file size, but with a visibly softer picture than x264 (about 2.5 VMAF less): pick it when keeping the computer free matters more than the last bit of sharpness. **Background** makes no difference to the file at all.
122
+ What they cost and give, measured on the first 24 images (11.5 minutes) of a real project with captions in the video, each image shown once (16-core processor, RTX 5080): **Thorough** took 83 seconds; **Fast** took 69, a sixth less, for a slightly softer picture (1.2 VMAF less) and a file a sixth smaller. **NVIDIA** took 42 seconds, half the waiting (the zoom and pan on each image still runs on the processor), but with a visibly softer picture than x264 (about 2.5 VMAF less at the same file size, measured in 4.0): pick it when the time matters more than the last bit of sharpness. In a video whose images come round again, Fast cut the waiting by a fifth as well (118 seconds against 145) for 0.7 VMAF less. **Background** makes no difference to the file at all.
123
+
124
+ A project's **Video codec** (in its Video settings) is **Automatic** unless set: AV1 on the NVIDIA card whenever the card can encode it, even with Processor chosen here, and otherwise H.264 through this setting exactly as before. Its explicit choices (H.264, HEVC or AV1) combine with the Video encoder: HEVC is x265 on the processor and the card's HEVC encoder on NVIDIA; AV1 is SVT-AV1 from the computer's own ffmpeg on the processor and the card's AV1 encoder on NVIDIA. Without an ffmpeg with SVT-AV1, or on a card that can't encode the codec, the video is made as H.264 and the project's Video part says so.
123
125
 
124
126
  If the NVIDIA encoder is chosen but stops working (a driver update, the card busy elsewhere), the video is encoded on the processor instead, never failed, and the project's Video part says so, with the reason and where to change it. Slopify checks for the card once per start; restart Slopify after installing a driver or an ffmpeg with NVENC.
125
127
 
@@ -31,6 +31,10 @@ Motion takes turns so a long video stays watchable. Zoom goes in, out, in. Pan g
31
31
 
32
32
  New projects default to **Follow the narration**. It needs word timing, so it works in English and the languages that have it; in other languages the picker is fixed to Every N seconds and a note says why. See [Other Languages](Other-Languages).
33
33
 
34
+ ## Video codec
35
+
36
+ **Video codec** sits under Cuts: **Automatic (AV1 on the graphics card, else H.264)**, the default, or **H.264** (works everywhere), **HEVC** or **AV1**. Automatic encodes AV1 on an NVIDIA card that can (whatever the Video encoder setting says), and otherwise H.264 exactly as before, without a note. HEVC and AV1 make about half to a third of the file for the same picture; AV1 on the processor needs an ffmpeg with SVT-AV1 on the computer and renders slower. The explicit choices combine with **Settings → Production defaults → Video encoder**, and fall back to H.264 with a note in the Video part when the computer can't encode them. Choosing HEVC or AV1 outdates only the video; Automatic and H.264 outdate nothing. Shorts stay H.264. See [Video and style](Create-Video-and-Style#video-codec).
37
+
34
38
  ## The Look
35
39
 
36
40
  **Look** is a folding row under Cuts. Its summary line lists what is on, or "Plain cuts, no effects".