3 ms·
Unfortunately Apple still doesn't expose the APIs that we need and are forced to use tricks to get the encoded frames. We based our hardware encoder wrapper on
by chrisballinger 12y ago
Unfortunately Apple still doesn't expose the APIs that we need and are forced to use tricks to get the encoded frames. We based our hardware encoder wrapper on the technique described by Geraint Davies [1], but have modified and improved upon his method.
The main trick is to encode only video frames in your temporary .mp4 file, and to make an additional 1 frame .mp4 file for extracting the avcC record.
1. http://www.gdcl.co.uk/2013/02/20/iOS-Video-Encoding.html http://www.gdcl.co.uk/2013/02/20/iOS-Video-Encoding.html