[FFmpeg-devel] [PATCH 4/4] avcodec: loongson optimized h264pred with mmi

周晓勇 zhouxiaoyong at loongson.cn
Sat Jul 4 06:14:51 CEST 2015


i will offer a download source of Fedora21 OS next Monday.
i will run yum-builddep ffmpeg-xxx.src.rpm for preparing devel environment.
 what else do you need to install, because it maybe slow for downloading other packages abroad.
the new FC21 build with mips64el N64 API and mips64r2(-march=loongson3a) isa, and enabled ARCH_MIPS64 after ffmpeg configure.
the FC19-O32 was slow, so aborted.

here i contrast the performance between libav and ffmpeg
i run test on my x86_64 notebook(Intel(R) Core(TM) i3-3217U CPU @ 1.80GHz):

ffmpeg version 2.5.7-0ubuntu0.15.04.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu13)
avconv version 11.2-6:11.2-1, Copyright (c) 2000-2014 the Libav developers
  built on Jan 18 2015 05:12:33 with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu2)

1> single thread
---------------------------------------------------------------
time ffmpeg -threads 1  -i 1920x1080.mp4 -cpuflags 0 -f rawvideo -an -vframes 4096 -y /dev/null

frame= 1253 fps= 38 q=0.0 Lsize= 3805988kB time=00:00:52.20 bitrate=597196.8kbits/s    
video:3805988kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

real	0m33.163s
user	0m33.092s
sys	0m0.056s

---------------------------------------------------------------
time avconv -threads 1  -i 1920x1080.mp4 -cpuflags 0 -f rawvideo -an -vframes 4096 -y /dev/null

frame= 1253 fps= 40 q=0.0 Lsize= 3805988kB time=52.17 bitrate=597673.8kbits/s    
video:3805988kB audio:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

real	0m31.154s
user	0m31.036s
sys	0m0.108s

2> multi-threads
---------------------------------------------------------------
time ffmpeg -threads 1  -i 1920x1080.mp4 -cpuflags 0 -f rawvideo -an -vframes 4096 -y /dev/null

frame= 1253 fps= 78 q=0.0 Lsize= 3805988kB time=00:00:52.20 bitrate=597196.8kbits/s    
video:3805988kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

real	0m16.157s
user	0m59.600s
sys	0m0.328s

---------------------------------------------------------------
time avconv -threads 1  -i 1920x1080.mp4 -cpuflags 0 -f rawvideo -an -vframes 4096 -y /dev/null

frame= 1253 fps= 84 q=0.0 Lsize= 3805988kB time=52.17 bitrate=597673.8kbits/s    
video:3805988kB audio:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

real	0m15.005s
user	0m55.296s
sys	0m0.240s

libav is faster than ffmpeg? 
the test of other video has same conclusion.


More information about the ffmpeg-devel mailing list