实验数据
编码实验数据
本页每个数字都由仓库里的脚本生成,使用合成的测试素材,并把参数直接印在旁边。你可以重跑脚本,在自己的机器上得到同量级的结果——不会完全一致,因为硬件不同。
测试环境
- 生成日期
- 2026-12-01
- 脚本版本
- 3
- FFmpeg
- N-92722-gf22fcd4483 Copyright (c) 2000-2018 the FFmpeg developers
- 平台
- win32 10.0.26300
- CPU
- 12th Gen Intel(R) Core(TM) i5-12450H
实测结果
Synthetic FFmpeg testsrc2 1280x720 30fps 8s with a 440 Hz sine track, generated locally on the machine that ran the harness.
H.264
.mp4| 参数 | 输出体积 | 视频码率 | 编码耗时 | PSNR | SSIM |
|---|---|---|---|---|---|
| libx264, 600 kbps average, scaled to 640x360对比对象: source scaled to 640:360 | 569 KB | 583 kbps | 992 ms | 44.94 dB | 0.9959 |
| libx264, CRF 32, preset veryfast | 847 KB | 868 kbps | 1.3 s | 37.02 dB | 0.9799 |
| libx264, 1000 kbps average, scaled to 854x480对比对象: source scaled to 854:480 | 968 KB | 991 kbps | 807 ms | 43.98 dB | 0.9947 |
| libx264, 1000 kbps average, maxrate 1500k | 990 KB | 1013 kbps | 1.0 s | 37.82 dB | 0.9826 |
| libx264, CRF 28, preset veryfast | 1.25 MB | 1309 kbps | 1.4 s | 39.00 dB | 0.9859 |
| libx264, 2000 kbps average, maxrate 3000k | 1.92 MB | 2009 kbps | 1.5 s | 41.00 dB | 0.9911 |
| libx264, CRF 23, preset veryfast | 2.47 MB | 2586 kbps | 1.5 s | 42.68 dB | 0.9939 |
标注为缩放基准的行(例如 480p 那一行)只能在同一分组内比较。它真正说明的是:同样码率下降低分辨率能换来更高画质,而不是“44dB 优于 38dB”。
这些数字是怎么来的
- 测试素材
- Synthetic FFmpeg testsrc2 1280x720 30fps 8s with a 440 Hz sine track, generated locally on the machine that ran the harness.
- 对比基准
- Each output is compared with the synthetic source directly, not with another encode.
- 测量方式
- PSNR and SSIM come from the ffmpeg psnr/ssim filters. Encode time is wall-clock for a single run, including process start-up.
- 自检闸门
- Every codec must reproduce the source at >= 40 dB PSNR in a near-lossless probe before its numbers are published. Codecs that fail are listed under "excluded" with the measured value.
- 时间预算
- Each encode is cut off after 90 s. A codec that cannot finish inside that window gets no row at all — an unusable result is not published, not even as a footnote.
- 这些数字不能说明什么
- Desktop FFmpeg binary, single run, one machine, synthetic content. These numbers compare settings in this environment; they are not browser WASM timings and not a promise of quality or performance on other hardware or real footage.
未发布的编码器
近无损自检还原不了源素材的编码器,测出来的数据没有意义,因此在这里写明原因,而不是给一行好看的数字。连时间预算内都编码不完的,则完全不出现:不可用的东西不上架。
- VP9PSNR: 28.22 dB
Near-lossless probe scored 28.22 dB against the source (floor 40 dB). The decode or frame ordering of this codec in the local FFmpeg build is not reliable enough to compare settings, so its numbers are withheld.
-c:v libvpx-vp9 -lossless 1 -row-mt 1 -deadline good -cpu-used 4
- VP8PSNR: 28.21 dB
Near-lossless probe scored 28.21 dB against the source (floor 40 dB). The decode or frame ordering of this codec in the local FFmpeg build is not reliable enough to compare settings, so its numbers are withheld.
-c:v libvpx -crf 4 -b:v 0