Am working Video Processing in IOS(iphone/ipod/ipad) Using Objective c. i am using AVFoundation Framework to Capture Video . i want to Encode/decode those video frame using ffmpeg-libx264. i have compiled ffmpeg-x264 lib for ios. i got kCVPixelFormatType_32BGRA from AVFoundation.
my problem is
1.How to convert kCVPixelFormatType_32BGRA
to AVFrame
for enode using avcodec_encode_video?
2.How to convert AVFrame to kCVPixelFormatType_32BGRA @ decode side from avcodec_decode_video2?
Please help me to start above process or give path for working tutorial .Thanks in advance.