... | ... |
@@ -93,6 +93,7 @@ include $(SRC_PATH)/tests/fate/demux.mak |
93 | 93 |
include $(SRC_PATH)/tests/fate/dfa.mak |
94 | 94 |
include $(SRC_PATH)/tests/fate/dpcm.mak |
95 | 95 |
include $(SRC_PATH)/tests/fate/ea.mak |
96 |
+include $(SRC_PATH)/tests/fate/exif.mak |
|
96 | 97 |
include $(SRC_PATH)/tests/fate/ffmpeg.mak |
97 | 98 |
include $(SRC_PATH)/tests/fate/ffprobe.mak |
98 | 99 |
include $(SRC_PATH)/tests/fate/filter-audio.mak |
... | ... |
@@ -75,6 +75,10 @@ probefmt(){ |
75 | 75 |
run ffprobe -show_entries format=format_name -print_format default=nw=1:nk=1 -v 0 "$@" |
76 | 76 |
} |
77 | 77 |
|
78 |
+probeframes(){ |
|
79 |
+ run ffprobe -show_frames -v 0 "$@" |
|
80 |
+} |
|
81 |
+ |
|
78 | 82 |
ffmpeg(){ |
79 | 83 |
dec_opts="-threads $threads -thread_type $thread_type" |
80 | 84 |
ffmpeg_args="-nostats -cpuflags $cpuflags" |
81 | 85 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,14 @@ |
0 |
+# test exif metadata in TIFF images |
|
1 |
+FATE_SAMPLES_EXIF-$(call DEMDEC, IMAGE2, TIFF) += fate-exif-image-tiff |
|
2 |
+fate-exif-image-tiff: CMD = probeframes $(TARGET_SAMPLES)/exif/image_small.tiff |
|
3 |
+ |
|
4 |
+# test exif metadata in JPG images |
|
5 |
+FATE_SAMPLES_EXIF-$(call DEMDEC, IMAGE2, MJPEG) += fate-exif-image-jpg |
|
6 |
+fate-exif-image-jpg: CMD = probeframes $(TARGET_SAMPLES)/exif/image_small.jpg |
|
7 |
+ |
|
8 |
+# test exif metadata in MP3 with embedded JPEG images |
|
9 |
+FATE_SAMPLES_EXIF-$(call ALLYES, MP3_DEMUXER IMAGE2_DEMUXER MJPEG_DECODER) += fate-exif-image-embedded |
|
10 |
+fate-exif-image-embedded: CMD = probeframes $(TARGET_SAMPLES)/exif/embedded_small.mp3 |
|
11 |
+ |
|
12 |
+# add all -yes targets to the tested targets |
|
13 |
+FATE_SAMPLES_FFMPEG += $(FATE_SAMPLES_EXIF-yes) |
0 | 14 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,360 @@ |
0 |
+[FRAME] |
|
1 |
+media_type=video |
|
2 |
+key_frame=1 |
|
3 |
+pkt_pts=N/A |
|
4 |
+pkt_pts_time=N/A |
|
5 |
+pkt_dts=N/A |
|
6 |
+pkt_dts_time=N/A |
|
7 |
+pkt_duration=N/A |
|
8 |
+pkt_duration_time=N/A |
|
9 |
+pkt_pos=N/A |
|
10 |
+pkt_size=15760 |
|
11 |
+width=263 |
|
12 |
+height=263 |
|
13 |
+pix_fmt=yuvj420p |
|
14 |
+sample_aspect_ratio=1:1 |
|
15 |
+pict_type=I |
|
16 |
+coded_picture_number=0 |
|
17 |
+display_picture_number=0 |
|
18 |
+interlaced_frame=0 |
|
19 |
+top_field_first=0 |
|
20 |
+repeat_pict=0 |
|
21 |
+TAG:UserComment=AppleMark |
|
22 |
+ |
|
23 |
+[/FRAME] |
|
24 |
+[FRAME] |
|
25 |
+media_type=audio |
|
26 |
+key_frame=1 |
|
27 |
+pkt_pts=353600 |
|
28 |
+pkt_pts_time=0.025057 |
|
29 |
+pkt_dts=353600 |
|
30 |
+pkt_dts_time=0.025057 |
|
31 |
+pkt_duration=15040 |
|
32 |
+pkt_duration_time=0.001066 |
|
33 |
+pkt_pos=16292 |
|
34 |
+pkt_size=417 |
|
35 |
+sample_fmt=s16p |
|
36 |
+nb_samples=47 |
|
37 |
+channels=2 |
|
38 |
+channel_layout=stereo |
|
39 |
+[/FRAME] |
|
40 |
+[FRAME] |
|
41 |
+media_type=audio |
|
42 |
+key_frame=1 |
|
43 |
+pkt_pts=368640 |
|
44 |
+pkt_pts_time=0.026122 |
|
45 |
+pkt_dts=368640 |
|
46 |
+pkt_dts_time=0.026122 |
|
47 |
+pkt_duration=368640 |
|
48 |
+pkt_duration_time=0.026122 |
|
49 |
+pkt_pos=16709 |
|
50 |
+pkt_size=418 |
|
51 |
+sample_fmt=s16p |
|
52 |
+nb_samples=1152 |
|
53 |
+channels=2 |
|
54 |
+channel_layout=stereo |
|
55 |
+[/FRAME] |
|
56 |
+[FRAME] |
|
57 |
+media_type=audio |
|
58 |
+key_frame=1 |
|
59 |
+pkt_pts=737280 |
|
60 |
+pkt_pts_time=0.052245 |
|
61 |
+pkt_dts=737280 |
|
62 |
+pkt_dts_time=0.052245 |
|
63 |
+pkt_duration=368640 |
|
64 |
+pkt_duration_time=0.026122 |
|
65 |
+pkt_pos=17127 |
|
66 |
+pkt_size=418 |
|
67 |
+sample_fmt=s16p |
|
68 |
+nb_samples=1152 |
|
69 |
+channels=2 |
|
70 |
+channel_layout=stereo |
|
71 |
+[/FRAME] |
|
72 |
+[FRAME] |
|
73 |
+media_type=audio |
|
74 |
+key_frame=1 |
|
75 |
+pkt_pts=1105920 |
|
76 |
+pkt_pts_time=0.078367 |
|
77 |
+pkt_dts=1105920 |
|
78 |
+pkt_dts_time=0.078367 |
|
79 |
+pkt_duration=368640 |
|
80 |
+pkt_duration_time=0.026122 |
|
81 |
+pkt_pos=17545 |
|
82 |
+pkt_size=418 |
|
83 |
+sample_fmt=s16p |
|
84 |
+nb_samples=1152 |
|
85 |
+channels=2 |
|
86 |
+channel_layout=stereo |
|
87 |
+[/FRAME] |
|
88 |
+[FRAME] |
|
89 |
+media_type=audio |
|
90 |
+key_frame=1 |
|
91 |
+pkt_pts=1474560 |
|
92 |
+pkt_pts_time=0.104490 |
|
93 |
+pkt_dts=1474560 |
|
94 |
+pkt_dts_time=0.104490 |
|
95 |
+pkt_duration=368640 |
|
96 |
+pkt_duration_time=0.026122 |
|
97 |
+pkt_pos=17963 |
|
98 |
+pkt_size=418 |
|
99 |
+sample_fmt=s16p |
|
100 |
+nb_samples=1152 |
|
101 |
+channels=2 |
|
102 |
+channel_layout=stereo |
|
103 |
+[/FRAME] |
|
104 |
+[FRAME] |
|
105 |
+media_type=audio |
|
106 |
+key_frame=1 |
|
107 |
+pkt_pts=1843200 |
|
108 |
+pkt_pts_time=0.130612 |
|
109 |
+pkt_dts=1843200 |
|
110 |
+pkt_dts_time=0.130612 |
|
111 |
+pkt_duration=368640 |
|
112 |
+pkt_duration_time=0.026122 |
|
113 |
+pkt_pos=18381 |
|
114 |
+pkt_size=418 |
|
115 |
+sample_fmt=s16p |
|
116 |
+nb_samples=1152 |
|
117 |
+channels=2 |
|
118 |
+channel_layout=stereo |
|
119 |
+[/FRAME] |
|
120 |
+[FRAME] |
|
121 |
+media_type=audio |
|
122 |
+key_frame=1 |
|
123 |
+pkt_pts=2211840 |
|
124 |
+pkt_pts_time=0.156735 |
|
125 |
+pkt_dts=2211840 |
|
126 |
+pkt_dts_time=0.156735 |
|
127 |
+pkt_duration=368640 |
|
128 |
+pkt_duration_time=0.026122 |
|
129 |
+pkt_pos=18799 |
|
130 |
+pkt_size=418 |
|
131 |
+sample_fmt=s16p |
|
132 |
+nb_samples=1152 |
|
133 |
+channels=2 |
|
134 |
+channel_layout=stereo |
|
135 |
+[/FRAME] |
|
136 |
+[FRAME] |
|
137 |
+media_type=audio |
|
138 |
+key_frame=1 |
|
139 |
+pkt_pts=2580480 |
|
140 |
+pkt_pts_time=0.182857 |
|
141 |
+pkt_dts=2580480 |
|
142 |
+pkt_dts_time=0.182857 |
|
143 |
+pkt_duration=368640 |
|
144 |
+pkt_duration_time=0.026122 |
|
145 |
+pkt_pos=19217 |
|
146 |
+pkt_size=418 |
|
147 |
+sample_fmt=s16p |
|
148 |
+nb_samples=1152 |
|
149 |
+channels=2 |
|
150 |
+channel_layout=stereo |
|
151 |
+[/FRAME] |
|
152 |
+[FRAME] |
|
153 |
+media_type=audio |
|
154 |
+key_frame=1 |
|
155 |
+pkt_pts=2949120 |
|
156 |
+pkt_pts_time=0.208980 |
|
157 |
+pkt_dts=2949120 |
|
158 |
+pkt_dts_time=0.208980 |
|
159 |
+pkt_duration=368640 |
|
160 |
+pkt_duration_time=0.026122 |
|
161 |
+pkt_pos=19635 |
|
162 |
+pkt_size=418 |
|
163 |
+sample_fmt=s16p |
|
164 |
+nb_samples=1152 |
|
165 |
+channels=2 |
|
166 |
+channel_layout=stereo |
|
167 |
+[/FRAME] |
|
168 |
+[FRAME] |
|
169 |
+media_type=audio |
|
170 |
+key_frame=1 |
|
171 |
+pkt_pts=3317760 |
|
172 |
+pkt_pts_time=0.235102 |
|
173 |
+pkt_dts=3317760 |
|
174 |
+pkt_dts_time=0.235102 |
|
175 |
+pkt_duration=368640 |
|
176 |
+pkt_duration_time=0.026122 |
|
177 |
+pkt_pos=20053 |
|
178 |
+pkt_size=418 |
|
179 |
+sample_fmt=s16p |
|
180 |
+nb_samples=1152 |
|
181 |
+channels=2 |
|
182 |
+channel_layout=stereo |
|
183 |
+[/FRAME] |
|
184 |
+[FRAME] |
|
185 |
+media_type=audio |
|
186 |
+key_frame=1 |
|
187 |
+pkt_pts=3686400 |
|
188 |
+pkt_pts_time=0.261224 |
|
189 |
+pkt_dts=3686400 |
|
190 |
+pkt_dts_time=0.261224 |
|
191 |
+pkt_duration=368640 |
|
192 |
+pkt_duration_time=0.026122 |
|
193 |
+pkt_pos=20471 |
|
194 |
+pkt_size=418 |
|
195 |
+sample_fmt=s16p |
|
196 |
+nb_samples=1152 |
|
197 |
+channels=2 |
|
198 |
+channel_layout=stereo |
|
199 |
+[/FRAME] |
|
200 |
+[FRAME] |
|
201 |
+media_type=audio |
|
202 |
+key_frame=1 |
|
203 |
+pkt_pts=4055040 |
|
204 |
+pkt_pts_time=0.287347 |
|
205 |
+pkt_dts=4055040 |
|
206 |
+pkt_dts_time=0.287347 |
|
207 |
+pkt_duration=368640 |
|
208 |
+pkt_duration_time=0.026122 |
|
209 |
+pkt_pos=20889 |
|
210 |
+pkt_size=418 |
|
211 |
+sample_fmt=s16p |
|
212 |
+nb_samples=1152 |
|
213 |
+channels=2 |
|
214 |
+channel_layout=stereo |
|
215 |
+[/FRAME] |
|
216 |
+[FRAME] |
|
217 |
+media_type=audio |
|
218 |
+key_frame=1 |
|
219 |
+pkt_pts=4423680 |
|
220 |
+pkt_pts_time=0.313469 |
|
221 |
+pkt_dts=4423680 |
|
222 |
+pkt_dts_time=0.313469 |
|
223 |
+pkt_duration=368640 |
|
224 |
+pkt_duration_time=0.026122 |
|
225 |
+pkt_pos=21307 |
|
226 |
+pkt_size=418 |
|
227 |
+sample_fmt=s16p |
|
228 |
+nb_samples=1152 |
|
229 |
+channels=2 |
|
230 |
+channel_layout=stereo |
|
231 |
+[/FRAME] |
|
232 |
+[FRAME] |
|
233 |
+media_type=audio |
|
234 |
+key_frame=1 |
|
235 |
+pkt_pts=4792320 |
|
236 |
+pkt_pts_time=0.339592 |
|
237 |
+pkt_dts=4792320 |
|
238 |
+pkt_dts_time=0.339592 |
|
239 |
+pkt_duration=368640 |
|
240 |
+pkt_duration_time=0.026122 |
|
241 |
+pkt_pos=21725 |
|
242 |
+pkt_size=418 |
|
243 |
+sample_fmt=s16p |
|
244 |
+nb_samples=1152 |
|
245 |
+channels=2 |
|
246 |
+channel_layout=stereo |
|
247 |
+[/FRAME] |
|
248 |
+[FRAME] |
|
249 |
+media_type=audio |
|
250 |
+key_frame=1 |
|
251 |
+pkt_pts=5160960 |
|
252 |
+pkt_pts_time=0.365714 |
|
253 |
+pkt_dts=5160960 |
|
254 |
+pkt_dts_time=0.365714 |
|
255 |
+pkt_duration=368640 |
|
256 |
+pkt_duration_time=0.026122 |
|
257 |
+pkt_pos=22143 |
|
258 |
+pkt_size=418 |
|
259 |
+sample_fmt=s16p |
|
260 |
+nb_samples=1152 |
|
261 |
+channels=2 |
|
262 |
+channel_layout=stereo |
|
263 |
+[/FRAME] |
|
264 |
+[FRAME] |
|
265 |
+media_type=audio |
|
266 |
+key_frame=1 |
|
267 |
+pkt_pts=5529600 |
|
268 |
+pkt_pts_time=0.391837 |
|
269 |
+pkt_dts=5529600 |
|
270 |
+pkt_dts_time=0.391837 |
|
271 |
+pkt_duration=368640 |
|
272 |
+pkt_duration_time=0.026122 |
|
273 |
+pkt_pos=22561 |
|
274 |
+pkt_size=418 |
|
275 |
+sample_fmt=s16p |
|
276 |
+nb_samples=1152 |
|
277 |
+channels=2 |
|
278 |
+channel_layout=stereo |
|
279 |
+[/FRAME] |
|
280 |
+[FRAME] |
|
281 |
+media_type=audio |
|
282 |
+key_frame=1 |
|
283 |
+pkt_pts=5898240 |
|
284 |
+pkt_pts_time=0.417959 |
|
285 |
+pkt_dts=5898240 |
|
286 |
+pkt_dts_time=0.417959 |
|
287 |
+pkt_duration=368640 |
|
288 |
+pkt_duration_time=0.026122 |
|
289 |
+pkt_pos=22979 |
|
290 |
+pkt_size=418 |
|
291 |
+sample_fmt=s16p |
|
292 |
+nb_samples=1152 |
|
293 |
+channels=2 |
|
294 |
+channel_layout=stereo |
|
295 |
+[/FRAME] |
|
296 |
+[FRAME] |
|
297 |
+media_type=audio |
|
298 |
+key_frame=1 |
|
299 |
+pkt_pts=6266880 |
|
300 |
+pkt_pts_time=0.444082 |
|
301 |
+pkt_dts=6266880 |
|
302 |
+pkt_dts_time=0.444082 |
|
303 |
+pkt_duration=368640 |
|
304 |
+pkt_duration_time=0.026122 |
|
305 |
+pkt_pos=23397 |
|
306 |
+pkt_size=418 |
|
307 |
+sample_fmt=s16p |
|
308 |
+nb_samples=1152 |
|
309 |
+channels=2 |
|
310 |
+channel_layout=stereo |
|
311 |
+[/FRAME] |
|
312 |
+[FRAME] |
|
313 |
+media_type=audio |
|
314 |
+key_frame=1 |
|
315 |
+pkt_pts=6635520 |
|
316 |
+pkt_pts_time=0.470204 |
|
317 |
+pkt_dts=6635520 |
|
318 |
+pkt_dts_time=0.470204 |
|
319 |
+pkt_duration=368640 |
|
320 |
+pkt_duration_time=0.026122 |
|
321 |
+pkt_pos=23815 |
|
322 |
+pkt_size=418 |
|
323 |
+sample_fmt=s16p |
|
324 |
+nb_samples=1152 |
|
325 |
+channels=2 |
|
326 |
+channel_layout=stereo |
|
327 |
+[/FRAME] |
|
328 |
+[FRAME] |
|
329 |
+media_type=audio |
|
330 |
+key_frame=1 |
|
331 |
+pkt_pts=7004160 |
|
332 |
+pkt_pts_time=0.496327 |
|
333 |
+pkt_dts=7004160 |
|
334 |
+pkt_dts_time=0.496327 |
|
335 |
+pkt_duration=368640 |
|
336 |
+pkt_duration_time=0.026122 |
|
337 |
+pkt_pos=24233 |
|
338 |
+pkt_size=418 |
|
339 |
+sample_fmt=s16p |
|
340 |
+nb_samples=1152 |
|
341 |
+channels=2 |
|
342 |
+channel_layout=stereo |
|
343 |
+[/FRAME] |
|
344 |
+[FRAME] |
|
345 |
+media_type=audio |
|
346 |
+key_frame=1 |
|
347 |
+pkt_pts=7372800 |
|
348 |
+pkt_pts_time=0.522449 |
|
349 |
+pkt_dts=7372800 |
|
350 |
+pkt_dts_time=0.522449 |
|
351 |
+pkt_duration=368640 |
|
352 |
+pkt_duration_time=0.026122 |
|
353 |
+pkt_pos=24651 |
|
354 |
+pkt_size=418 |
|
355 |
+sample_fmt=s16p |
|
356 |
+nb_samples=1152 |
|
357 |
+channels=2 |
|
358 |
+channel_layout=stereo |
|
359 |
+[/FRAME] |
0 | 360 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,66 @@ |
0 |
+[FRAME] |
|
1 |
+media_type=video |
|
2 |
+key_frame=1 |
|
3 |
+pkt_pts=0 |
|
4 |
+pkt_pts_time=0.000000 |
|
5 |
+pkt_dts=0 |
|
6 |
+pkt_dts_time=0.000000 |
|
7 |
+pkt_duration=1 |
|
8 |
+pkt_duration_time=0.040000 |
|
9 |
+pkt_pos=N/A |
|
10 |
+pkt_size=46095 |
|
11 |
+width=400 |
|
12 |
+height=225 |
|
13 |
+pix_fmt=yuvj422p |
|
14 |
+sample_aspect_ratio=1:1 |
|
15 |
+pict_type=I |
|
16 |
+coded_picture_number=0 |
|
17 |
+display_picture_number=0 |
|
18 |
+interlaced_frame=0 |
|
19 |
+top_field_first=0 |
|
20 |
+repeat_pict=0 |
|
21 |
+TAG:ImageDescription= |
|
22 |
+TAG:Make=Canon |
|
23 |
+TAG:Model=Canon PowerShot SX200 IS |
|
24 |
+TAG:Orientation=1 |
|
25 |
+TAG:XResolution=180:1 |
|
26 |
+TAG:YResolution=180:1 |
|
27 |
+TAG:ResolutionUnit=2 |
|
28 |
+TAG:DateTime=2013:07:18 13:12:03 |
|
29 |
+TAG:YCbCrPositioning=2 |
|
30 |
+TAG:ExposureTime=1:1250 |
|
31 |
+TAG:FNumber=40:10 |
|
32 |
+TAG:ISOSpeedRatings=160 |
|
33 |
+TAG:ExifVersion=0221 |
|
34 |
+TAG:DateTimeOriginal=2013:07:18 13:12:03 |
|
35 |
+TAG:DateTimeDigitized=2013:07:18 13:12:03 |
|
36 |
+TAG:ComponentsConfiguration= |
|
37 |
+TAG:CompressedBitsPerPixel=3:1 |
|
38 |
+TAG:ShutterSpeedValue=329:32 |
|
39 |
+TAG:ApertureValue=128:32 |
|
40 |
+TAG:ExposureBiasValue=0:3 |
|
41 |
+TAG:MaxApertureValue=113:32 |
|
42 |
+TAG:MeteringMode=5 |
|
43 |
+TAG:Flash=16 |
|
44 |
+TAG:FocalLength=5000:1000 |
|
45 |
+TAG:MakerNote= |
|
46 |
+TAG:UserComment= |
|
47 |
+TAG:FlashpixVersion=0100 |
|
48 |
+TAG:ColorSpace=1 |
|
49 |
+TAG:PixelXDimension=4000 |
|
50 |
+TAG:PixelYDimension=2248 |
|
51 |
+TAG:GPSLatitudeRef=R98 |
|
52 |
+TAG:GPSLatitude=0100 |
|
53 |
+TAG:0x1001=4000 |
|
54 |
+TAG:0x1002=2248 |
|
55 |
+TAG:FocalPlaneXResolution=4000000:244 |
|
56 |
+TAG:FocalPlaneYResolution=2248000:183 |
|
57 |
+TAG:FocalPlaneResolutionUnit=2 |
|
58 |
+TAG:SensingMethod=2 |
|
59 |
+TAG:FileSource= |
|
60 |
+TAG:CustomRendered=0 |
|
61 |
+TAG:ExposureMode=0 |
|
62 |
+TAG:WhiteBalance=0 |
|
63 |
+TAG:DigitalZoomRatio=4000:4000 |
|
64 |
+TAG:SceneCaptureType=0 |
|
65 |
+[/FRAME] |
0 | 66 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,25 @@ |
0 |
+[FRAME] |
|
1 |
+media_type=video |
|
2 |
+key_frame=1 |
|
3 |
+pkt_pts=0 |
|
4 |
+pkt_pts_time=0.000000 |
|
5 |
+pkt_dts=0 |
|
6 |
+pkt_dts_time=0.000000 |
|
7 |
+pkt_duration=1 |
|
8 |
+pkt_duration_time=0.040000 |
|
9 |
+pkt_pos=N/A |
|
10 |
+pkt_size=67604 |
|
11 |
+width=200 |
|
12 |
+height=112 |
|
13 |
+pix_fmt=rgb24 |
|
14 |
+sample_aspect_ratio=N/A |
|
15 |
+pict_type=? |
|
16 |
+coded_picture_number=0 |
|
17 |
+display_picture_number=0 |
|
18 |
+interlaced_frame=0 |
|
19 |
+top_field_first=0 |
|
20 |
+repeat_pict=0 |
|
21 |
+TAG:document_name=image_small.tiff |
|
22 |
+TAG:page_number=0 / 1 |
|
23 |
+TAG:software=ImageMagick 6.5.8-0 2010-02-09 Q16 http://www.imagemagick.org |
|
24 |
+[/FRAME] |