Using ffmpeg to display video on iPhone

Can anybody help me?

I have this API

ret = avRecvFrameData(avIndex, buf, VIDEO_BUF_SIZE, (char *)&frameInfo, sizeof(FRAMEINFO_t), &frmNo); 

the buffer is filled with content from the video stream whose codec is H264 . The framework contains relevant information. If I want to display on iPhone, how to do it with ffmpeg?

greatly appreciated with your help.

+1
ios iphone ffmpeg video-streaming
source share
1 answer

You should not use ffmpeg on iOS for a number of reasons. Firstly, there are real license issues that include ffmpeg in the legal gray area when it comes to iOS apps. Secondly, performance will be very poor. Thirdly, iOS already includes APIs that have access to h.264 hardware on the device. You can find my example Xcode project in AVDecodeEncode , this is an example of using my library to decode with h.264 and then encrypt back to h.264.

+1
source share

All Articles