lotio 1.1.63 → 1.1.65
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.
- package/README.md +17 -5
- package/browser/lotio.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,12 +35,13 @@ xcode-select --install
|
|
|
35
35
|
### Command Line
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
-
lotio --data <input.json> [--
|
|
38
|
+
lotio --data <input.json> [--output-format <format>] [--output <file>] [--debug] [--layer-overrides <config.json>] [--text-padding <0.0-1.0>] [--text-measurement-mode <fast|accurate|pixel-perfect>] [--fps <fps>] <output_dir>
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
**Options:**
|
|
42
42
|
- `--data <input.json>` - Path to input Lottie animation JSON file (required)
|
|
43
|
-
- `--
|
|
43
|
+
- `--output-format <format>` - Output format: `png` (default), `raw`, `ffv1`, or `mov`
|
|
44
|
+
- `--output <file>` - Output file path (use `-` to stream to stdout, required for `raw`, `ffv1`, `mov` formats)
|
|
44
45
|
- `--debug` - Enable debug output
|
|
45
46
|
- `--layer-overrides <config.json>` - Path to layer overrides JSON (for text auto-fit, dynamic text values, and image path overrides)
|
|
46
47
|
- `--text-padding <0.0-1.0>` - Text padding factor (0.0-1.0, default: 0.97 = 3% padding)
|
|
@@ -49,13 +50,24 @@ lotio --data <input.json> [--stream] [--debug] [--layer-overrides <config.json>]
|
|
|
49
50
|
- `--version` - Print version information and exit
|
|
50
51
|
- `--help, -h` - Show help message
|
|
51
52
|
|
|
53
|
+
**Output Formats:**
|
|
54
|
+
- `png` (default) - PNG frames written to directory (or streamed to stdout with `--output -`)
|
|
55
|
+
- `raw` - Uncompressed RGBA video file (fastest, largest files, preserves alpha)
|
|
56
|
+
- `ffv1` - Lossless FFV1 codec in Matroska container (good compression, preserves alpha)
|
|
57
|
+
- `mov` - MOV container with QTRLE codec (fast encoding, preserves alpha, widely compatible)
|
|
58
|
+
|
|
52
59
|
**Examples:**
|
|
53
60
|
```bash
|
|
54
|
-
# Render to PNG frames
|
|
61
|
+
# Render to PNG frames (default)
|
|
55
62
|
lotio --data animation.json --fps 30 frames/
|
|
56
63
|
|
|
57
|
-
#
|
|
58
|
-
lotio --data animation.json --
|
|
64
|
+
# Direct video encoding (no ffmpeg binary needed)
|
|
65
|
+
lotio --data animation.json --output-format mov --output video.mov --fps 30
|
|
66
|
+
lotio --data animation.json --output-format ffv1 --output video.mkv --fps 30
|
|
67
|
+
lotio --data animation.json --output-format raw --output video.rgb --fps 30
|
|
68
|
+
|
|
69
|
+
# Stream PNG to stdout (for piping to ffmpeg)
|
|
70
|
+
lotio --data animation.json --output-format png --output - --fps 30 | ffmpeg -f image2pipe -i - output.mp4
|
|
59
71
|
|
|
60
72
|
# With layer overrides
|
|
61
73
|
lotio --data animation.json --layer-overrides layer-overrides.json --fps 30 frames/
|
package/browser/lotio.wasm
CHANGED
|
Binary file
|