fate: add ffv1.0 test
[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 $(RAWDECOPTS)" $(SRC) $(FMT) "-c $(CODEC) $(ENCOPTS)" rawvideo "-s 352x288 -pix_fmt yuv420p -vsync 0 $(DECOPTS)" -keep "$(DECINOPTS)"
6 fate-vsynth%: CMP_UNIT = 1
7 fate-vsynth%: REF = $(SRC_PATH)/tests/ref/vsynth/$(@:fate-%=%)
8
9 FATE_VCODEC-$(call ENCDEC, AMV, AVI) += amv
10
11 FATE_VCODEC-$(call ENCDEC, ASV1, AVI)   += asv1
12 fate-vsynth%-asv1:               ENCOPTS = -qscale 10
13
14 FATE_VCODEC-$(call ENCDEC, ASV2, AVI)   += asv2
15 fate-vsynth%-asv2:               ENCOPTS = -qscale 10
16
17 FATE_VCODEC-$(call ENCDEC, CLJR, AVI)   += cljr
18
19 FATE_VCODEC-$(call ENCDEC, DNXHD, DNXHD) += dnxhd-720p                  \
20                                             dnxhd-720p-rd               \
21                                             dnxhd-720p-10bit
22
23 fate-vsynth%-dnxhd-720p:         ENCOPTS = -s hd720 -b 90M              \
24                                            -pix_fmt yuv422p -frames 5 -qmax 8
25 fate-vsynth%-dnxhd-720p:         FMT     = dnxhd
26
27 fate-vsynth%-dnxhd-720p-rd:      ENCOPTS = -s hd720 -b 90M -threads 4 -mbd rd \
28                                            -pix_fmt yuv422p -frames 5 -qmax 8
29 fate-vsynth%-dnxhd-720p-rd:      FMT     = dnxhd
30
31 fate-vsynth%-dnxhd-720p-10bit:   ENCOPTS = -s hd720 -b 90M              \
32                                            -pix_fmt yuv422p10 -frames 5 -qmax 8
33 fate-vsynth%-dnxhd-720p-10bit:   FMT     = dnxhd
34
35 FATE_VCODEC-$(call ENCDEC, DNXHD, MOV)  += dnxhd-1080i
36 fate-vsynth%-dnxhd-1080i:        ENCOPTS = -s hd1080 -b 120M -flags +ildct \
37                                            -pix_fmt yuv422p -frames 5 -qmax 8
38 fate-vsynth%-dnxhd-1080i:        FMT     = mov
39
40 FATE_VCODEC-$(call ENCDEC, DVVIDEO, DV) += dv dv-411 dv-50
41 fate-vsynth%-dv:                 CODEC   = dvvideo
42 fate-vsynth%-dv:                 ENCOPTS = -dct int -s pal
43 fate-vsynth%-dv:                 FMT     = dv
44
45 fate-vsynth%-dv-411:             CODEC   = dvvideo
46 fate-vsynth%-dv-411:             ENCOPTS = -dct int -s pal -pix_fmt yuv411p \
47                                            -sws_flags area
48 fate-vsynth%-dv-411:             DECOPTS = -sws_flags area
49 fate-vsynth%-dv-411:             FMT     = dv
50
51 fate-vsynth%-dv-50:              CODEC   = dvvideo
52 fate-vsynth%-dv-50:              ENCOPTS = -dct int -s pal -pix_fmt yuv422p \
53                                            -sws_flags neighbor
54 fate-vsynth%-dv-50:              DECOPTS = -sws_flags neighbor
55 fate-vsynth%-dv-50:              FMT     = dv
56
57 FATE_VCODEC-$(call ENCDEC, FFV1, AVI)   += ffv1 ffv1.0
58 fate-vsynth%-ffv1:               ENCOPTS = -slices 4 -strict -2
59 fate-vsynth%-ffv1.0:             CODEC   = ffv1
60
61 FATE_VCODEC-$(call ENCDEC, FFVHUFF, AVI) += ffvhuff
62
63 FATE_VCODEC-$(call ENCDEC, FLASHSV, FLV) += flashsv
64 fate-vsynth%-flashsv:            ENCOPTS = -sws_flags neighbor+full_chroma_int
65 fate-vsynth%-flashsv:            DECOPTS = -sws_flags area
66 fate-vsynth%-flashsv:            FMT     = flv
67
68 FATE_VCODEC-$(call ENCDEC, FLASHSV2, FLV) += flashsv2
69 fate-vsynth%-flashsv2:           ENCOPTS = -sws_flags neighbor+full_chroma_int -strict experimental -compression_level 0
70 fate-vsynth%-flashsv2:           DECOPTS = -sws_flags area
71 fate-vsynth%-flashsv2:           FMT     = flv
72
73 FATE_VCODEC-$(call ENCDEC, FLV, FLV)    += flv
74 fate-vsynth%-flv:                ENCOPTS = -qscale 10
75 fate-vsynth%-flv:                FMT     = flv
76
77 FATE_VCODEC-$(call ENCDEC, H261, AVI)   += h261
78 fate-vsynth%-h261:               ENCOPTS = -qscale 11
79
80 FATE_VCODEC-$(call ENCDEC, H263, AVI)   += h263 h263-obmc h263p
81 fate-vsynth%-h263:               ENCOPTS = -qscale 10
82 fate-vsynth%-h263-obmc:          ENCOPTS = -qscale 10 -obmc 1
83 fate-vsynth%-h263p:              ENCOPTS = -qscale 2 -flags +aic -umv 1 -aiv 1 -ps 300
84
85 FATE_VCODEC-$(call ENCDEC, HUFFYUV, AVI) += huffyuv
86 fate-vsynth%-huffyuv:            ENCOPTS = -pix_fmt yuv422p -sws_flags neighbor
87 fate-vsynth%-huffyuv:            DECOPTS = -strict -2 -sws_flags neighbor
88
89 FATE_VCODEC-$(call ENCDEC, JPEGLS, AVI) += jpegls
90 fate-vsynth%-jpegls:             ENCOPTS = -sws_flags neighbor+full_chroma_int
91 fate-vsynth%-jpegls:             DECOPTS = -sws_flags area
92
93 FATE_VCODEC-$(call ENCDEC, JPEG2000, AVI) += jpeg2000 jpeg2000-97
94 fate-vsynth%-jpeg2000:                ENCOPTS = -qscale 7 -strict experimental -pred 1 -pix_fmt rgb24
95 fate-vsynth%-jpeg2000:                DECINOPTS = -vcodec jpeg2000
96 fate-vsynth%-jpeg2000-97:             ENCOPTS = -qscale 7 -strict experimental -pix_fmt rgb24
97 fate-vsynth%-jpeg2000-97:             DECINOPTS = -vcodec jpeg2000
98
99 FATE_VCODEC-$(call ENCDEC, LJPEG MJPEG, AVI) += ljpeg
100 fate-vsynth%-ljpeg:              ENCOPTS = -strict -1
101
102 FATE_VCODEC-$(call ENCDEC, MJPEG, AVI)  += mjpeg mjpeg-422 mjpeg-444
103 fate-vsynth%-mjpeg:              ENCOPTS = -qscale 9 -pix_fmt yuvj420p
104 fate-vsynth%-mjpeg-422:          ENCOPTS = -qscale 9 -pix_fmt yuvj422p
105 fate-vsynth%-mjpeg-444:          ENCOPTS = -qscale 9 -pix_fmt yuvj444p
106
107 FATE_VCODEC-$(call ENCDEC, MPEG1VIDEO, MPEG1VIDEO MPEGVIDEO) += mpeg1 mpeg1b
108 fate-vsynth%-mpeg1:              FMT     = mpeg1video
109 fate-vsynth%-mpeg1:              CODEC   = mpeg1video
110 fate-vsynth%-mpeg1:              ENCOPTS = -qscale 10
111
112 fate-vsynth%-mpeg1b:             CODEC   = mpeg1video
113 fate-vsynth%-mpeg1b:             ENCOPTS = -qscale 8 -bf 3 -ps 200
114 fate-vsynth%-mpeg1b:             FMT     = mpeg1video
115
116 FATE_MPEG2 = mpeg2                                                      \
117              mpeg2-422                                                  \
118              mpeg2-idct-int                                             \
119              mpeg2-ilace                                                \
120              mpeg2-ivlc-qprd                                            \
121              mpeg2-thread                                               \
122              mpeg2-thread-ivlc
123
124 FATE_VCODEC-$(call ENCDEC, MPEG2VIDEO, MPEG2VIDEO MPEGVIDEO) += $(FATE_MPEG2)
125
126 $(FATE_MPEG2:%=fate-vsynth\%-%): FMT    = mpeg2video
127 $(FATE_MPEG2:%=fate-vsynth\%-%): CODEC  = mpeg2video
128
129 fate-vsynth%-mpeg2:              ENCOPTS = -qscale 10
130 fate-vsynth%-mpeg2-422:          ENCOPTS = -b:v 1000k                   \
131                                            -bf 2                        \
132                                            -trellis 1                   \
133                                            -flags +mv0+ildct+ilme       \
134                                            -mpv_flags +qp_rd            \
135                                            -intra_vlc 1                 \
136                                            -mbd rd                      \
137                                            -pix_fmt yuv422p
138 fate-vsynth%-mpeg2-idct-int:     ENCOPTS = -qscale 10 -idct int -dct int
139 fate-vsynth%-mpeg2-ilace:        ENCOPTS = -qscale 10 -flags +ildct+ilme
140 fate-vsynth%-mpeg2-ivlc-qprd:    ENCOPTS = -b:v 500k                    \
141                                            -bf 2                        \
142                                            -trellis 1                   \
143                                            -flags +mv0                  \
144                                            -mpv_flags +qp_rd            \
145                                            -intra_vlc 1                 \
146                                            -cmp 2 -subcmp 2             \
147                                            -mbd rd
148 fate-vsynth%-mpeg2-thread:       ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
149                                            -threads 2 -slices 2
150 fate-vsynth%-mpeg2-thread-ivlc:  ENCOPTS = -qscale 10 -bf 2 -flags +ildct+ilme \
151                                            -intra_vlc 1 -threads 2 -slices 2
152
153 FATE_MPEG4_MP4 = mpeg4
154 FATE_MPEG4_AVI = mpeg4-rc                                               \
155                  mpeg4-adv                                              \
156                  mpeg4-qprd                                             \
157                  mpeg4-adap                                             \
158                  mpeg4-qpel                                             \
159                  mpeg4-thread                                           \
160                  mpeg4-error                                            \
161                  mpeg4-nr
162
163 FATE_VCODEC-$(call ENCDEC, MPEG4, MP4 MOV) += $(FATE_MPEG4_MP4)
164 FATE_VCODEC-$(call ENCDEC, MPEG4, AVI)     += $(FATE_MPEG4_AVI)
165
166 fate-vsynth%-mpeg4:              ENCOPTS = -qscale 10 -flags +mv4 -mbd bits
167 fate-vsynth%-mpeg4:              FMT     = mp4
168
169 fate-vsynth%-mpeg4-adap:         ENCOPTS = -b 550k -bf 2 -flags +mv4+mv0 \
170                                            -trellis 1 -cmp 1 -subcmp 2   \
171                                            -mbd rd -scplx_mask 0.3
172
173 fate-vsynth%-mpeg4-adv:          ENCOPTS = -qscale 9 -flags +mv4+aic       \
174                                            -data_partitioning 1 -trellis 1 \
175                                            -mbd bits -ps 200
176
177 fate-vsynth%-mpeg4-error:        ENCOPTS = -qscale 7 -flags +mv4+aic    \
178                                            -data_partitioning 1 -mbd rd \
179                                            -ps 250 -error 10
180
181 fate-vsynth%-mpeg4-nr:           ENCOPTS = -qscale 8 -flags +mv4 -mbd rd -nr 200
182
183 fate-vsynth%-mpeg4-qpel:         ENCOPTS = -qscale 7 -flags +mv4+qpel -mbd 2 \
184                                            -bf 2 -cmp 1 -subcmp 2
185
186 fate-vsynth%-mpeg4-qprd:         ENCOPTS = -b 450k -bf 2 -trellis 1          \
187                                            -flags +mv4+mv0 -mpv_flags +qp_rd \
188                                            -cmp 2 -subcmp 2 -mbd rd
189
190 fate-vsynth%-mpeg4-rc:           ENCOPTS = -b 400k -bf 2
191
192 fate-vsynth%-mpeg4-thread:       ENCOPTS = -b 500k -flags +mv4+aic         \
193                                            -data_partitioning 1 -trellis 1 \
194                                            -mbd bits -ps 200 -bf 2         \
195                                            -threads 2 -slices 2
196
197 FATE_VCODEC-$(call ENCDEC, MSMPEG4V3, AVI) += msmpeg4
198 fate-vsynth%-msmpeg4:            ENCOPTS = -qscale 10
199
200 FATE_VCODEC-$(call ENCDEC, MSMPEG4V2, AVI) += msmpeg4v2
201 fate-vsynth%-msmpeg4v2:          ENCOPTS = -qscale 10
202
203 FATE_VCODEC-$(call ENCDEC, PNG, AVI)    += mpng
204 fate-vsynth%-mpng:               CODEC   = png
205
206 FATE_VCODEC-$(call ENCDEC, MSVIDEO1, AVI) += msvideo1
207
208 FATE_VCODEC-$(call ENCDEC, PRORES, MOV) += prores prores_ks
209 fate-vsynth%-prores:             FMT     = mov
210
211 fate-vsynth%-prores_ks:          ENCOPTS = -profile hq
212 fate-vsynth%-prores_ks:          FMT     = mov
213
214 FATE_VCODEC-$(call ENCDEC, QTRLE, MOV)  += qtrle qtrlegray
215 fate-vsynth%-qtrle:              FMT     = mov
216
217 fate-vsynth%-qtrlegray:          CODEC   = qtrle
218 fate-vsynth%-qtrlegray:          ENCOPTS = -pix_fmt gray
219 fate-vsynth%-qtrlegray:          FMT     = mov
220
221 FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += rgb
222 fate-vsynth%-rgb:                CODEC   = rawvideo
223 fate-vsynth%-rgb:                ENCOPTS = -pix_fmt bgr24
224
225 FATE_VCODEC-$(call ENCDEC, ROQ, ROQ)    += roqvideo
226 fate-vsynth%-roqvideo:           CODEC   = roqvideo
227 fate-vsynth%-roqvideo:           ENCOPTS = -frames 5
228 fate-vsynth%-roqvideo:           RAWDECOPTS = -r 30
229 fate-vsynth%-roqvideo:           FMT     = roq
230
231 FATE_VCODEC-$(call ENCDEC, RV10, RM)    += rv10
232 fate-vsynth%-rv10:               ENCOPTS = -qscale 10
233 fate-vsynth%-rv10:               FMT     = rm
234
235 FATE_VCODEC-$(call ENCDEC, RV20, RM)    += rv20
236 fate-vsynth%-rv20:               ENCOPTS = -qscale 10
237 fate-vsynth%-rv20:               FMT     = rm
238
239 FATE_VCODEC-$(call ENCDEC, SNOW, AVI)   += snow snow-hpel snow-ll
240 fate-vsynth%-snow:               ENCOPTS = -strict -2 -qscale 2 -flags +qpel \
241                                            -me_method iter -dia_size 2       \
242                                            -cmp 12 -subcmp 12 -s 128x64
243
244 fate-vsynth%-snow-hpel:          ENCOPTS = -strict -2 -qscale 2              \
245                                            -me_method iter -dia_size 2       \
246                                            -cmp 12 -subcmp 12 -s 128x64
247
248 fate-vsynth%-snow-ll:            ENCOPTS = -strict -2 -qscale .001 -pred 1 \
249                                            -flags +mv4+qpel
250
251 FATE_VCODEC-$(call ENCDEC, SVQ1, MOV)   += svq1
252 fate-vsynth%-svq1:               ENCOPTS = -qscale 3 -pix_fmt yuv410p
253 fate-vsynth%-svq1:               FMT     = mov
254
255 FATE_VCODEC-$(call ENCDEC, R210, AVI)   += r210
256
257 FATE_VCODEC-$(call ENCDEC, V210, AVI)   += v210
258
259 FATE_VCODEC-$(call ENCDEC, V308, AVI)   += v308
260
261 FATE_VCODEC-$(call ENCDEC, V408, AVI)   += v408
262 fate-vsynth%-v408:               ENCOPTS = -sws_flags neighbor+bitexact
263 fate-vsynth%-v408:               DECOPTS = -sws_flags neighbor+bitexact
264
265 FATE_VCODEC-$(call ENCDEC, AVUI, MOV)   += avui
266 fate-vsynth%-avui:               ENCOPTS = -s pal -strict experimental -sws_flags neighbor+bitexact
267 fate-vsynth%-avui:               DECOPTS = -sws_flags neighbor+bitexact
268 fate-vsynth%-avui:               FMT     = mov
269
270 FATE_VCODEC-$(call ENCDEC, WMV1, AVI)   += wmv1
271 fate-vsynth%-wmv1:               ENCOPTS = -qscale 10
272
273 FATE_VCODEC-$(call ENCDEC, WMV2, AVI)   += wmv2
274 fate-vsynth%-wmv2:               ENCOPTS = -qscale 10
275
276 FATE_VCODEC-$(call ENCDEC, RAWVIDEO, AVI) += yuv
277 fate-vsynth%-yuv:                CODEC = rawvideo
278
279 FATE_VCODEC-$(call ENCDEC, YUV4, AVI) += yuv4
280
281 FATE_VCODEC-$(call ENCDEC, Y41P, AVI) += y41p
282
283 FATE_VCODEC-$(call ENCDEC, ZLIB, AVI) += zlib
284
285 FATE_VCODEC += $(FATE_VCODEC-yes)
286 FATE_VSYNTH1 = $(FATE_VCODEC:%=fate-vsynth1-%)
287 FATE_VSYNTH2 = $(FATE_VCODEC:%=fate-vsynth2-%)
288
289 $(FATE_VSYNTH1): tests/data/vsynth1.yuv
290 $(FATE_VSYNTH2): tests/data/vsynth2.yuv
291
292 FATE_AVCONV += $(FATE_VSYNTH1) $(FATE_VSYNTH2)
293
294 fate-vsynth1: $(FATE_VSYNTH1)
295 fate-vsynth2: $(FATE_VSYNTH2)
296 fate-vcodec:  fate-vsynth1 fate-vsynth2