Re: making a video from still frames that don't change that often plus audio
Re: making a video from still frames that don't change that often plus audio
- Subject: Re: making a video from still frames that don't change that often plus audio
- From: Saagar Jha <email@hidden>
- Date: Sun, 15 Jan 2017 09:29:09 -0800
The 8 minute limitation is for the time the user’s choice is remembered for the authorization prompt, is it not? Is there a limit for the actual recording as well?
Saagar Jha
> On Jan 15, 2017, at 9:22 AM, email@hidden wrote:
>
> I have an iOS presentation app (https://itunes.apple.com/app/redraw/id1114820588?mt=8) that I currently make videos from by AirPlaying it to my Mac and using Screenflow on the Mac to show the iPad screen and record my audio from a microphone (and then edit). I'd like to build this functionality into my app directly. I see ReplayKit which would probably work (haven't checked if it can record the external screen my app makes) but the 8 minute limitation is probably a deal breaker. If that were 20 minutes, I would probably use it.
>
> Basically what I want to do is to have the app record some audio (while the user is interacting with the app) and make a video that includes this audio and a series of sporadically updated images. For example, I have an image that is being shown on the screen of the app and want that image to be in the video until the user presses a button to change the image and then I want that image to be the image that is shown in the video (as the audio continues). Most of the time the same image might be shown for 10 or so seconds at a time, but occasionally the image might be updated at 30 fps.
>
> So basically I want to make a video from this audio and periodically I will update the image that should be displayed and that frame should continue to be shown in the movie until I tell it to use a new image for the subsequent frames.
>
> It looks like AVFoundation and specifically AVAssetWriter may be what I need? Is that the correct approach?
>
> I found this that sort of looks like what I want:
>
> http://stackoverflow.com/questions/3741323/how-do-i-export-uiimage-array-as-a-movie
>
> Although in my case I don't have all the images saved ahead of time (and don't want to save the images in memory while recording the audio because I would likely run out of memory). I just want to write the move to the flash storage as the audio is recorded.
>
> My app is written in Swift although I wrote Objective-C code for 6 or so years so pointers to example code written in Objective-C are fine also.
>
> Thanks,
> Dave Reed
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden