[Ffmpeg-devel] dsputil arm patch

Tao Huang ulysses.huang
Tue Apr 24 16:59:11 CEST 2007


M?ns Rullg?rd ??:
>> When I benchmark this video with mplayer, it use 30s. I don't know why
>> ffmpeg use so long time. But, the delta is more important.
>>     
>
> Well, did you specify the correct CPU?  If you don't, the ARMv6
> optimized IDCT isn't used.
>
>   
My patch is for some put*, NOT IDCT. Which version IDCT isn't important.

Now I reconfigure ffmpeg with extra-cflags -mcpu=arm1136jf-s -mfpu=vfp 
-mfloat-abi=softfp
configure output have:
ARCH                      armv4l (generic)
big-endian                no
ARMv5TE enabled           yes
ARMv6 enabled             yes
IWMMXT enabled            no

The ffmpeg output like this:

FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --prefix=/usr --extra-cflags=-mcpu=arm1136jf-s 
-mfpu=vfp -mfloat-abi=softfp
  libavutil version: 49.4.0
  libavcodec version: 51.40.4
  libavformat version: 51.12.1
  built on Apr 24 2007 22:03:50, gcc: 3.4.4 (release) (CodeSourcery ARM 
2005q3-2)
Input #0, avi, from 'Nokia_N800.avi':
  Duration: 00:01:41.9, start: 0.000000, bitrate: 743 kb/s
  Stream #0.0: Video: mpeg4, yuv420p, 400x240, 25.00 fps(r)
  Stream #0.1: Audio: mp3, 48000 Hz, stereo, 128 kb/s
Output #0, rawvideo, to '/dev/null':
  Stream #0.0: Video: rawvideo, yuv420p, 400x240, q=2-31, 200 kb/s, 
25.00 fps(c)
Stream mapping:
  Stream #0.0 -> #0.0

The result:
./ffmpeg -benchmark -i Nokia_N800.avi -an -f rawvideo -y /dev/null 
2>/dev/null
bench: utime=38.148s

./ffmpeg.orig -benchmark -i Nokia_N800.avi -an -f rawvideo -y /dev/null 
2>/dev/null
bench: utime=40.352s

All files are in RAM (tmpfs).

I rebuild the patch and send again.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dsputil_arm.patch
Type: text/x-patch
Size: 4498 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070424/c84632a5/attachment.bin>



More information about the ffmpeg-devel mailing list