using ffmpeg to display video on iPhone

前端 未结 1 1408
慢半拍i
慢半拍i 2021-01-16 15:55

anyone can help me on this ?

I have this API

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


        
相关标签:
1条回答
  • 2021-01-16 16:43

    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.

    0 讨论(0)
提交回复
热议问题