diff --git a/README.md b/README.md index c0570b0..4aa2175 100644 --- a/README.md +++ b/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 [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 diff --git a/README_RU.md b/README_RU.md index 945ad5a..bc5fe45 100644 --- a/README_RU.md +++ b/README_RU.md @@ -27,12 +27,7 @@ brew install ffmpeg gpac ## Быстрый старт Перед запуском убедитесь, что в системе установлены `FFmpeg` и `MP4Box` (см. Install). ```bash -# Использование через npx (без установки) npx @gromlab/create-vod video.mp4 - -# Или глобальная установка -npm install -g @gromlab/create-vod -create-vod video.mp4 ``` **Результат:** В текущей директории появится структура выходных файлов: @@ -83,22 +78,22 @@ create-vod [output-dir] [-r resolutions] [-c codec] [-p poster-tim 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 для игровых стримов -create-vod video.mp4 -r 720@60,1080@60 +npx @gromlab/create-vod video.mp4 -r 720@60,1080@60 # Постер с 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 ``` ### Поддерживаемые разрешения