• zhilizhao's avatar
    ffmpeg_videotoolbox: skip memory copy if hwaccel_output_format match · cf1746d7
    zhilizhao authored
    Simple test results:
    
    Command:
    ./ffmpeg -y -hwaccel videotoolbox -hwaccel_output_format videotoolbox_vld \
      -i test.mp4 -an -c:v h264_videotoolbox -benchmark out.mp4
    
    Before:
    frame= 1221 fps= 66 q=-0.0 Lsize=    3144kB time=00:00:20.33 bitrate=1266.6kbits/s dup=4 drop=0 speed= 1.1x
    bench: utime=2.714s stime=1.218s rtime=18.574s
    
    After:
    frame= 1221 fps=137 q=-0.0 Lsize=    3144kB time=00:00:20.33 bitrate=1266.4kbits/s dup=4 drop=0 speed=2.28x
    bench: utime=1.450s stime=1.440s rtime=8.924s
    
    It has limited usecase since there is no video filter support, so
    a log message is added to notify the user.
    Reviewed-by: 's avatarSteven Liu <liuqi05@kuaishou.com>
    cf1746d7
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...