Module: FFmpegProgress::Presets
- Included in:
- FFmpeg
- Defined in:
- lib/ffmpeg_progress/presets.rb
Overview
Contains various examples of ffmpeg options.
Constant Summary collapse
- DEFAULT_OPTIONS =
The default options. Convert the video to x264 and audio to AAC.
'-y -threads 0 -strict -2 -c:a aac -b:a 96k ' \ '-c:v libx264 -preset fast -tune fastdecode -crf 22 '
- BURN_MKV_SUBS =
Read the default subtitles embedded in an input MKV file and hardcode them into the video. Any embedded fonts must be extracted and installed first to preserve them in the output, for example:
mkvextract attachments input.mkv {1..10} cp *.ttf *.ttc *.otf ~/.fonts '-y -threads 0 -strict -2 -sn -c:a copy ' \ '-c:v libx264 -preset fast -tune fastdecode -crf 22 ' \ '-vf "subtitles=_INPUT_"'
- BURN_800 =
Like BURN_MKV_SUBS, but also downscale the video to 800px width.
'-y -threads 0 -strict -2 -sn -c:a aac -b:a 96k ' \ '-c:v libx264 -preset fast -tune fastdecode -crf 22 ' \ '-vf "[in]scale=800:-2[tmp];[tmp]subtitles=_INPUT_[out]"'
- WIDTH_800 =
Scale to 800px width.
'-y -threads 0 -strict -2 -sn -c:a aac -b:a 96k ' \ '-c:v libx264 -preset fast -tune fastdecode -crf 22 ' \ '-vf scale=800:-2'