Compare commits

...

4 Commits

Author SHA1 Message Date
b40ae34387 0.1.15 2026-01-22 11:44:03 +03:00
84231d705f style: Update README 2026-01-22 11:44:00 +03:00
2c8d9d1e9e 0.1.14 2026-01-22 11:39:57 +03:00
41fe1a7370 style: Update README 2026-01-22 11:39:51 +03:00
3 changed files with 17 additions and 27 deletions

View File

@@ -28,12 +28,7 @@ brew install ffmpeg gpac
Before running, make sure `FFmpeg` and `MP4Box` are installed (see Install). Before running, make sure `FFmpeg` and `MP4Box` are installed (see Install).
```bash ```bash
# Run via npx (no install)
npx @gromlab/create-vod video.mp4 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: **Output:** In the current directory you'll get:
@@ -80,31 +75,31 @@ create-vod <input-video> [output-dir] [-r resolutions] [-c codec] [-p poster-tim
```bash ```bash
# Default (DASH + HLS, auto profiles) # Default (DASH + HLS, auto profiles)
create-vod video.mp4 npx @gromlab/create-vod video.mp4
# Custom output directory # Custom output directory
create-vod video.mp4 ./output npx @gromlab/create-vod video.mp4 ./output
# Selected resolutions # Selected resolutions
create-vod video.mp4 -r 720,1080,1440 npx @gromlab/create-vod video.mp4 -r 720,1080,1440
# High FPS # 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 # Poster from 5th second
create-vod video.mp4 -p 5 npx @gromlab/create-vod video.mp4 -p 5
# Force CPU encode/decode # 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 # 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 # 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 # No audio
create-vod video.mp4 -m npx @gromlab/create-vod video.mp4 -m
``` ```
### Supported resolutions ### Supported resolutions

View File

@@ -27,12 +27,7 @@ brew install ffmpeg gpac
## Быстрый старт ## Быстрый старт
Перед запуском убедитесь, что в системе установлены `FFmpeg` и `MP4Box` (см. Install). Перед запуском убедитесь, что в системе установлены `FFmpeg` и `MP4Box` (см. Install).
```bash ```bash
# Использование через npx (без установки)
npx @gromlab/create-vod video.mp4 npx @gromlab/create-vod video.mp4
# Или глобальная установка
npm install -g @gromlab/create-vod
create-vod video.mp4
``` ```
**Результат:** В текущей директории появится структура выходных файлов: **Результат:** В текущей директории появится структура выходных файлов:
@@ -80,25 +75,25 @@ create-vod <input-video> [output-dir] [-r resolutions] [-c codec] [-p poster-tim
```bash ```bash
# Базовая конвертация (DASH + HLS, авто кодек, автопрофили) # Базовая конвертация (DASH + HLS, авто кодек, автопрофили)
create-vod video.mp4 npx @gromlab/create-vod video.mp4
# Указать выходную директорию # Указать выходную директорию
create-vod video.mp4 ./output npx @gromlab/create-vod video.mp4 ./output
# Только выбранные разрешения # Только выбранные разрешения
create-vod video.mp4 -r 720,1080,1440 npx @gromlab/create-vod video.mp4 -r 720,1080,1440
# Высокий FPS для игровых стримов # Высокий FPS для игровых стримов
create-vod video.mp4 -r 720@60,1080@60 npx @gromlab/create-vod video.mp4 -r 720@60,1080@60
# Постер с 5-й секунды # Постер с 5-й секунды
create-vod video.mp4 -p 5 npx @gromlab/create-vod video.mp4 -p 5
# Комбинация параметров # Комбинация параметров
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
# Без звука # Без звука
create-vod video.mp4 -m npx @gromlab/create-vod video.mp4 -m
``` ```
### Поддерживаемые разрешения ### Поддерживаемые разрешения

View File

@@ -1,7 +1,7 @@
{ {
"name": "@gromlab/create-vod", "name": "@gromlab/create-vod",
"author": "Gromov Sergei", "author": "Gromov Sergei",
"version": "0.1.13", "version": "0.1.15",
"description": "DASH/HLS video converter with hardware acceleration (NVENC/QSV/AMF/VAAPI), thumbnails and poster generation", "description": "DASH/HLS video converter with hardware acceleration (NVENC/QSV/AMF/VAAPI), thumbnails and poster generation",
"type": "module", "type": "module",
"main": "./dist/index.js", "main": "./dist/index.js",