style: Update README
This commit is contained in:
21
README.md
21
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user