A Small console package to help transcode videos and generate captures/clips.
- Clone the repository.
git clone git@github.com:chrisrowles/ffmpeg-transcoder
cd ffmpeg-transcoder
- Install the dependencies with composer
composer install
- Copy .env.example to .env and enter your env variable values.
cp .env.example .env
Available commands:
clip This command clips videos.
capture This command captures screenshots or gifs from videos.
help Displays help for a command
list Lists commands
transcode-video This command transcodes videos to the selected format.
Description:
This command transcodes videos to the selected format.
Usage:
transcode-video [options] [--] <name>
Arguments:
name Filename (leave blank for bulk processing)
Options:
--format[=FORMAT] The selected format
--bitrate[=BITRATE] Kilo bitrate (default: 1000)
--audio-bitrate[=AUDIO-BITRATE] Audio bitrate (default: 256)
--audio-channels[=AUDIO-CHANNELS] Audio channels (default: 2)
--constant-rate-factor[=CONSTANT-RATE-FACTOR] Constant rate factor (default: 20)
Description:
This command generates captures for videos.
Usage:
capture [options] [--] [<name>]
Arguments:
name Filename (leave blank for bulk processing)
Options:
--gif Capture video in in gif format
--bulk Capture from multiple videos
--from[=START] Point of capture
--seconds[=SECONDS] Number of seconds to capture if it is a gif
Description:
This command clips videos.
Usage:
clip [options] [--] [<name>]
Arguments:
name Filename (leave blank for bulk processing)
Options:
--bulk Clip multiple videos
--from[=START] Starting point for clip
--seconds[=SECONDS] Number of seconds to clip