docs: обновить readme под новые опции
This commit is contained in:
17
README.md
17
README.md
@@ -2,7 +2,7 @@
|
||||
|
||||
🇷🇺 Russian README: https://gromlab.ru/vod/create-vod/src/branch/master/README_RU.md
|
||||
|
||||
CLI tool to convert videos to DASH and HLS with hardware acceleration (NVENC / Intel QSV / AMD AMF / VAAPI), adaptive streaming, and automatic thumbnails/poster.
|
||||
CLI tool to convert videos to DASH and HLS with hardware acceleration (NVENC / Intel QSV / AMD AMF / VAAPI), adaptive streaming, and automatic thumbnails/poster. Formats are always DASH + HLS.
|
||||
|
||||
**Features:**
|
||||
- ⚡ Hardware acceleration: auto-detect encoder/decoder (NVENC / Intel QSV / AMD AMF / VAAPI / CPU)
|
||||
@@ -34,12 +34,12 @@ sudo apt install ffmpeg gpac
|
||||
brew install ffmpeg gpac
|
||||
```
|
||||
|
||||
**Output:** A folder `video/` in the current directory with segments under `{profile}-{codec}/`, DASH/HLS manifests in the root, poster, and thumbnail sprite/VTT.
|
||||
**Output:** A folder `video/` in the current directory with segments under `{profile}-{codec}/`, DASH/HLS manifests in the root, poster, and thumbnail sprite/VTT (both DASH and HLS are always generated).
|
||||
|
||||
## CLI Usage
|
||||
|
||||
```bash
|
||||
create-vod <input-video> [output-dir] [-r resolutions] [-c codec] [-f format] [-p poster-timecode]
|
||||
create-vod <input-video> [output-dir] [-r resolutions] [-c codec] [-p poster-timecode]
|
||||
```
|
||||
|
||||
### Main arguments
|
||||
@@ -54,8 +54,7 @@ create-vod <input-video> [output-dir] [-r resolutions] [-c codec] [-f format] [-
|
||||
| Option | Description | Values / Format | Default | Example |
|
||||
|--------|----------------------------|----------------------------|----------|---------------------------------|
|
||||
| `-r, --resolutions` | Quality profiles | `360`, `720@60`, `1080-60` | auto | `-r 720,1080,1440@60` |
|
||||
| `-c, --codec` | Video codec | `h264`, `av1` | auto (h264 + AV1 if HW) | `-c h264` |
|
||||
| `-f, --format` | Streaming format | `dash`, `hls` | auto (dash + hls) | `-f dash` |
|
||||
| `-c, --codec` | Video codec(s) | `h264`, `av1` (comma/space separated) | `h264` | `-c h264,av1` |
|
||||
| `-p, --poster` | Poster timecode | `HH:MM:SS` or seconds | `00:00:00` | `-p 00:00:05` or `-p 10` |
|
||||
| `-e, --encoder` | Video encoder | `auto`, `nvenc`, `qsv`, `amf`, `vaapi`, `videotoolbox`, `v4l2`, `cpu` | `auto` | `-e nvenc` |
|
||||
| `-d, --decoder` | Video decoder (hwaccel) | `auto`, `nvenc`, `qsv`, `vaapi`, `videotoolbox`, `v4l2`, `cpu` | `auto` | `-d cpu` |
|
||||
@@ -63,7 +62,7 @@ create-vod <input-video> [output-dir] [-r resolutions] [-c codec] [-f format] [-
|
||||
### Examples
|
||||
|
||||
```bash
|
||||
# Default (DASH + HLS, auto codec, auto profiles)
|
||||
# Default (DASH + HLS, auto profiles)
|
||||
create-vod video.mp4
|
||||
|
||||
# Custom output directory
|
||||
@@ -75,12 +74,6 @@ create-vod video.mp4 -r 720,1080,1440
|
||||
# High FPS
|
||||
create-vod video.mp4 -r 720@60,1080@60
|
||||
|
||||
# DASH only
|
||||
create-vod video.mp4 -f dash
|
||||
|
||||
# HLS only (Safari/iOS)
|
||||
create-vod video.mp4 -f hls -c h264
|
||||
|
||||
# Poster from 5th second
|
||||
create-vod video.mp4 -p 5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user