fate: fix acodec/vsynth tests for make 3.81
[ffmpeg.git] / tests / fate / vcodec.mak
1 fate-vsynth1-%: SRC = tests/data/vsynth1.yuv
2 fate-vsynth2-%: SRC = tests/data/vsynth2.yuv
3 fate-vsynth%: CODEC = $(word 3, $(subst -, ,$(@)))
4 fate-vsynth%: FMT = avi
5 fate-vsynth%: CMD = enc_dec "rawvideo -s 352x288 -pix_fmt yuv420p" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p $(DECOPTS)" -keep
6 fate-vsynth%: CMP_UNIT = 1
7
8 FATE_VCODEC += asv1
9 fate-vsynth%-asv1:               ENCOPTS = -qscale 10
10
11 FATE_VCODEC += asv2
12 fate-vsynth%-asv2:               ENCOPTS = -qscale 10
13
14 FATE_VCODEC += cljr
15
16 FATE_VCODEC += dnxhd-720p
17 fate-vsynth%-dnxhd-720p:         ENCOPTS = -s hd720 -b 90M              \
18                                            -pix_fmt yuv422p -frames 5
19 fate-vsynth%-dnxhd-720p:         FMT     = dnxhd
20
21 FATE_VCODEC += dnxhd-720p-rd
22 fate-vsynth%-dnxhd-720p-rd:      ENCOPTS = -s hd720 -b 90M -threads 4 -mbd rd \
23                                            -pix_fmt yuv422p -frames 5
24 fate-vsynth%-dnxhd-720p-rd:      FMT     = dnxhd
25
26 FATE_VCODEC += dnxhd-720p-10bit
27 fate-vsynth%-dnxhd-720p-10bit:   ENCOPTS = -s hd720 -b 90M              \
28                                            -pix_fmt yuv422p10 -frames 5
29 fate-vsynth%-dnxhd-720p-10bit:   FMT     = dnxhd
30
31 FATE_VCODEC += dnxhd-1080i
32 fate-vsynth%-dnxhd-1080i:        ENCOPTS = -s hd1080 -b 120M -flags +ildct \
33                                            -pix_fmt yuv422p -frames 5
34 fate-vsynth%-dnxhd-1080i:        FMT     = mov
35
36 FATE_VCODEC += dv
37 fate-vsynth%-dv:                 CODEC   = dvvideo
38 fate-vsynth%-dv:                 ENCOPTS = -dct int -s pal
39 fate-vsynth%-dv:                 FMT     = dv
40
41 FATE_VCODEC += dv-411
42 fate-vsynth%-dv-411:             CODEC   = dvvideo
43 fate-vsynth%-dv-411:             ENCOPTS = -dct int -s pal -pix_fmt yuv411p \
44                                            -sws_flags area
45 fate-vsynth%-dv-411:             DECOPTS = -sws_flags area
46 fate-vsynth%-dv-411:             FMT     = dv
47
48 FATE_VCODEC += dv-50
49 fate-vsynth%-dv-50:              CODEC   = dvvideo
50 fate-vsynth%-dv-50:              ENCOPTS = -dct int -s pal -pix_fmt yuv422p \
51                                            -sws_flags neighbor
52 fate-vsynth%-dv-50:              DECOPTS = -sws_flags neighbor
53 fate-vsynth%-dv-50:              FMT     = dv
54
55 FATE_VCODEC += ffv1
56 fate-vsynth%-ffv1:               ENCOPTS = -strict -2
57
58 FATE_VCODEC += ffvhuff
59
60 FATE_VCODEC += flashsv
61 fate-vsynth%-flashsv:            ENCOPTS = -sws_flags neighbor+full_chroma_int
62 fate-vsynth%-flashsv:            DECOPTS = -sws_flags area
63 fate-vsynth%-flashsv:            FMT     = flv
64
65 FATE_VCODEC += flv
66 fate-vsynth%-flv:                ENCOPTS = -qscale 10
67 fate-vsynth%-flv:                FMT     = flv
68
69 FATE_VCODEC += h261
70 fate-vsynth%-h261:               ENCOPTS = -qscale 11
71
72 FATE_VCODEC += h263
73 fate-vsynth%-h263:               ENCOPTS = -qscale 10
74
75 FATE_VCODEC += h263p
76 fate-vsynth%-h263p:              ENCOPTS = -qscale 2 -flags +aic -umv 1 -aiv 1 -ps 300
77
78 FATE_VCODEC += huffyuv
79 fate-vsynth%-huffyuv:            ENCOPTS = -pix_fmt yuv422p -sws_flags neighbor
80 fate-vsynth%-huffyuv:            DECOPTS = -strict -2 -sws_flags neighbor
81
82 FATE_VCODEC += jpegls
83 fate-vsynth%-jpegls:             ENCOPTS = -sws_flags neighbor+full_chroma_int
84 fate-vsynth%-jpegls:             DECOPTS = -sws_flags area
85
86 FATE_VCODEC += ljpeg
87 fate-vsynth%-ljpeg:              ENCOPTS = -strict -1
88
89 FATE_VCODEC += mjpeg
90 fate-vsynth%-mjpeg:              ENCOPTS = -qscale 9 -pix_fmt yuvj420p
91
92 FATE_VCODEC += mpeg1
93 fate-vsynth%-mpeg1:              FMT     = mpeg1video
94 fate-vsynth%-mpeg1:              CODEC   = mpeg1video
95 fate-vsynth%-mpeg1:              ENCOPTS = -qscale 10
96
97 FATE_VCODEC += mpeg1b
98 fate-vsynth%-mpeg1b:             CODEC   = mpeg1video
99 fate-vsynth%-mpeg1b:             ENCOPTS = -qscale 8 -bf 3 -ps 200
100 fate-vsynth%-mpeg1b:             FMT     = mpeg1video
101
102 FATE_MPEG2 = mpeg2                                                      \
103              mpeg2-422                                                  \
104              mpeg2-idct-int                                             \
105              mpeg2-ilace                                                \
106              mpeg2-ivlc-qprd                                            \
107              mpeg2-thread                                               \
108              mpeg2-thread-ivlc
109
110 FATE_VCODEC += $(FATE_MPEG2)
111
112 $(FATE_MPEG2:%=fate-vsynth\%-%): FMT    = mpeg2video
113 $(FATE_MPEG2:%=fate-vsynth\%-%): CODEC  = mpeg2video
114
115 fate-vsynth%-mpeg2:              ENCOPTS = -qscale 10
116 fate-vsynth%-mpeg2-422:          ENCOPTS = -vb 1000k                    \
117                                            -bf 2                        \
118                                            -trellis 1                   \
119                                            -flags +mv0+ildct+ilme       \
120                                            -mpv_flags +qp_rd            \
121                                            -intra_vlc 1                 \
122                                            -mbd rd                      \
123                                            -pix_fmt yuv422p
124 fate-vsynth%-mpeg2-idct-int:     ENCOPTS = -qscale 10 -idct int -dct int
125 fate-vsynth%-mpeg2-ilace:        ENCOPTS = -qscale 10 -flags +ildct+ilme
126 fate-vsynth%-mpeg2-ivlc-qprd:    ENCOPTS = -vb 500k                     \
127                                            -bf 2                        \
128                                            -trellis 1                   \
129                                            -flags +mv0                  \
130                                            -mpv_flags +qp_rd            \
131                                            -intra_vlc 1                 \
132                                            -cmp 2 -subcmp 2             \
133                                            -mbd rd
134 fate-vsynth%-mpeg2-thread:       ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
135                                            -threads 2 -slices 2
136 fate-vsynth%-mpeg2-thread-ivlc:  ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
137                                            -intra_vlc 1 -threads 2 -slices 2
138
139 FATE_VCODEC += mpeg4
140 fate-vsynth%-mpeg4:              ENCOPTS = -qscale 10 -flags +mv4 -mbd bits
141 fate-vsynth%-mpeg4:              FMT     = mp4
142
143 FATE_VCODEC += mpeg4-rc
144 fate-vsynth%-mpeg4-rc:           ENCOPTS = -b 400k -bf 2
145
146 FATE_VCODEC += mpeg4-adv
147 fate-vsynth%-mpeg4-adv:          ENCOPTS = -qscale 9 -flags +mv4+aic       \
148                                            -data_partitioning 1 -trellis 1 \
149                                            -mbd bits -ps 200
150
151 FATE_VCODEC += mpeg4-qprd
152 fate-vsynth%-mpeg4-qprd:         ENCOPTS = -b 450k -bf 2 -trellis 1          \
153                                            -flags +mv4+mv0 -mpv_flags +qp_rd \
154                                            -cmp 2 -subcmp 2 -mbd rd
155
156 FATE_VCODEC += mpeg4-adap
157 fate-vsynth%-mpeg4-adap:         ENCOPTS = -b 550k -bf 2 -flags +mv4+mv0 \
158                                            -trellis 1 -cmp 1 -subcmp 2   \
159                                            -mbd rd -scplx_mask 0.3
160
161 FATE_VCODEC += mpeg4-qpel
162 fate-vsynth%-mpeg4-qpel:         ENCOPTS = -qscale 7 -flags +mv4+qpel -mbd 2 \
163                                            -bf 2 -cmp 1 -subcmp 2
164
165 FATE_VCODEC += mpeg4-thread
166 fate-vsynth%-mpeg4-thread:       ENCOPTS = -b 500k -flags +mv4+aic         \
167                                            -data_partitioning 1 -trellis 1 \
168                                            -mbd bits -ps 200 -bf 2         \
169                                            -threads 2 -slices 2
170
171 FATE_VCODEC += mpeg4-error
172 fate-vsynth%-mpeg4-error:        ENCOPTS = -qscale 7 -flags +mv4+aic    \
173                                            -data_partitioning 1 -mbd rd \
174                                            -ps 250 -error 10
175
176 FATE_VCODEC += mpeg4-nr
177 fate-vsynth%-mpeg4-nr:           ENCOPTS = -qscale 8 -flags +mv4 -mbd rd -nr 200
178
179 FATE_VCODEC += msmpeg4
180 fate-vsynth%-msmpeg4:            ENCOPTS = -qscale 10
181
182 FATE_VCODEC += msmpeg4v2
183 fate-vsynth%-msmpeg4v2:          ENCOPTS = -qscale 10
184
185 FATE_VCODEC += prores
186 fate-vsynth%-prores:             ENCOPTS = -profile hq
187 fate-vsynth%-prores:             FMT     = mov
188
189 FATE_VCODEC += qtrle
190 fate-vsynth%-qtrle:              FMT     = mov
191
192 FATE_VCODEC += rgb
193 fate-vsynth%-rgb:                CODEC   = rawvideo
194 fate-vsynth%-rgb:                ENCOPTS = -pix_fmt bgr24
195
196 FATE_VCODEC += roqvideo
197 fate-vsynth%-roqvideo:           CODEC   = roqvideo
198 fate-vsynth%-roqvideo:           ENCOPTS = -frames 5
199 fate-vsynth%-roqvideo:           FMT     = roq
200
201 FATE_VCODEC += rv10
202 fate-vsynth%-rv10:               ENCOPTS = -qscale 10
203 fate-vsynth%-rv10:               FMT     = rm
204
205 FATE_VCODEC += rv20
206 fate-vsynth%-rv20:               ENCOPTS = -qscale 10
207 fate-vsynth%-rv20:               FMT     = rm
208
209 FATE_VCODEC += snow
210 fate-vsynth%-snow:               ENCOPTS = -strict -2 -qscale 2 -flags +qpel \
211                                            -me_method iter -dia_size 2       \
212                                            -cmp 12 -subcmp 12 -s 128x64
213
214 FATE_VCODEC += snow-ll
215 fate-vsynth%-snow-ll:            ENCOPTS = -strict -2 -qscale .001 -pred 1 \
216                                            -flags +mv4+qpel
217
218 FATE_VCODEC += svq1
219 fate-vsynth%-svq1:               ENCOPTS = -qscale 3 -pix_fmt yuv410p
220 fate-vsynth%-svq1:               FMT     = mov
221
222 FATE_VCODEC += v210
223
224 FATE_VCODEC += wmv1
225 fate-vsynth%-wmv1:               ENCOPTS = -qscale 10
226
227 FATE_VCODEC += wmv2
228 fate-vsynth%-wmv2:               ENCOPTS = -qscale 10
229
230 FATE_VCODEC += yuv
231 fate-vsynth%-yuv:                CODEC = rawvideo
232
233 FATE_VSYNTH1 = $(FATE_VCODEC:%=fate-vsynth1-%)
234 FATE_VSYNTH2 = $(FATE_VCODEC:%=fate-vsynth2-%)
235
236 $(FATE_VSYNTH1): tests/data/vsynth1.yuv
237 $(FATE_VSYNTH2): tests/data/vsynth2.yuv
238
239 FATE_AVCONV += $(FATE_VSYNTH1) $(FATE_VSYNTH2)
240
241 fate-vsynth1: $(FATE_VSYNTH1)
242 fate-vsynth2: $(FATE_VSYNTH2)
243 fate-vcodec:  fate-vsynth1 fate-vsynth2