[FFmpeg-devel] fate-ffprobe tests

jamal jamrial at gmail.com
Sun Oct 7 02:33:29 CEST 2012


On 06/10/12 7:46 PM, Michael Niedermayer wrote:
> These errors are because ffmpeg is compiled for the target but
> executed on the host, you can for example reproduce it with qemu
> and compile for something like arm:
> 
> make fate-ffprobe V=2
> ./ffmpeg \
>         -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]" \
>         -f ffmetadata -i /home/michael/ffmpeg/tests/test.ffmeta \
>         -flags +bitexact -map 0:0 -map 0:1 -map 0:2 -map_metadata 1 \
>         -vcodec rawvideo -acodec pcm_s16le \
>         -y tests/data/ffprobe-test.nut 2>/dev/null
> make: *** [tests/data/ffprobe-test.nut] Error 255
> 
> ./ffmpeg
> /lib/ld-linux.so.3: No such file or directory
> 
> file ./ffmpeg
> ./ffmpeg: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.31, BuildID[sha1]=0x958a7f37f328d9ea66f3b52e7986ed7e245815c4, stripped
> 
> a make fate-vsynth1-ffv1 V=2
> executes ffmpeg like this:
> /home/michael/qemu/arm-linux-user/qemu-arm -R 128M -L /usr/arm-linux-gnueabi/ /home/michael/ffmpeg/arm/ffmpeg ...
> 
> the extra stuff to execute it comes from --target-exec

This should solve it, then:

diff --git a/tests/Makefile b/tests/Makefile
index 96d53c0..4db9449 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -31,7 +31,7 @@ tests/data/vsynth2.yuv: tests/rotozoom$(HOSTEXESUF) | tests/data
 	$(M)$< $(SRC_PATH)/tests/lena.pnm $@
 
 tests/data/ffprobe-test.nut: ffmpeg$(EXESUF) | tests/data
-	$(M)./$< \
+	$(M)$(TARGET_EXEC) ./$< \
         -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]" \
         -f ffmetadata -i $(SRC_PATH)/tests/test.ffmeta \
         -flags +bitexact -map 0:0 -map 0:1 -map 0:2 -map_metadata 1 \

Regards.


More information about the ffmpeg-devel mailing list