I've been working on the gstreamer applemedia encoder plugins and improved the VideoToolbox based video encoding. Running a gstreamer pipeline like:github
$ gst-launch-1.0 filesrc location=source.avi ! decodebin ! vtenc_h264 ! h264parse ! qtmux name=mux ! filesink location=sink.mp4
I was expecting to see a very low CPU usage when encoding h264 video using VTCompressionSession
on Mac OS systems. However, on the systems I've tested: Mid 2009 Macbook Pro with GeForce 9600M and Mid 2011 Mac mini with Radeon HD 6630M the encoding still consumes between 80% and 130% CPU - which indicates it's not hardware accelerated.session
On which hardware configurations, or given which compression parameters (for example for which kVTCompressionPropertyKey_ProfileLevel
) does VTCompressionSession
use hardware accelerated encoding?app