SwiftyCam icon indicating copy to clipboard operation
SwiftyCam copied to clipboard

Video Recording 4K outputs 1080p

Open DerrickDevelop opened this issue 6 years ago • 2 comments

When recording with VideoQuality.resolution3840x2160 the output video results in 1080p resolution.

Result is also the same on VideoQuality.high.

Tested on iPhone 6s Plus running 10.3.3.

DerrickDevelop avatar Aug 20 '17 14:08 DerrickDevelop

Quick fix was setting the quality parameter in this function below under SwiftyCamViewController.swift to my desired resolution.

Not genuine fix, just workaround.

`fileprivate func configureVideoPreset() {

if currentCamera == .front {
    session.sessionPreset = videoInputPresetFromVideoQuality(quality: .high)
} else {
    if session.canSetSessionPreset(videoInputPresetFromVideoQuality(quality: .resolution3840x2160)) {
        session.sessionPreset = videoInputPresetFromVideoQuality(quality: .resolution3840x2160)
    } else {
        session.sessionPreset = videoInputPresetFromVideoQuality(quality: .high)
    }
}

}`

DerrickDevelop avatar Aug 22 '17 12:08 DerrickDevelop

I justed tested and my iPhone 7 records at 3840x2160. Can you confirm this occurs for the back camera and not the front

Awalz avatar Aug 25 '17 21:08 Awalz