ffmpeg -loglevel values: quiet, error, warning, info, debug
verified onenvironmentlocal · windows 10.0.26200 arm64 · GNU bash 5.3.15 (Git Bash) · ffmpeg version 9.0.2-full_build-www.gyan.devupdated 2026-10-20
- tool
- FFmpeg
- versions
- FFmpeg 4 – 9
- os
- any
-loglevel (alias -v) sets how much ffmpeg, ffprobe and ffplay print, by name or by number. The default is info (32). In scripts, -hide_banner -loglevel error prints only errors, and -loglevel quiet prints nothing at all.
Levels
| Name | Number | Shows |
|---|---|---|
| quiet | -8 | nothing |
| panic | 0 | only fatal errors that could crash the process (currently unused) |
| fatal | 8 | only fatal errors after which ffmpeg cannot continue |
| error | 16 | all errors, including recoverable ones |
| warning | 24 | errors and warnings |
| info | 32 | plus informative messages (default) |
| verbose | 40 | like info, more detailed |
| debug | 48 | everything, including debugging information |
| trace | 56 | even more than debug |
Compare the output
ffmpeg -hide_banner -loglevel error -f lavfi -i testsrc=duration=1 -frames:v 1 -y frame.png
echo "lines with -loglevel error: $(ffmpeg -hide_banner -loglevel error -f lavfi -i testsrc=duration=1 -frames:v 1 -y frame.png 2>&1 | wc -l)"
echo "lines with -loglevel info: $(ffmpeg -hide_banner -loglevel info -f lavfi -i testsrc=duration=1 -frames:v 1 -y frame.png 2>&1 | wc -l)"Output
lines with -loglevel error: 0 lines with -loglevel info: 16
Flags
Prefix the level with flags to change the format:
ffmpeg -loglevel repeat+level+verbose -i input.mp4 output.mp4level prefixes each line with its level ([error], [info]), repeat stops collapsing repeated lines. -report additionally writes a full debug log to a file named ffmpeg-YYYYMMDD-HHMMSS.log.
Sources
Related pages
cheat sheets · ffmpegFFmpeg cheat sheet: convert, cut, scale, extract and inspectFFmpeg cheat sheet: inspect files with ffprobe, change containers, encode H.264, cut without re-encoding, scale, extract audio, make GIFs and thumbnails.errors · ffmpegffmpeg: Unknown encoder 'libx264' (Encoder not found)ffmpeg prints Unknown encoder when the codec name is misspelled or the build lacks that library, such as libx264 or libfdk_aac. List them with -encoders.flags · ffmpegffmpeg -crf: constant rate factor for x264, x265 and AV1-crf sets constant quality: lower means better and bigger. libx264 defaults to 23 on a 0 to 51 scale, libx265 to 28. Use it with -preset; sizes measured.