开发者

How to encode and stream a video from an iPhone

开发者 https://www.devze.com 2023-01-04 18:47 出处:网络
I\'m capturing CGImageRef frames using UIGetScreenImage() on an iPhone 3GS 3.1.3 and want to stream this over the interwebs in any appropriate, well known format.

I'm capturing CGImageRef frames using UIGetScreenImage() on an iPhone 3GS 3.1.3 and want to stream this over the interwebs in any appropriate, well known format.

What video codec libraries are available that would allow me to encode the raw pixel data into a video? (i'm not too familiar wit开发者_高级运维h video codecs, but am familiar with network programming to actually send the data out)


I wouldn't recommend encoding on the client. Have the video available on the server already encoded and use MPMoviePlayerController to present it:

good tutorial on how to stream video:

http://buildmobilesoftware.com/2010/08/09/how-to-stream-videos-on-the-iphone-or-ipad/

0

精彩评论

暂无评论...
验证码 换一张
取 消