lotio 1.1.63 → 1.1.66

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 CHANGED
@@ -35,12 +35,13 @@ xcode-select --install
35
35
  ### Command Line
36
36
 
37
37
  ```bash
38
- lotio --data <input.json> [--stream] [--debug] [--layer-overrides <config.json>] [--text-padding <0.0-1.0>] [--text-measurement-mode <fast|accurate|pixel-perfect>] [--fps <fps>] <output_dir>
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
- - `--stream` - Stream frames to stdout as PNG (for piping to ffmpeg)
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
- # Stream to ffmpeg
58
- lotio --data animation.json --stream --fps 30 - | ffmpeg -f image2pipe -i - output.mp4
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/
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lotio",
3
- "version": "1.1.63",
3
+ "version": "1.1.66",
4
4
  "description": "High-performance Lottie animation frame renderer for the browser",
5
5
  "main": "browser/index.js",
6
6
  "module": "browser/index.js",