[FFmpeg-devel] [RFC] fate: Add exif test.

Thilo Borgmann thilo.borgmann at mail.de
Sat Aug 17 21:13:37 CEST 2013


to add a test for exif metadata, I need to know if we can somehow check these
better than by console output? Do we have tests for MP3 tags or similar?

I need a little guidance through the Makefile-magic...
What I have done until now (see attached) is including a new .mak file into
tests/Makefile, and how get the corresponding target called.

What could the target execute to test for metatdata? (CMD = ...?)
How generate a corresponding reference file?


p.s. is IFF the correct demuxer for TIFF files?

 tests/Makefile      | 1 +
 tests/fate/exif.mak | 5 +++++
 2 files changed, 6 insertions(+)
 create mode 100644 tests/fate/exif.mak

diff --git a/tests/Makefile b/tests/Makefile
index 914448e..61423f4 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -93,6 +93,7 @@ include $(SRC_PATH)/tests/fate/demux.mak
 include $(SRC_PATH)/tests/fate/dfa.mak
 include $(SRC_PATH)/tests/fate/dpcm.mak
 include $(SRC_PATH)/tests/fate/ea.mak
+include $(SRC_PATH)/tests/fate/exif.mak
 include $(SRC_PATH)/tests/fate/ffmpeg.mak
 include $(SRC_PATH)/tests/fate/ffprobe.mak
 include $(SRC_PATH)/tests/fate/filter-audio.mak
diff --git a/tests/fate/exif.mak b/tests/fate/exif.mak
new file mode 100644
index 0000000..8295b18
--- /dev/null
+++ b/tests/fate/exif.mak
@@ -0,0 +1,5 @@
+FATE_SAMPLES_EXIF-$(call DEMDEC, IFF, TIFF) += fate-exif-image
+fate-exif-iamge: CMD = framecrc -i $(TARGET_SAMPLES)/exif/image_small.tiff
+fate-exif: $(FATE_SAMPLES_EXIF-yes)

More information about the ffmpeg-devel mailing list