Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPhone X , .h264, HEVC issue Video Converter #208

Open
ShaikBaji1506 opened this issue May 24, 2019 · 0 comments
Open

iPhone X , .h264, HEVC issue Video Converter #208

ShaikBaji1506 opened this issue May 24, 2019 · 0 comments

Comments

@ShaikBaji1506
Copy link

iPhone X device when we record the video the video is converting into the .h264 which is default but where as for iPhone X, it is taking as codeC type as HEVC and I have changed my code to

if #available(iOS 11.0, *)
{
let connection = movieFileOutput.connection(with: .video)
if movieFileOutput.availableVideoCodecTypes.contains(.h264)

        {
// Use the H.264 codec to encode the video.
 movieFileOutput.setOutputSettings([AVVideoCodecKey:AVVideoCodecType.h264], for: connection!)
        }
        }

this is really superb but the issue is when I give my default camera to = .front in viewDidLoad,then for front camera video recorded it is going as .h264 codeC and when I switch the camera to rear and record the video then at that time it is going as hevc but not as .h264

the same when in set my default camera to = .rear in viewDidLoad,then for rear camera video recorded it is going as .h264 codeC and when I switch the camera to front and record the video then at that time it is going as hevc but not as .h264 why this is behaving like this ??

what is this thing happening too
I was unable to know one more thing I have given default camera to rear or front but some times it is coming according to my requirement but not all times what is this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@ShaikBaji1506 and others