How to capture screen video in iphone? - ios

I want to capture video from screen.
I am unable to capture video from avplayer layer. But, can record from other viewes.
Do I need to search code for OpenGLES?

You can have look at the blog.
I think it covers what you want.
Actually this blog does not use AVPlayer, but rather it uses AVAssetWriter.
Look into the comments there you can get hint using AVPlayer.
Or you can have this project, which is for recording of screen.

These two libraries are the best possible options that you can use to record video of your application screen.
https://github.com/wess/Glimpse
https://everyplay.com/about

Yes I'm working with the same job it comes black screen because of high frameDuration of video .But I've solved this
Don't add AVPlayer to that view. Add to another view and note the time at play and then crop the video of time that has played and after all merge with the recorded video.
I've stated it shortly but I hope you will understand.

You need to work on OpenGLES to render video layer, otherwise it will look black

I would suggest using the GPUImage framework, for a number of reasons:
It IS OpenGL but is wrapped in Objective-C, so there's no need to learn OpenGL to implement it
It is 100% App Store vetted - I have an app in the store that uses it now, as do dozens of others
There is a class named GPUImageMovie that wraps AVAssetReader for playback and another named GPUImageMovieWriter that allows you to write textures to file - these can be the same file, or separate.
There are quite a few examples available within the repository that should be pretty easy to understand...
Source Code / Git Repo
* https://github.com/BradLarson/GPUImage
Blog
* http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
Hope that helps !

This is good for you testing you achieve that goal through this framework
https://github.com/gabriel/CaptureRecord for screen capture. But, it can be used to record simulator only. You can't submit app to appstore using this code as it use private api.

Related

How to add trick play to custom iOS video player build on top of AVPlayer to play .m3u8 files?

Goal:
To add youtube like preview feature when user seeks manually using the player seek bar.
From what I understand so far is that I will have to add "I-Frame only playlist" to my stream to enable trick play but I am not able to figure out how I will be using this to show the preview view on the video player?
Other solutions I considered:
AVAssetImageGenerator: It does not work on streams. Explained here.
This says if my .m3u8 file contains "I-Frame only playlist", AVAssetImageGenerator will start returning the snapshot, but even if it does, generating thumbnails of a complete 1 hour video upfront is just not optimal.
AVPlayerItemVideoOutput This also seems like a very brut force way to approach the problem as I need thumbnails of almost complete video.
Current player implementation:
I have added AVPlayerLayer as a sublayer to my view controller's view and added custom controls on top of it.
I am thinking of using something like this https://github.com/pbs/iframe-playlist-generator to add the I-Frame playlist.
PS: I am new to this, so if I have made any wrong assumption, please let me know.
Also, any links or references to some reading material I can use to dive in deeper are appreciated. Thanks.

Trying to create an Xcode Objective-C function that records a video capture of my UIView contents and saves to phone

I'm trying to create an Xcode Objective-C function that can be called from a button tap, that will record the contents of a UIView and its subviews (or a fixed section of the screen e.g. 320x320 in the center) and then allow the user to save the video to their iPhone camera roll. I also want to include the audio that is being played by the app at the time of the recording e.g background music and sound effects.
I'm having trouble finding any info on this as their seems to be a lot of people trying to record their running app for external purposes like the app store video preview. I need my video captured within the app, to be used as an app feature.
Does anyone know if this can be done or know a website or tutorial where I can learn what's needed? Thanks
I know this post is two years old, but for anybody who comes along who might need to record their iOS app's screens and save them to the phone's camera roll or even a specific URL, take a look at https://github.com/alskipp/ASScreenRecorder
I've tried it and it works! The frames per second aren't 60 so I don't know how well it would work if you were trying to record an action game, but it's still pretty awesome.
You can't do that with just one function, check that project:
https://github.com/coolstar/RecordMyScreen

Apple Watch Video Control

Is there any control or way we can play video in Apple Watch app. I can see Image, Button, Label etc.. controls but couldn't find a way to play a video.
Any help will be appreciated.
Thanks
There is no way to playback video on the Apple Watch currently. And I doubt there will be for some time (if ever) due to the very small screen size.
Since this is possible now, I am adding some reference URL so other developers can get an idea and possibility for this.
Watch OS 2 comes up with plenty of nice features and Audio and Video are part of this.

IOS - saving pictures to be replayed into one video

If anyone has used the app Flipagram, they take pictures that the user submits and then the pictures are replayed all in one video. I need help with how I go about doing that. I'm not to good with integrating camera use and If anyone knew how to help, i would appreciate it.
As suggested in comment you can convert image-list to videos.
Another solution can be :
If you can access those images, then you can use UIImageView and animate the series of images using animationImages method.
Along with this, you can also play audio using AVAudioPlayer if you need to play a sound.

iOS - Embed video in app with my app User Interface

I am working on an app that can play some short animated clips. At this point my only option is to embed animated frames. It works just fine. But I am just wondering if there's another way to simply embed the animated files directly as a movie clip in order to avoid importing tons of frames. Perhaps it'd be better for image compression.
In that regards I am aware of these alternatives: the MediaPlayer Framework, MPMoviePlayerController presented here http://mobile.tutsplus.com/tutorials/iphone/mediaplayer-framework_mpmovieplayercontroller_ios4/ and also some other techniques showed here http://www.raywenderlich.com/13418/how-to-play-record-edit-videos-in-ios
However this would mean using Apple's UI. I would like instead to create a more integrated experience that is using my own app UI.
Is there a library for that?
Take Look at AVPlayer Class Reference
https://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVPlayer_Class/Reference/Reference.html.
and AVPlayerLayer Class Reference
http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVPlayerLayer_Class/Reference/Reference.html
It has the ability to do what you need. You can aslo animate the layer just like other CALayers

Resources