style: Update README

This commit is contained in:
2026-01-22 11:39:51 +03:00
parent 55fb1f640a
commit 41fe1a7370
2 changed files with 14 additions and 24 deletions

View File

@@ -28,12 +28,7 @@ brew install ffmpeg gpac
Before running, make sure `FFmpeg` and `MP4Box` are installed (see Install).
```bash
# Run via npx (no install)
npx @gromlab/create-vod video.mp4
# Or install globally
npm install -g @gromlab/create-vod
create-vod video.mp4
```
**Output:** In the current directory you'll get:
@@ -83,28 +78,28 @@ create-vod <input-video> [output-dir] [-r resolutions] [-c codec] [-p poster-tim
create-vod video.mp4
# Custom output directory
create-vod video.mp4 ./output
npx @gromlab/create-vod video.mp4 ./output
# Selected resolutions
create-vod video.mp4 -r 720,1080,1440
npx @gromlab/create-vod video.mp4 -r 720,1080,1440
# High FPS
create-vod video.mp4 -r 720@60,1080@60
npx @gromlab/create-vod video.mp4 -r 720@60,1080@60
# Poster from 5th second
create-vod video.mp4 -p 5
npx @gromlab/create-vod video.mp4 -p 5
# Force CPU encode/decode
create-vod video.mp4 -c h264 -e cpu -d cpu
npx @gromlab/create-vod video.mp4 -c h264 -e cpu -d cpu
# Force GPU encode + CPU decode
create-vod video.mp4 -c h264 -e nvenc -d cpu
npx @gromlab/create-vod video.mp4 -c h264 -e nvenc -d cpu
# Combined parameters
create-vod video.mp4 ./output -r 720,1080@60,1440@60 -p 00:00:10
npx @gromlab/create-vod video.mp4 ./output -r 720,1080@60,1440@60 -p 00:00:10
# No audio
create-vod video.mp4 -m
npx @gromlab/create-vod video.mp4 -m
```
### Supported resolutions