[FFmpeg-devel] fate-ffprobe tests

Michael Niedermayer michaelni at gmx.at
Sun Oct 7 02:44:03 CEST 2012


On Sat, Oct 06, 2012 at 09:33:29PM -0300, jamal wrote:
> 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 \
> 

works
applied

thanks!

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Avoid a single point of failure, be that a person or equipment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20121007/3918eed9/attachment.asc>


More information about the ffmpeg-devel mailing list