linglemon / lxfavfoundation Goto Github PK
View Code? Open in Web Editor NEW2021已更新最新iOS API。这是一个模仿iOS微信拍照,录像,保存照片或视频到自己本地自定义app相册里面的demo,具有快速简易接入项目的接口。并通过 AVAssetWriter 实现高分辨率录制视频,生成低体积的视频文件
2021已更新最新iOS API。这是一个模仿iOS微信拍照,录像,保存照片或视频到自己本地自定义app相册里面的demo,具有快速简易接入项目的接口。并通过 AVAssetWriter 实现高分辨率录制视频,生成低体积的视频文件
学习了,现在很多都要求加入暂停功能,可以实现么?
当按下录制按钮的时候,录制时间大于1秒低于4秒左右的时候,录制会无效。
if (scale < self.videoInput.device.activeFormat.videoMaxZoomFactor && scale>1)
[self changeDeviceProperty:^(AVCaptureDevice *captureDevice) {
[captureDevice rampToVideoZoomFactor:scale withRate:10];
}];
我添加了这句 也无效
能解决一下这个问题吗?我在项目上也遇到这个问题,一直没有办法解决
@constant AVVideoExpectedSourceFrameRateKey
@abstract
Indicates the expected source frame rate, if known.
@discussion
The frame rate is measured in frames per second. This is not used to control the frame rate; it is provided as a hint to the video encoder so that it can set up internal configuration before compression begins. The actual frame rate will depend on frame durations and may vary. This should be set if an AutoLevel AVVideoProfileLevelKey is used, or if the source content has a high frame rate (higher than 30 fps). The encoder might have to drop frames to satisfy bit stream requirements if this key is not specified.
*/
AVVideoExpectedSourceFrameRateKey这个key无法控制帧数
[self.assetWriter startWriting]; 提示 [AVAssetWriter startWriting] Cannot call method when status is 1。
感谢大神分享,想问一下这个最低支持什么系统版本呀
非常感谢大神的分享,我发现把XFAVFoundation和XFPhotoLibraryManager两个文件拖到自己的项目里可以成功调用相机,也可以正常拍摄视频和照片,但是如果我在项目中调用UIImagePickerController系统相册后,再次调用XFCameraController拍照时会崩溃,崩溃定位到takePhotos方法,根据设备输出获得连接时,captureConnection为空值, //根据设备输出获得连接
AVCaptureConnection *captureConnection = [self.captureStillImageOutput connectionWithMediaType:AVMediaTypeVideo];
请问大神,这种情况怎么办啊?
只有一个video可以点击,然后就进入了摄像功能,请问录屏在哪
录制小视频的时候清晰度还是可以的,但是存入相册后清晰度就变得很差,播放模糊
框架里虽然后自定义视频文件夹的属性,但是没用上。我改了一下使用自定义路径,也是在document文件夹里,多了一层文件夹而已,视频就没法录了。
报错原因:
-[AVAssetWriterInput appendSampleBuffer:] Cannot append sample buffer: Must start a session (using -[AVAssetWriter startSessionAtSourceTime:) first
(null)
偶发 无法复现出来~
如果录制时间不是很长显示不出 保存和取消按钮
如果授权开始不同意崩了,后来在设置中给了授权还是会出问题崩溃
您好,拍摄视屏和预览视屏我看您设置的填充模式都是AVLayerVideoGravityResizeAspect,在使用iPhone X拍摄(拍摄没有全屏)之后,播放却成了全屏,并且视屏被切割了(相当于AVLayerVideoGravityResizeAspectFill)。不知道是什么问题。
Only run on the main thread!
请问可以设置只拍照或者只是录制视频吗?
Undefined symbols for architecture arm64:
"OBJC_CLASS$_CMMotionManager", referenced from:
objc-class-ref in XFCameraController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决了我困惑很久的问题
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.