PBJVision is an iOS camera engine library that allows easy integration of special capture features and camera customization in your iOS app.
Questions tagged [pbjvision]
18 questions
14
votes
2 answers
Swift: video records at one size but renders at wrong size
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…

Crashalot
- 33,605
- 61
- 269
- 439
12
votes
2 answers
Avoiding blurriness at start & end of video (even after using setPreferredVideoStabilizationMode:AVCaptureVideoStabilizationModeAuto)?
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…

Crashalot
- 33,605
- 61
- 269
- 439
3
votes
1 answer
Video No Longer Recording Audio (PBJVision/AVFoundation)
I have an app (enterprise, distributed OTA) that among other things records video clips. All of a sudden, we started getting video uploads that were missing audio, and this issue now seems to be totally reproducible. I've been using the PBJVision…

OverlappingElvis
- 621
- 6
- 20
2
votes
1 answer
Saving Video to Parse & Playback
So i'm using this custom class to record my video -- https://github.com/piemonte/PBJVision. I am attempting to record video in my iOS app and I can't seem to get the code correct to upload the file to my parse server. A few things:
In the PBJVision…

Michael Westbrooks II
- 145
- 1
- 2
- 10
2
votes
2 answers
Setting the frame for the preview layer results in incorrect frame settings
I'm having some trouble with PBJVision.
I integrated it into a Swift project and when I'm trying to set the frame of the preview layer, it results in an inconsistent frame:
I have this code:
var _previewLayer: AVCaptureVideoPreviewLayer =…

Dani Pralea
- 4,545
- 2
- 31
- 49
2
votes
0 answers
Rotating Video with PBJVision and AVFoundation
I'm currently developing an iOS app using PBJVision and am trying to save landscape videos in the correct orientation.
I use the writeVideoAtPathToSavedPhotosAlbum: completionBlock: method to save the photo to the device:
[self.library…

scientiffic
- 9,045
- 18
- 76
- 149
2
votes
1 answer
Video not always exported to Camera Roll: NSFileManager's removeItemAtPath non-blocking?
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…

Crashalot
- 33,605
- 61
- 269
- 439
1
vote
0 answers
PBJVision CMTimeMakeWithSeconds(1.094 seconds, timescale 24)
I am using PBJVision in a swift project I am having the following issue on ending the capture session.
CMTimeMakeWithSeconds(1.094 seconds, timescale 24): warning: error of -0.011 introduced due to very low timescale
This doesn't allow me to save…

Taha Muneeb
- 11
- 3
1
vote
1 answer
Video-capture vertical output iOS
I am trying to capture video with PBJVision.
I set up camera like this
vision.cameraMode = PBJCameraModeVideo;
vision.cameraOrientation = PBJCameraOrientationPortrait;
vision.outputFormat = PBJOutputFormatWidescreen;
And this produces output…

kerd
- 307
- 2
- 13
1
vote
1 answer
PBJVision switch to front facing camera
Hi I am trying to switch between the rear and front facing cameras if i start he session with the front facing camera it works but with the other way way round the AVCapturepreview layer is not visible and just presents a blank screen.

blueStar
- 293
- 4
- 16
0
votes
1 answer
Swift: Parse does not load a video from URL
I am trying to stream a video from backend to my device.I have a video url from backend but screen displays nothing. However, youtube url it works. Can anyone guide me why this video is not playing and how can it be played? I am using pod…

iron
- 715
- 1
- 6
- 15
0
votes
1 answer
Black video when using PBJVideoPlayer on iOS 10
I am using PBJVideoPlayer to show videos on my iOS app, using the following code:
_videoPlayerController = [[PBJVideoPlayerController alloc] init];
_videoPlayerController.delegate = self;
_videoPlayerController.view.frame = _playerView.bounds;
[self…

Ran
- 1,089
- 1
- 12
- 30
0
votes
1 answer
Apply PhotoEffectNoir filter to playback video using PBJVideoPlayer pod in swift
I am trying to add the black and white effect to a video in playback that uses the PBJVideoPlayer pod in swift. I have it set up so a user can tap a button in order to apply the filter. I suppose my issue comes because i am not sure what the analog…

Onicha21
- 141
- 2
- 11
0
votes
1 answer
PBJVISION - Error switching from cameraMode.Video to cameraMode.Photo
I am using 'PBJVISION' in my app for Instagram like touch-to-record feature. It works fine but when I try to switch from PBJCameraMode.Video to PBJCameraMode.Photo, I am receiving an error;
reason: -[AVCaptureStillImageOutput…
user984694
0
votes
0 answers
AVAudioPlayer can't play while AVCaptureVideoPreviewLayer
I'm generating an .m4a from a video recorded during a AVCaptureVideoPreviewLayer session (using the wonderful PBJVision). I then generate an m4a file from the video captured:
AVAssetExportSession *exportSession=[AVAssetExportSession…

kidnim
- 1,477
- 2
- 10
- 13