Posted onWord count in article: 4.9kReading time ≈4 mins.
There are many modern video encoding algorithm that can be used for
video compression. This article tests several of them and gives a simple
benchmark.
Benchmark setup
The video to compress is the lossless version of the trailer of the
short film Sintel. The video file
can be found here. I use the 1080p
version of the video.
The video will be encoded with H.264, H.265,
VP9 and AV1 encoding algorithms on
difference options.
The results will contain the size of the encoded video, the
compression time, three screen shorts at the same frame and a subjective
view for the video. The encoding is performed on a laptop with other
running programs so the compression times will be less representative.
The screenshots are taken at the 13th second, 17th second and 39th
second with the following bash script:
1 2 3 4 5 6 7 8 9 10 11
#!/usr/bin/env bash if [ $# -lt 1 ]; then echo"Usage: $0 <input_video>" exit 1 fi
Subjective view: There are noticeable blurry areas near the edges,
and the overall scene lacks sharpness. The details of the falling snow
are indistinct and difficult to recognize. While the colors are
acceptable, they appear slightly dim. Additionally, the action sequence
is too fast-paced, making it hard to follow.
Subjective view: The blur on the edges are gone. The sharpness is OK
and the details of the falling snow are back. The overall impression is
actually quite good.
Subjective view: It has surprisingly good quality considering its
size. Only get blurry when there are lots of moving particles. But the
falling snow is still quite visible.
Subjective view: The quality is surprisingly good. There are
noticeable blurry areas but not as much as the low quality H.264 one.
The action scenes has a little lower quality.