JosephT
JosephT

Reputation: 865

using ffmpeg to display video on iPhone

anyone can help me on this ?

I have this API

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

the buffer will fill with the content from the video thread the codec is H264 frameInfo contains the related information. If I want to display on iPhone, how to do it with ffmpeg?

much appreciated with your help .

Upvotes: 1

Views: 5083

Answers (1)

MoDJ
MoDJ

Reputation: 4425

You should not be using ffmpeg in an iOS for a number of reasons. First, there are real license issues that put including ffmpeg in a legal grey area when it comes to iOS apps. Second, performance will be very very poor. Third, iOS already includes APIs that have access to the h.264 hardware on the device. You can find my example Xcode project at AVDecodeEncode, this is an example of using my library to decode from h.264 and then encode back to h.264.

Upvotes: 2

Related Questions