alskipp / asscreenrecorder Goto Github PK
View Code? Open in Web Editor NEWRecord iOS screen contents to .mp4 video file
License: MIT License
Record iOS screen contents to .mp4 video file
License: MIT License
Hello,
I have one uiview which is added in center. Now I want to record only that UIView.
I am trying to change below code in ASScreenRecorder.m .
[window drawViewHierarchyInRect:CGRectMake(0, 0, _viewSize.width, _viewSize.height) afterScreenUpdates:NO];
But it is giving me strange results.
How to achieve this ?
I am trying to record full screen video playing on device. But I am getting black video with full screen. Please suggest.
Hello, so the pause/resume functionality was implemented and I was thinking that you can use it like if the app goes in the background automatically pause the recording, when it comes back, if will come back, to resume. But on resume I'm receiving the "Warning: Unable to write buffer to video".
Is is possible to implement something like this?
I experienced a problem on iOS9, this code does not work on iOS9. It only record black video! Does anyone has similar problem? I changed nothing on my codes, it works on iOS8 but not on the newest version.
I've been trying to solve the video screen capture for a while, and this is by far the best implementation I've seen. It's really great!
Unfortunately it suffers from the same issues I've seen with every renderInContext/drawViewHierarchy implementation I've seen, which is that it won't capture video.
It know it's possible to get frames from AVAssetImageGenerator, so I was wondering if there was some way to feed that into the blank views.
HI,
This is a great tool to capture the screen video. But I have to capture screen with the audio from device.
Is it possible to include the sound also.
Or please help me to do this.
Hello,
First of all, this is not an issue, but rather a feature that I would like to have.
Second, thanks so much for this great recorder, works so nice.
I have noticed that the UIAlertView is not shown in the final recording.
This is my code :
(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UIAlertView *messageAlert = [[UIAlertView alloc]
initWithTitle:@"Row Selected" message:[tableData objectAtIndex:indexPath.row] delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
// Display the Hello World Message
[messageAlert show];
// Checked the selected row
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
cell.accessoryType = UITableViewCellAccessoryCheckmark;
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
I can see the selection of the cell, but not the alert.
Also another thing. Is it possible to display an overlay over the keyboard that will be visible only on the recording.
I want to accomplish something like a security thing for when a user inputs his credentials, the keyboard and maybe the textfields should be covered, but only in the video.
I've seen that lookback.io does something similar but I don't really know how.
Thank you !
I am using ASScreenRecorder in my app. My view controller has 2 views both playing videos - just like video chat in skype application.
When I try to record my screen - screen is recorded with only one video view the other one is missing in the video why it is happening ??
trying capture screen with camera.previewlayer
After once record,Twice will be crash.
App Store reject this? yes or no..? can i use it?
can i use it with swift?
is it possible to record only the contents of a subview?
why we have to record half size for retina ipads? if i want record a clear video! what should i do!
start recording cpu very high on iphone 7plus
Thanks for sharing this wonderful code Alan ,
i'm having issue with iOS - 8 orientation while the recording is ongoing , it record in same orientation though device orientation has change
If any one has solved this problem please suggest a way to solve this problem
Thanks
I have implemented
is there any way to save audio with video file?
I try to run this application in background mode. it give me black screen in video. could you pleasse help me how can use this code in background mode also.
I want to record only subview not full screen.
If I change file to a video stream, and send it to other device,
then how to change the FPS of screenRecorder?
thanks.
Hi,
first of all, thanks for the code, it is really helpful.
I am getting a EXC_BAD_ACCESS error in this line:
BOOL success = [_avAdaptor appendPixelBuffer:pixelBuffer withPresentationTime:time];
inside writeVideoFrame method.
Do you have any clue about what would be wrong?
Thank you very much!
This only records the screen while within the App.
If you tap home it stops recording and the video and it never shows up in the camera roll.
How can I manage the fps?
Thank you.
Hi!
I fixed the build errors. There were two lines updated only. Here is my fork with the fix
https://github.com/kuzomenskyi/ASScreenRecorder
Regards,
iOS dev
I meet two crash messages when i use ASScreenRecorder
i can provide the messages
1 *** -[AVAssetWriterInputPixelBufferAdaptor appendPixelBuffer:withPresentationTime:] Must start a session (using -[AVAssetWriter startSessionAtSourceTime:) before appending pixel buffers (__35-[ASScreenRecorder writeVideoFrame]_block_invoke_2 + 132)
2*** -[AVAssetWriterInputPixelBufferAdaptor appendPixelBuffer:withPresentationTime:] Must start a session (using -[AVAssetWriter startSessionAtSourceTime:) before appending pixel buffers (_mh_execute_header + 300096)
3*** Collection <CALayerArray: 0x1d48424c0> was mutated while being enumerated. (__35-[ASScreenRecorder writeVideoFrame]_block_invoke + 904)
4*** Collection <CALayerArray: 0x1d025e510> was mutated while being enumerated. (_mh_execute_header + 299708)
Hi, I am successfully recording my screen using ASScreenRecorder.
But how can I include sound in the video file ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.