从相机录制视频、叠加位图、添加音频、保存到设备,所有这些都在 as3/AIR mobile 中进行
我的任务是在移动设备上录制来自摄像头的实时视频流,然后叠加随时间变化的位图,并将音频 mp3 轨道添加到视频文件中,然后将其保存到设备上的某个位置(例如相机胶卷)。
我看到一些有用的帖子,主要是这个:AS3 Flash/AIR 使用网络摄像头录制视频并保存
但显然,有些人在桌面上遇到了应用程序冻结的情况。我只能想象在移动设备上情况会更糟...
另外,如何将视频信息与单独的音频 mp3 一起添加到一个文件中?
有人完成过这样的事情吗?
I am tasked with recording a live video stream from the camera on a mobile device, then overlaying bitmaps that change over time, and adding an audio mp3 track to the video file, and then saving it to somewhere on the device like the Camera roll.
I saw a few posts that were helpful, mostly this one: AS3 Flash/AIR recording video with webcam and save it
But apparently, some have experienced app freezes on desktops. I can only imagine that on a mobile device it would be worse...
Also, how can I add the video info together with a separate audio mp3 into one file?
Has anyone accomplished something like this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更新,我的视频可以工作了。有点。有时我仍然会收到此错误。即使是短视频。
有时效果很好。但至少我能够从组件中录制 FLV。我还没有完成音频添加。
要运行此代码,您需要在此处找到 FLVRecorder: http://www.joristimmerman.be/wordpress/2008/12/18/flvrecorder-record-to-flv-using-air/
Update, I got the video working. Kinda. I still get this error sometimes. Even with short videos.
Sometimes it works fine. But at least I'm able to record FLVs from components. I haven't done the audio addition yet.
To run this code, you'll need the FLVRecorder found here: http://www.joristimmerman.be/wordpress/2008/12/18/flvrecorder-record-to-flv-using-air/