Add tests for several encoders.

More specifically, PNG, v210, zlib and zmbv codecs.
zmbv needs vf_scale to be able to produce PAL8.

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
Reimar Döffinger 2011-11-30 00:13:54 +01:00
parent c66bd78e3d
commit 61b1d85c1f
9 changed files with 52 additions and 0 deletions

View File

@ -268,6 +268,11 @@ do_video_encoding dnxhd-720p-10bit.dnxhd "-s hd720 -b 90M -pix_fmt yuv422p10 -vf
do_video_decoding "" "-s cif -pix_fmt yuv420p" do_video_decoding "" "-s cif -pix_fmt yuv420p"
fi fi
if [ -n "$do_mpng" ] ; then
do_video_encoding mpng.avi "-an -vcodec png"
do_video_decoding "" "-pix_fmt yuv420p"
fi
if [ -n "$do_prores" ] ; then if [ -n "$do_prores" ] ; then
do_video_encoding prores.mov "-vcodec prores" do_video_encoding prores.mov "-vcodec prores"
do_video_decoding "" "-pix_fmt yuv420p" do_video_decoding "" "-pix_fmt yuv420p"
@ -309,11 +314,26 @@ do_video_encoding rgb.avi "-an -vcodec rawvideo -pix_fmt bgr24"
do_video_decoding "" "-pix_fmt yuv420p" do_video_decoding "" "-pix_fmt yuv420p"
fi fi
if [ -n "$do_v210" ] ; then
do_video_encoding v210.avi "-an -vcodec v210"
do_video_decoding "" "-pix_fmt yuv420p"
fi
if [ -n "$do_yuv" ] ; then if [ -n "$do_yuv" ] ; then
do_video_encoding yuv.avi "-an -vcodec rawvideo -pix_fmt yuv420p" do_video_encoding yuv.avi "-an -vcodec rawvideo -pix_fmt yuv420p"
do_video_decoding "" "-pix_fmt yuv420p" do_video_decoding "" "-pix_fmt yuv420p"
fi fi
if [ -n "$do_zlib" ] ; then
do_video_encoding zlib.avi "-an -vcodec zlib"
do_video_decoding "" "-pix_fmt yuv420p"
fi
if [ -n "$do_zmbv" ] ; then
do_video_encoding zmbv.avi "-an -vcodec zmbv"
do_video_decoding "" "-pix_fmt yuv420p"
fi
if [ -n "$do_mp2" ] ; then if [ -n "$do_mp2" ] ; then
do_audio_encoding mp2.mp2 do_audio_encoding mp2.mp2
do_audio_decoding do_audio_decoding

4
tests/ref/vsynth1/mpng Normal file
View File

@ -0,0 +1,4 @@
a8e7393fa534289eee9319ded7807f99 *./tests/data/vsynth1/mpng.avi
12157242 ./tests/data/vsynth1/mpng.avi
93695a27c24a61105076ca7b1f010bbd *./tests/data/mpng.vsynth1.out.yuv
stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200

4
tests/ref/vsynth1/v210 Normal file
View File

@ -0,0 +1,4 @@
dd6c870a2a52c9e75ce61c3670e710e7 *./tests/data/vsynth1/v210.avi
14752460 ./tests/data/vsynth1/v210.avi
50973792d3f1abe04a51ee0121f077f2 *./tests/data/v210.vsynth1.out.yuv
stddev: 1.85 PSNR: 42.78 MAXDIFF: 29 bytes: 7603200/ 7603200

4
tests/ref/vsynth1/zlib Normal file
View File

@ -0,0 +1,4 @@
fe4983e551b48dc555e1aeaf628f649f *./tests/data/vsynth1/zlib.avi
12108644 ./tests/data/vsynth1/zlib.avi
93695a27c24a61105076ca7b1f010bbd *./tests/data/zlib.vsynth1.out.yuv
stddev: 3.42 PSNR: 37.44 MAXDIFF: 48 bytes: 7603200/ 7603200

4
tests/ref/vsynth1/zmbv Normal file
View File

@ -0,0 +1,4 @@
5874bd5764a92be48b63d90446b1b386 *./tests/data/vsynth1/zmbv.avi
2284022 ./tests/data/vsynth1/zmbv.avi
cfbec364e41d70c9b177435b5655d8af *./tests/data/zmbv.vsynth1.out.yuv
stddev: 46.47 PSNR: 14.79 MAXDIFF: 129 bytes: 7603200/ 7603200

4
tests/ref/vsynth2/mpng Normal file
View File

@ -0,0 +1,4 @@
198a3d67c56e1b5b12bdd3ffa67d8128 *./tests/data/vsynth2/mpng.avi
12557288 ./tests/data/vsynth2/mpng.avi
98d0e2854731472c5bf13d8638502d0a *./tests/data/mpng.vsynth2.out.yuv
stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200

4
tests/ref/vsynth2/v210 Normal file
View File

@ -0,0 +1,4 @@
db0579bd46e1ba133ff86c0f7cdd761f *./tests/data/vsynth2/v210.avi
14752460 ./tests/data/vsynth2/v210.avi
a627fb50c8276200fd71383977d87ca3 *./tests/data/v210.vsynth2.out.yuv
stddev: 0.34 PSNR: 57.43 MAXDIFF: 6 bytes: 7603200/ 7603200

4
tests/ref/vsynth2/zlib Normal file
View File

@ -0,0 +1,4 @@
f4bfa774c853abe8f06a29596c1f16cb *./tests/data/vsynth2/zlib.avi
12517188 ./tests/data/vsynth2/zlib.avi
98d0e2854731472c5bf13d8638502d0a *./tests/data/zlib.vsynth2.out.yuv
stddev: 1.26 PSNR: 46.10 MAXDIFF: 13 bytes: 7603200/ 7603200

4
tests/ref/vsynth2/zmbv Normal file
View File

@ -0,0 +1,4 @@
65825cdc90e550aeba556020365bc2d9 *./tests/data/vsynth2/zmbv.avi
1807074 ./tests/data/vsynth2/zmbv.avi
cfbec364e41d70c9b177435b5655d8af *./tests/data/zmbv.vsynth2.out.yuv
stddev: 42.07 PSNR: 15.65 MAXDIFF: 112 bytes: 7603200/ 7603200