iOSVideoHardwareEncodeFFMPEGDecode The hardware encode is based on GDCL Source Code's work. http://www.gdcl.co.uk/2013/02/20/iOS-Video-Encoding.html This sample shows how to package h264 raw data with sps & pps info for ffmpeg decode.