mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
tests/fate/vcodec: add tests for ffv1 2pass mode
This commit is contained in:
parent
e53940186a
commit
60f948dd55
@ -207,6 +207,7 @@ enc_dec(){
|
|||||||
dec_opt_out=$6
|
dec_opt_out=$6
|
||||||
dec_opt_in=$7
|
dec_opt_in=$7
|
||||||
ffprobe_opts=$8
|
ffprobe_opts=$8
|
||||||
|
twopass=$9
|
||||||
encfile="${outdir}/${test}.${enc_fmt_out}"
|
encfile="${outdir}/${test}.${enc_fmt_out}"
|
||||||
decfile="${outdir}/${test}.out.${dec_fmt_out}"
|
decfile="${outdir}/${test}.out.${dec_fmt_out}"
|
||||||
cleanfiles="$cleanfiles $decfile"
|
cleanfiles="$cleanfiles $decfile"
|
||||||
@ -214,6 +215,17 @@ enc_dec(){
|
|||||||
tsrcfile=$(target_path $srcfile)
|
tsrcfile=$(target_path $srcfile)
|
||||||
tencfile=$(target_path $encfile)
|
tencfile=$(target_path $encfile)
|
||||||
tdecfile=$(target_path $decfile)
|
tdecfile=$(target_path $decfile)
|
||||||
|
|
||||||
|
if [ -n "$twopass" ]; then
|
||||||
|
logfile_prefix="${outdir}/${test}.pass1"
|
||||||
|
cleanfiles="$cleanfiles ${logfile_prefix}-0.log"
|
||||||
|
tlogfile_prefix=$(target_path $logfile_prefix)
|
||||||
|
ffmpeg -auto_conversion_filters -f $enc_fmt_in $DEC_OPTS -i $tsrcfile \
|
||||||
|
$ENC_OPTS $enc_opt_out $FLAGS -pass 1 -passlogfile $tlogfile_prefix \
|
||||||
|
-f $enc_fmt_out -y $tencfile || return
|
||||||
|
enc_opt_out="$enc_opt_out -pass 2 -passlogfile $tlogfile_prefix"
|
||||||
|
fi
|
||||||
|
|
||||||
ffmpeg -auto_conversion_filters -f $enc_fmt_in $DEC_OPTS -i $tsrcfile $ENC_OPTS $enc_opt_out $FLAGS \
|
ffmpeg -auto_conversion_filters -f $enc_fmt_in $DEC_OPTS -i $tsrcfile $ENC_OPTS $enc_opt_out $FLAGS \
|
||||||
-f $enc_fmt_out -y $tencfile || return
|
-f $enc_fmt_out -y $tencfile || return
|
||||||
do_md5sum $encfile
|
do_md5sum $encfile
|
||||||
|
@ -6,7 +6,7 @@ fate-vsynth%: CODEC = $(word 3, $(subst -, ,$(@)))
|
|||||||
fate-vsynth%: FMT = avi
|
fate-vsynth%: FMT = avi
|
||||||
fate-vsynth%: DEFAULT_SIZE = -s 352x288
|
fate-vsynth%: DEFAULT_SIZE = -s 352x288
|
||||||
fate-vsynth3-%: DEFAULT_SIZE = -s $(FATEW)x$(FATEH)
|
fate-vsynth3-%: DEFAULT_SIZE = -s $(FATEW)x$(FATEH)
|
||||||
fate-vsynth%: CMD = enc_dec "rawvideo $(DEFAULT_SIZE) -pix_fmt yuv420p $(RAWDECOPTS)" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-pix_fmt yuv420p -vsync passthrough $(DECOPTS)"
|
fate-vsynth%: CMD = enc_dec "rawvideo $(DEFAULT_SIZE) -pix_fmt yuv420p $(RAWDECOPTS)" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-pix_fmt yuv420p -vsync passthrough $(DECOPTS)" "" "" ${TWOPASS}
|
||||||
fate-vsynth%: CMP_UNIT = 1
|
fate-vsynth%: CMP_UNIT = 1
|
||||||
fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)
|
fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)
|
||||||
|
|
||||||
@ -155,7 +155,8 @@ $(FATE_VCODEC_DV:%=fate-vsynth\%-%): FMT = dv
|
|||||||
$(FATE_VCODEC_DV:%=fate-vsynth\%-%): DECOPTS += $(DEFAULT_SIZE)
|
$(FATE_VCODEC_DV:%=fate-vsynth\%-%): DECOPTS += $(DEFAULT_SIZE)
|
||||||
|
|
||||||
FATE_VCODEC-$(call ENCDEC, FFV1, AVI) += ffv1 ffv1-v0 \
|
FATE_VCODEC-$(call ENCDEC, FFV1, AVI) += ffv1 ffv1-v0 \
|
||||||
ffv1-v3-yuv420p
|
ffv1-v3-yuv420p \
|
||||||
|
ffv1-2pass
|
||||||
FATE_VCODEC_SCALE-$(call ENCDEC, FFV1, AVI) += ffv1-v3-yuv422p10 ffv1-v3-yuv444p16 \
|
FATE_VCODEC_SCALE-$(call ENCDEC, FFV1, AVI) += ffv1-v3-yuv422p10 ffv1-v3-yuv444p16 \
|
||||||
ffv1-v3-bgr0 ffv1-v3-rgb48
|
ffv1-v3-bgr0 ffv1-v3-rgb48
|
||||||
fate-vsynth%-ffv1: ENCOPTS = -slices 4
|
fate-vsynth%-ffv1: ENCOPTS = -slices 4
|
||||||
@ -173,6 +174,8 @@ fate-vsynth%-ffv1-v3-bgr0: DECOPTS = -sws_flags neighbor+bitexact
|
|||||||
fate-vsynth%-ffv1-v3-rgb48: ENCOPTS = -level 3 -pix_fmt rgb48 -strict -2 \
|
fate-vsynth%-ffv1-v3-rgb48: ENCOPTS = -level 3 -pix_fmt rgb48 -strict -2 \
|
||||||
-sws_flags neighbor+bitexact
|
-sws_flags neighbor+bitexact
|
||||||
fate-vsynth%-ffv1-v3-rgb48: DECOPTS = -sws_flags neighbor+bitexact
|
fate-vsynth%-ffv1-v3-rgb48: DECOPTS = -sws_flags neighbor+bitexact
|
||||||
|
fate-vsynth%-ffv1-2pass: TWOPASS = 1
|
||||||
|
fate-vsynth%-ffv1-2pass: ENCOPTS = -coder range_tab -context 1
|
||||||
|
|
||||||
FATE_VCODEC-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff
|
FATE_VCODEC-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff
|
||||||
FATE_VCODEC_SCALE-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff444 ffvhuff420p12 ffvhuff422p10left ffvhuff444p16
|
FATE_VCODEC_SCALE-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff444 ffvhuff420p12 ffvhuff422p10left ffvhuff444p16
|
||||||
|
4
tests/ref/vsynth/vsynth1-ffv1-2pass
Normal file
4
tests/ref/vsynth/vsynth1-ffv1-2pass
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
7332cfda96233acc7178b09868c07ad7 *tests/data/fate/vsynth1-ffv1-2pass.avi
|
||||||
|
2382244 tests/data/fate/vsynth1-ffv1-2pass.avi
|
||||||
|
c5ccac874dbf808e9088bc3107860042 *tests/data/fate/vsynth1-ffv1-2pass.out.rawvideo
|
||||||
|
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
|
4
tests/ref/vsynth/vsynth2-ffv1-2pass
Normal file
4
tests/ref/vsynth/vsynth2-ffv1-2pass
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
2f5af924c6f7de1d4c34ec2dc9fca4ac *tests/data/fate/vsynth2-ffv1-2pass.avi
|
||||||
|
3530664 tests/data/fate/vsynth2-ffv1-2pass.avi
|
||||||
|
36d7ca943916e1743cefa609eba0205c *tests/data/fate/vsynth2-ffv1-2pass.out.rawvideo
|
||||||
|
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
|
4
tests/ref/vsynth/vsynth3-ffv1-2pass
Normal file
4
tests/ref/vsynth/vsynth3-ffv1-2pass
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
5b658e65541539248035c17da5eada3a *tests/data/fate/vsynth3-ffv1-2pass.avi
|
||||||
|
53522 tests/data/fate/vsynth3-ffv1-2pass.avi
|
||||||
|
a038ad7c3c09f776304ef7accdea9c74 *tests/data/fate/vsynth3-ffv1-2pass.out.rawvideo
|
||||||
|
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 86700/ 86700
|
4
tests/ref/vsynth/vsynth_lena-ffv1-2pass
Normal file
4
tests/ref/vsynth/vsynth_lena-ffv1-2pass
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
2e1833cf75da113a6fabbaae07ddd455 *tests/data/fate/vsynth_lena-ffv1-2pass.avi
|
||||||
|
3490450 tests/data/fate/vsynth_lena-ffv1-2pass.avi
|
||||||
|
dde5895817ad9d219f79a52d0bdfb001 *tests/data/fate/vsynth_lena-ffv1-2pass.out.rawvideo
|
||||||
|
stddev: 0.00 PSNR:999.99 MAXDIFF: 0 bytes: 7603200/ 7603200
|
Loading…
Reference in New Issue
Block a user