For example to specify libx264 encoding options with ffmpeg:

ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
For example to specify libx264 encoding options with ffmpeg:

ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
For example to specify libx264 encoding options with ffmpeg:

ffmpeg -i foo.mpg -c:v libx264 -x264opts keyint=123:min-keyint=20 -an out.mkv
For example to specify libaom encoding options with -aom-params:

ffmpeg -i input -c:v libaom-av1 -b:v 500K -aom-params tune=psnr:enable-tpl-model=1 output.mp4
For example to specify libx265 encoding options with -x265-params:

ffmpeg -i input -c:v libx265 -x265-params crf=26:psy-rd=1 output.mp4
For example to specify libxavs2 encoding options with -xavs2-params:

ffmpeg -i input -c:v libxavs2 -xavs2-params RdoqLevel=0 output.avs2
Output both per-frame SSIM data during encoding and average SSIM at the end of encoding to stdout. The format of per-frame information is:

SSIM: avg: %1.3f min: %1.3f max: %1.3f
Output average SSIM at the end of encoding to stdout. The format of showing the average SSIM is:

Average SSIM: %f
Use a :-separated list of key=value pairs. For example,

av_dict_set(&av_frame->metadata, "ref-frame-config", \
"rfc_update_buffer_slot=7:rfc_lst_fb_idx=0:rfc_gld_fb_idx=1:rfc_alt_fb_idx=2:rfc_reference_last=0:rfc_reference_golden=0:rfc_reference_alt_ref=0");
For example to specify librav1e encoding options with -rav1e-params:

ffmpeg -i input -c:v librav1e -b:v 500K -rav1e-params speed=5:low_latency=true output.mp4
This option is valid only using the ffmpeg command-line tool. For library interface users, use global_quality.

ffmpeg -i INPUT -codec:v libtheora -q:v 10 OUTPUT.ogg

Recommend

FFMPEG FFmpeg Codecs Documentation 9 Video Encoders 9.11 libvpx 9.11.1 Options

FFMPEG FFmpeg Codecs Documentation 9 Video Encoders 9.10 libtheora 9.10.2 Examples

FFMPEG FFmpeg Codecs Documentation 9 Video Encoders 9.6 libaom-av1 9.6.1 Options

FFMPEG FFmpeg Codecs Documentation 9 Video Encoders 9.5 librav1e 9.5.1 Options

FFMPEG FFmpeg Codecs Documentation 9 Video Encoders 9.4 jpeg2000 9.4.1 Options

FFMPEG FFmpeg Codecs Documentation 8 Audio Encoders 8.5 libfdk_aac 8.5.2 Examples

FFMPEG FFmpeg Codecs Documentation 2 Codec Options

FFMPEG ffmpeg Documentation 45 Multimedia Sources 45.2 movie

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.32 zmq, azmq 44.32.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.32 zmq, azmq

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.31 split, asplit 44.31.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.30 spectrumsynth 44.30.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.28 showwavespic 44.28.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.27 showwaves 44.27.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.25 showspectrumpic 44.25.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.24 showspectrum 44.24.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.21 showcqt 44.21.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.20 settb, asettb 44.20.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.18 setpts, asetpts 44.18.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.17 sendcmd, asendcmd 44.17.2 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.17 sendcmd, asendcmd 44.17.1 Commands syntax

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.16 select, aselect 44.16.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.15 segment, asegment 44.15.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.12 metadata, ametadata 44.12.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.10 interleave, ainterleave 44.10.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.9 ebur128 44.9.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.8 concat 44.8.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.7 bench, abench 44.7.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.6 avectorscope 44.6.1 Examples

FFMPEG ffmpeg Documentation 44 Multimedia Filters 44.5 aphasemeter 44.5.2 Examples

FFMPEG ffmpeg Documentation 42 Video Sources 42.9 allrgb, allyuv, color, colorspectrum, haldclutsrc, nullsrc, pal75bars, pal100bars, rgbtestsrc, smptebars, smptehdbars, testsrc, testsrc2, yuvtestsrc 42.9.1 Examples

FFMPEG ffmpeg Documentation 42 Video Sources 42.8 life 42.8.1 Examples

FFMPEG ffmpeg Documentation 42 Video Sources 42.7 frei0r_src

FFMPEG ffmpeg Documentation 42 Video Sources 42.3 coreimagesrc 42.3.1 Examples

FFMPEG ffmpeg Documentation 42 Video Sources 42.3 coreimagesrc

FFMPEG ffmpeg Documentation 42 Video Sources 42.2 cellauto 42.2.1 Examples

FFMPEG ffmpeg Documentation 42 Video Sources 42.1 buffer

FFMPEG ffmpeg Documentation 41 VAAPI Video Filters 41.1 overlay_vaapi 41.1.1 Examples

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters 40.15 tonemap_opencl 40.15.1 Example

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters 40.12 program_opencl

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters 40.11 prewitt_opencl 40.11.1 Example

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters 40.9 overlay_opencl 40.9.1 Examples

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters 40.6 deshake_opencl 40.6.1 Examples

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters 40.5 erosion_opencl 40.5.1 Example

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters 40.4 convolution_opencl 40.4.1 Examples

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters 40.3 colorkey_opencl 40.3.1 Examples

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters 40.2 boxblur_opencl 40.2.1 Examples

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters 40.1 avgblur_opencl 40.1.1 Example

FFMPEG ffmpeg Documentation 40 OpenCL Video Filters

FFMPEG ffmpeg Documentation 39 Video Filters 39.274 zoompan 39.274.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.270 xstack 39.270.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.268 xfade 39.268.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.265 weave, doubleweave 39.265.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.261 vmafmotion

FFMPEG ffmpeg Documentation 39 Video Filters 39.256 vflip

FFMPEG ffmpeg Documentation 39 Video Filters 39.255 vidstabtransform 39.255.2 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.254 vidstabdetect 39.254.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.250 v360 39.250.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.248 untile 39.248.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.247 unsharp 39.247.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.243 transpose

FFMPEG ffmpeg Documentation 39 Video Filters 39.241 tonemap

FFMPEG ffmpeg Documentation 39 Video Filters 39.240 tmix 39.240.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.237 tinterlace

FFMPEG ffmpeg Documentation 39 Video Filters 39.236 tile 39.236.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.235 thumbnail 39.235.1 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.234 threshold 39.234.2 Examples

FFMPEG ffmpeg Documentation 39 Video Filters 39.232 telecine

FFMPEG ffmpeg Documentation 39 Video Filters 39.227 subtitles

FFMPEG ffmpeg Documentation 39 Video Filters 39.226 streamselect, astreamselect 39.226.2 Examples