I want to develop an app for mac which can record the current screen.But now I have trouble on not knowing how to encode .yuv file I got from CGImage.Somebody told me to encode with x264 or ffmpeg,I am not sure if these are the right choice for OS X development.If anyone has any experience in doing this,I really appreciate that you could tell me.Thanks.
x264 is a great library and I highly recommend it. On mac you also have the option to use the built in encoder. Part of AVFramwork I believe. It should uses less power and CPU then x264, but produce slightly larger files.