You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,15 +16,23 @@ git submodule init
16
16
git submodule update
17
17
```
18
18
19
-
## WebP Support in Examples
19
+
## WebP and WebM Support in Examples
20
20
21
-
The example applications (`examples/cli` and `examples/server`) use `libwebp` to support WebP image I/O. This is enabled by default.
21
+
The example applications (`examples/cli` and `examples/server`) use `libwebp` to support WebP image I/O, and `examples/cli` can also use `libwebm` for `.webm` video output. Both are enabled by default. WebM output currently reuses `libwebp` to encode each frame as VP8 before muxing with `libwebm`.
22
22
23
-
If you do not want WebP support, you can disable it at configure time:
23
+
If you do not want WebP/WebM support, you can disable them at configure time:
24
24
25
25
```shell
26
26
mkdir build &&cd build
27
-
cmake .. -DSD_WEBP=OFF
27
+
cmake .. -DSD_WEBP=OFF -DSD_WEBM=OFF
28
+
cmake --build . --config Release
29
+
```
30
+
31
+
If the submodules are not available, you can also link against system packages instead:
Copy file name to clipboardExpand all lines: examples/cli/main.cpp
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ struct SDCliParams {
58
58
options.string_options = {
59
59
{"-o",
60
60
"--output",
61
-
"path to write result image to. you can use printf-style %d format specifiers for image sequences (default: ./output.png) (eg. output_%03d.png)",
61
+
"path to write result image to. you can use printf-style %d format specifiers for image sequences (default: ./output.png) (eg. output_%03d.png). Single-file video outputs support .avi, .webm, and animated .webp",
62
62
&output_path},
63
63
{"",
64
64
"--image",
@@ -70,7 +70,7 @@ struct SDCliParams {
70
70
&metadata_format},
71
71
{"",
72
72
"--preview-path",
73
-
"path to write preview image to (default: ./preview.png)",
73
+
"path to write preview image to (default: ./preview.png). Multi-frame previews support .avi, .webm, and animated .webp",
0 commit comments