Opened 3 years ago

Closed 3 years ago

#5171 closed enhancement (invalid)

Performance degradation of FFmpeg on POWER

Reported by: Priya Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: libx264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Performance of FFmpeg using x264 codec on ppc64le is 30%-50% slower than x86. This is in contrast to what is expected on Power8/LE. The x264 and other codecs needs to be further optimized for Power8/LE as there is signification performance degradation on POWER. Attached are the test results for FFmpeg+x264 codec.

FFmpeg was compiled as:
./configure --enable-gpl --enable-memory-poisoning --enable-avresample --enable-libx264 --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib

x264 codec is compiled as:
./configure --enable-shared --enable-static --enable-debug

Run time options used:
perf stat -o perf.log ffmpeg -i VanillaCakeRecipeDemonstration?-Joyofbaking.com.mp4 -vcodec libx264 -acodec aac -strict experimental -threads 0 -level 31 -r 30000/1001 -b 1900k -pix_fmt yuv420p -tune ssim -profile high -vf setdar=16:9,setsar=1:1 -x264opts stats=x264_00_2pass.log:bframes=4:b-adapt=0:b-bias=20:b-pyramid=normal:ref=1:partitions=all:direct=auto:me=umh:merange=12:subme=9:trellis=0:no-fast-pskip=1:no-dct-decimate=1:fps=29.97 -f mp4 -y /dev/null

Attachments (3)

status_enabled_ppc.txt (3.0 KB) - added by Priya 3 years ago.
Perf report on Power
status_enabled_x86.txt (1.2 KB) - added by Priya 3 years ago.
Perf report on x86
Machine Configuration.txt (679 bytes) - added by Priya 3 years ago.

Download all attachments as: .zip

Change History (5)

Changed 3 years ago by Priya

Perf report on Power

Changed 3 years ago by Priya

Perf report on x86

Changed 3 years ago by Priya

comment:1 Changed 3 years ago by heleppkes

This is not the tracker for x264, please report any performance concerns to them.

Note that much optimization comes from hand-written x86 ASM, which required years of development, so the same level of performance cannot be expected from a somewhat obscure CPU instruction set.

comment:2 Changed 3 years ago by cehoyos

  • Component changed from ffmpeg to undetermined
  • Keywords libx264 added; POWER performance x264 removed
  • Priority changed from important to normal
  • Resolution set to invalid
  • Status changed from new to closed

As said, this is not the x264 bug (or feature request) tracker.

Note: See TracTickets for help on using tickets.