如何在iPhone上录制像Talking Tom Cat这样的屏幕视频? [英] How to record video of screen like Talking Tom Cat on iPhone?

查看:187
本文介绍了如何在iPhone上录制像Talking Tom Cat这样的屏幕视频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道AVFoundation中是否有任何公共API或任何其他可用于记录屏幕的公共API,如Talking Tom Cat。我查看了AVFoundation和CoreVideo框架,但无法从头文件中找到任何内容。

I want to know if there is any public API in AVFoundation or any other framework which can be used to record screen like Talking Tom Cat does. I looked into AVFoundation and CoreVideo frameworks but could not find anything from the header files.

如果有人知道如何使用iPhone SDK记录屏幕视频,请告诉我。

If anyone knows how to record screen video prgramatically using iPhone SDK, let me know.

推荐答案

您可以按以下步骤执行此操作:

you can do it in the following steps:


  1. 捕获屏幕

  2. 将该帧放入队列中

  3. 用avassertwriter写一下

  4. 并导出视频

  1. capture screen
  2. take that frame in a queue
  3. write it with avassertwriter
  4. and export the video

在wwdc2010示例代码中有一个用于理解这些内容的示例应用程序。

there is a sample application for understanding these things in the wwdc2010 sample code.

希望这会有所帮助。(示例应用程序名称:aveditdemo )

hope this helps.(sample app name : aveditdemo)

这篇关于如何在iPhone上录制像Talking Tom Cat这样的屏幕视频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆