FFMPEG Help
Want a better experience to what the official FFmpeg Filters Documentation shows?
Use FFmpeg Filters Docs!
General options
Hardware acceleration
ffmpeg -hwaccel "auto"
CPU | VAAPI | NVIDIA | AMD | Intel |
---|---|---|---|---|
libsvtav1 libdav1d | av1_vaapi | av1_nvenc av1_cuvid | av1_amf | |
libx264 h264 | h264_vaapi | h264_nvenc h264_cuvid | h264_amf | h264_qsv |
libx265 hevc | hevc_vaapi | hevc_nvenc hevc_cuvid | hevc_amf | hevc_qsv |
libvpx | vp8_vaapi | |||
libvpx-vp9 | vp9_vaapi | vp9_qsv |
Less verbose
ffmpeg -hide_banner -v "error" -stats
Video Filters
Constant FPS
Duplicate/Drop frames
-vf "fps=60"
(linearly) Interpolate frames
-vf "framerate=60"
Fast Denoise
-vf "hqdn3d=1:1:4:4"
Slow Denoise
-vf "nlmeans=2:7:5:3:3"
-hwaccel vulkan -i $input -vf "format=yuv444p,hwupload,nlmeans_vulkan=2:7:3,hwdownload,format=yuv444p" $output
Deinterlace
-vf "yadif"
Resize
-vf "scale=1920x-1"
Using -1 as a size preserves the aspect ratio.
Audio Filters
5.1 to Stereo
-af "volume=1.660156,pan=stereo|FL=0.5*FC+0.707*FL+0.707*BL+0.707*SL+0.5*LFE|FR=0.5*FC+0.707*FR+0.707*BR+0.707*SR+0.5*LFE"
Loudness Normalization
-af "loudnorm" -pass 1 -f null /dev/null
&&
-af "loudnorm" -ar 48000 -pass 2 $output
Video double pass
-c:v libx265 -crf 25 -pass 1 -f null /dev/null
&&
-c:v libx265 -crf 25 -pass 2 $output
-c:v libvpx-vp9 -row-mt 1 -b:v 0 -crf 25 -pass 1 -f null /dev/null
&&
-c:v libvpx-vp9 -row-mt 1 -b:v 0 -crf 25 -pass 2 $output