Tool

ffmpeg Progress Line Interpreter

The frame= … speed=0.5x line that keeps changing at the bottom of the screen during encoding is hard to read, and the time remaining is not shown anywhere. Paste that line, enter the total length of the video, and the tool calculates what each field means, the time remaining, and the estimated size at the end. All processing happens only inside this browser.

1. Paste the progress line

If you paste several lines, the last line that contains progress info is read. The sample line is an arbitrary value to show the format, not a measurement.

If you do not know it, ffprobe -v error -show_entries format=duration -of default=nw=1:nk=1 input_file gives the duration in seconds. The remaining time and the final size can only be calculated with this duration.

All calculation happens only inside this browser, and what you paste is not sent anywhere.

How to read the fields of the progress line

  • frame — the number of frames written so far. fps — frames processed per second; this is the encoding speed, not the video's fps.
  • time — how much video time has been processed so far. It is not the real time that has passed, so time being 10 minutes does not mean it took 10 minutes.
  • speed — how many times faster (or slower) video time passes than real time. speed=0.5x means processing 1 second of video takes about 2 seconds, so a 1-hour video takes about 2 hours. It is known to be an average since the start, so it follows slowly if the speed changes midway.
  • size · bitrate — the output size written so far and its average bitrate. When encoding finishes, the final size appears as Lsize=.
  • q — the average quantizer used on the frames; a lower value keeps more quality. Each encoder has its own scale, so you should not compare the q of x264 with the q of another encoder. q=-1.0 is known to be the case where no value is used (such as a stream copy).

The formulas

  • Time remaining = (total duration − time) ÷ speed
  • Estimated size at the end = size ÷ time × total duration
  • Speed comparison: take the fps= in the line (or speed × video fps if it is missing), multiply by the pixel-count ratio to convert it to a 1080p-equivalent fps, and compare it with the range from the slowest clip to the fastest clip in the same measured data used by the encode time estimator.

The speeds used for the comparison are read from the result files of x265 speed by preset, measurements by CRF, and SVT-AV1 vs libaom. All of them are records of encoding four 10-second 1080p25 clips with FFmpeg 9.0.2 on a single Ryzen 5 PRO 4650G (6 cores, 12 threads) machine.

How to use it

Use it when you have started a long encode and wonder "when will it finish?", or when speed drops below 1x and a live recording starts to fall behind. If the speed is much slower than the measured range, consider moving up one preset or cutting filters, and you can check how the preset affects time and size at the same quality in the measured articles above. If the final size looks likely to exceed your target (an upload limit, for example), you can set the target bitrate again with the bitrate and file size calculator. If the command itself looks suspicious, continue with the FFmpeg command explainer and linter, and if it stopped with an error, use the error log explainer.

Limits worth knowing

  • The size estimate is simple proportion. It assumes the average bitrate so far continues to the end, so it can be far off for videos whose scenes change a lot, or early in the encode (time under 1 minute). The size in the output is the value before the container is finalized, so it can differ slightly from the final size.
  • The time remaining also uses the average speed so far, so it goes off if later scenes are heavier or lighter. With 2-pass encoding, which has a second pass, each pass has to be calculated separately.
  • The measured comparison is from four 10-second clips, 1080p25 8-bit, on a single PC, and the measurements limited each job to 4 threads and ran at IDLE priority, so they are for reference only. The resolution conversion assumes speed scales with pixel count, and 480p, 720p, 1440p, and 4K were not measured.
  • Hardware encoders (NVENC, QSV, and so on) and presets not in the table are not covered by the comparison. The line format can differ slightly between ffmpeg versions (for example, the size unit kB or KiB), and fields that cannot be read are shown as "none."