ios - AVFoundation Vs VideoToolbox - Hardware Encoding -
so more theoretical question/discussion, haven't been able come clear answer reading other posts , sources web. seems there lot of options:
brad larson's comment avfoundation
if want hardware decoding on ios h.264 (mov) files , can use avfoundation , avassets, or should use videotoolbox (or other frameworks). when using these, how can profile/benchmark hardware performance when running project? - looking @ cpu usage in "debug navigator" in xcode?
in short, i'm asking if avfoundation & avassets perform hardware encoding or not? sufficient, , how benchmark actual performance?
thanks!
if want decode local file on ios device - i'd use avfoundation.
if want decode network stream (rtp or rtmp) use video toolbox - since have unpack video stream yourself.
with avfoundation or video toolbox hardware decoding.
Comments
Post a Comment