[FFmpeg-devel] =?y?q?=5BPATCH=5D=20tests/fate-ffprobe=3A=20use=20an=20ffmetadata=20file?=

Stefano Sabatini stefasab at gmail.com
Mon Sep 24 01:29:31 CEST 2012


Workaround commandline msys issues, also allows more flexibility.
Should fix ffprobe tests on mingw/MSVC.
---
 tests/Makefile    |    6 ++----
 tests/test.ffmeta |    4 ++++
 2 files changed, 6 insertions(+), 4 deletions(-)
 create mode 100644 tests/test.ffmeta

diff --git a/tests/Makefile b/tests/Makefile
index 5f9be8a..1f39930 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -33,10 +33,8 @@ tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
 tests/data/ffprobe-test.nut: ffmpeg$(HOSTEXESUF) | tests/data
 	$(M)./$< \
         -f lavfi -i "aevalsrc=sin(400*PI*2*t)::d=0.125[out0]; testsrc=d=0.125[out1]; testsrc=s=100x100:d=0.125[out2]" \
-        -flags +bitexact -map 0:0 -map 0:1 -map 0:2 \
-        -metadata "title=ffprobe test file" \
-        -metadata "comment='A comment wih CSV, XML & JSON special chars': <tag value=\"x\">" \
-        -metadata "comment2=I ♥ Üñîçød€" \
+        -f ffmetadata -i tests/test.ffmeta \
+        -flags +bitexact -map 0:0 -map 0:1 -map 0:2 -map_metadata 1 \
         -vcodec rawvideo -acodec pcm_s16le \
         -y $@ 2>/dev/null
 
diff --git a/tests/test.ffmeta b/tests/test.ffmeta
new file mode 100644
index 0000000..18a260d
--- /dev/null
+++ b/tests/test.ffmeta
@@ -0,0 +1,4 @@
+;FFMETADATA1
+title=ffprobe test file
+comment='A comment wih CSV, XML & JSON special chars': <tag value=\"x\">
+comment2=I ♥ Üñîçød€
-- 
1.7.5.4



More information about the ffmpeg-devel mailing list