pbjvision

Video not always exported to Camera Roll: NSFileManager's removeItemAtPath non-blocking?

孤街浪徒 提交于 2019-12-24 03:44:14
问题 After reading several tutorials like this and looking at other code exporting videos, we still can't resolve an issue. Sometimes a new video gets exported to the Camera Roll, and sometimes it doesn't. We can't even reproduce the problem consistently. The only issue we can imagine is if NSFileManager.defaultManager().removeItemAtPath is not a blocking call, but no documentation suggests it's asynchronous, so we assume it's not the case. Each time, the "Saved video" println inside the

Swift: video records at one size but renders at wrong size

雨燕双飞 提交于 2019-11-27 09:26:15
The goal is to capture full screen video on a device with Swift. In the code below, video capture appears to happen at full screen (while recording the camera preview uses the full screen), but the rendering of the video happens at a different resolution. For a 5S specifically, it appears like capture happens at 320x568 but rendering occurs at 320x480 . How can you capture and render full screen video? Code for video capture: private func initPBJVision() { // Store PBJVision in var for convenience let vision = PBJVision.sharedInstance() // Configure PBJVision vision.delegate = self vision

Avoiding blurriness at start & end of video (even after using setPreferredVideoStabilizationMode:AVCaptureVideoStabilizationModeAuto)?

好久不见. 提交于 2019-11-26 23:14:23
We capture video on iOS while using setPreferredVideoStabilizationMode:AVCaptureVideoStabilizationModeAuto , but the video still sometimes comes out blurry at the start and at the end (fine in the middle, though), which is very problematic because we grab the first frame as a still image (in order to enable video & photo capabilities without switching camera modes). Placing the device flat on a desk removes all blurriness, so the whole video is sharp throughout. This suggests it has something to do with video stabilization, but is there another property to set? Does locking the focus mode

Swift: video records at one size but renders at wrong size

荒凉一梦 提交于 2019-11-26 14:44:44
问题 The goal is to capture full screen video on a device with Swift. In the code below, video capture appears to happen at full screen (while recording the camera preview uses the full screen), but the rendering of the video happens at a different resolution. For a 5S specifically, it appears like capture happens at 320x568 but rendering occurs at 320x480 . How can you capture and render full screen video? Code for video capture: private func initPBJVision() { // Store PBJVision in var for

Avoiding blurriness at start & end of video (even after using setPreferredVideoStabilizationMode:AVCaptureVideoStabilizationModeAuto)?

旧城冷巷雨未停 提交于 2019-11-26 08:37:17
问题 We capture video on iOS while using setPreferredVideoStabilizationMode:AVCaptureVideoStabilizationModeAuto , but the video still sometimes comes out blurry at the start and at the end (fine in the middle, though), which is very problematic because we grab the first frame as a still image (in order to enable video & photo capabilities without switching camera modes). Placing the device flat on a desk removes all blurriness, so the whole video is sharp throughout. This suggests it has something