clipwise 0.2.0 → 0.3.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.
- package/README.ko.md +33 -1
- package/README.md +30 -11
- package/dist/cli/index.js +526 -334
- package/dist/compose/frame-worker.js +649 -0
- package/dist/index.d.ts +41 -23
- package/dist/index.js +524 -332
- package/package.json +1 -1
- package/dist/cli/index.d.ts +0 -1
package/README.ko.md
CHANGED
|
@@ -100,7 +100,7 @@ output:
|
|
|
100
100
|
width: 1280
|
|
101
101
|
height: 800
|
|
102
102
|
fps: 30 # 1-60
|
|
103
|
-
|
|
103
|
+
preset: social # social | balanced | archive
|
|
104
104
|
|
|
105
105
|
steps:
|
|
106
106
|
- name: "스텝 이름"
|
|
@@ -272,6 +272,38 @@ speedRamp:
|
|
|
272
272
|
actionSpeed: 0.8
|
|
273
273
|
```
|
|
274
274
|
|
|
275
|
+
## 출력 압축
|
|
276
|
+
|
|
277
|
+
`preset` 필드로 화질과 파일 크기를 조절합니다:
|
|
278
|
+
|
|
279
|
+
```yaml
|
|
280
|
+
output:
|
|
281
|
+
format: mp4
|
|
282
|
+
fps: 30
|
|
283
|
+
preset: social # social | balanced | archive
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
| 프리셋 | libx264 CRF | HEVC VideoToolbox q:v | 용도 |
|
|
287
|
+
|--------|-------------|----------------------|------|
|
|
288
|
+
| `social` | 22 | 60 | Twitter, LinkedIn 등 소셜 공유 (~2-4 MB / 30초) |
|
|
289
|
+
| `balanced` | 18 | 70 | 범용, 포트폴리오 (~4-6 MB / 30초) |
|
|
290
|
+
| `archive` | 13 | 80 | 고화질 보관, 소스 마스터 (무제한) |
|
|
291
|
+
|
|
292
|
+
**권장**: 대부분의 데모에는 `preset: balanced`.
|
|
293
|
+
|
|
294
|
+
> **레거시**: `quality: 1-100`은 계속 작동하며 가장 가까운 프리셋으로 매핑됩니다 (`>= 75` → social, `>= 45` → balanced, `< 45` → archive). 명확성을 위해 `preset` 사용을 권장합니다.
|
|
295
|
+
|
|
296
|
+
### macOS — 하드웨어 가속
|
|
297
|
+
|
|
298
|
+
**Apple Silicon 및 Intel Mac**에서 Clipwise는 자동으로 `hevc_videotoolbox` (HEVC/H.265) 하드웨어 인코더를 사용합니다. 별도 설정 없이 소프트웨어 인코딩 대비 **~5–10× 빠른 인코딩** 속도를 제공합니다.
|
|
299
|
+
|
|
300
|
+
```
|
|
301
|
+
macOS (HEVC VideoToolbox) → 44초짜리 1280×800 데모 기준 약 3분
|
|
302
|
+
Linux / Windows → 동일 품질 기준 약 8–12분 (libx264)
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
VideoToolbox는 런타임에 자동 감지되며, 사용 불가 시 `libx264`로 자동 폴백합니다.
|
|
306
|
+
|
|
275
307
|
## AI로 시나리오 작성
|
|
276
308
|
|
|
277
309
|
[PROMPTS.md](./PROMPTS.md)에 바로 사용할 수 있는 AI 프롬프트 템플릿이 있습니다. ChatGPT나 Claude에 복붙하고 내 사이트 URL만 넣으면 YAML 시나리오를 생성해줍니다.
|
package/README.md
CHANGED
|
@@ -100,7 +100,7 @@ output:
|
|
|
100
100
|
width: 1280
|
|
101
101
|
height: 800
|
|
102
102
|
fps: 30 # 1-60
|
|
103
|
-
|
|
103
|
+
preset: social # social | balanced | archive
|
|
104
104
|
|
|
105
105
|
steps:
|
|
106
106
|
- name: "Step name"
|
|
@@ -283,21 +283,40 @@ speedRamp:
|
|
|
283
283
|
|
|
284
284
|
## Output Compression
|
|
285
285
|
|
|
286
|
-
|
|
286
|
+
Use the `preset` field to control quality and file size:
|
|
287
287
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
288
|
+
```yaml
|
|
289
|
+
output:
|
|
290
|
+
format: mp4
|
|
291
|
+
fps: 30
|
|
292
|
+
preset: social # social | balanced | archive
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
| Preset | libx264 CRF | HEVC VideoToolbox q:v | Target use case |
|
|
296
|
+
|--------|-------------|----------------------|-----------------|
|
|
297
|
+
| `social` | 22 | 60 | Twitter, LinkedIn, Loom-style sharing (~2-4 MB / 30s) |
|
|
298
|
+
| `balanced` | 18 | 70 | General purpose, portfolio sites (~4-6 MB / 30s) |
|
|
299
|
+
| `archive` | 13 | 80 | High-fidelity storage, source masters (uncapped) |
|
|
300
|
+
|
|
301
|
+
**Recommended**: `preset: balanced` for most demos.
|
|
302
|
+
|
|
303
|
+
> **Legacy**: `quality: 1-100` still works and maps to the nearest preset (`>= 75` → social, `>= 45` → balanced, `< 45` → archive). Prefer `preset` for clarity.
|
|
304
|
+
|
|
305
|
+
### macOS — Hardware Acceleration
|
|
306
|
+
|
|
307
|
+
On **Apple Silicon and Intel Mac**, Clipwise automatically uses `hevc_videotoolbox` (HEVC/H.265) for hardware-accelerated encoding. This delivers **~5–10× faster encoding** than software `libx264` with no setup required.
|
|
308
|
+
|
|
309
|
+
```
|
|
310
|
+
macOS (HEVC VideoToolbox) → ~3 min wall time for a 44s, 1280×800 demo
|
|
311
|
+
Linux / Windows → ~8–12 min wall time (libx264, same quality)
|
|
312
|
+
```
|
|
294
313
|
|
|
295
|
-
|
|
314
|
+
VideoToolbox is detected at runtime — no config needed. If VideoToolbox is unavailable, it falls back to `libx264` automatically.
|
|
296
315
|
|
|
297
316
|
For further compression after export:
|
|
298
317
|
|
|
299
318
|
```bash
|
|
300
|
-
# Re-encode with tighter
|
|
319
|
+
# Re-encode with tighter settings
|
|
301
320
|
ffmpeg -i input.mp4 -c:v libx264 -crf 26 -preset slow -movflags +faststart output.mp4
|
|
302
321
|
|
|
303
322
|
# Convert to WebM (smaller, web-native)
|
|
@@ -327,7 +346,7 @@ effects:
|
|
|
327
346
|
output:
|
|
328
347
|
format: mp4
|
|
329
348
|
fps: 30
|
|
330
|
-
|
|
349
|
+
preset: social # social | balanced | archive
|
|
331
350
|
|
|
332
351
|
steps:
|
|
333
352
|
- name: "Open app"
|