Open hmaalen opened 7 years ago
Which device do you use? The quality should be configurable through the bitrate property of videoConfiguration.
hi,@rFlex , I found the issue of the bad quality in iPhone7, can you tell me what is the exact bitrate in iPhone 7 ? thanks very much
I'm seeing the same problem. I use AVAssetExportPresetHighestQuality but quality video is bad(pixelated). My device iPhone 6s. Have suggestions how to fix it? @rFlex
@rFlex Problem exist only on iPhone 7. Seems there problem with hardware. Is it possible for you to check?
@rFlex are you alive? :)
@rFlex same here
just set to a better resolution
The same here @rFlex I tried every resolution and every setting, the video is pixelated each time. Please, help!
Have you guys looked at the PRs or forks? Seems this fork is the most active and advanced.
yeah, I have checked them. I dont know how no one noticed this problem. The videos are mostly pixelated, and also depending on the light in the room, it gets better or worse. Is it some exposure setting or sth maybe? Please, open the native camera, or to any other video app, and compare the video quality. I am thinking to change the library because of it. But it will be too much work, so trying to avoid it.
I dont have any problem like this. Go and check your exported videos quality, how is it exported (not the setti gs, the real video file)
Exported video(file) is the same. I use front camera, iPhone7, AVCaptureSessionPresetHigh. And similar settings in the export config. SCPresetHighestQuality, SCContextTypeAuto, AVFileTypeMPEG4.
@freeubi are you using a different fork? and which device? Pls, see this screenshot from a video file exported. This is obviously not the highest quality video on an iPhone-7. @hmaalen Have you found any solution? Or any other lib?
This is my settings:
assetExportSession.outputFileType = AVFileTypeQuickTimeMovie;
assetExportSession.audioConfiguration.preset = SCPresetMediumQuality;
assetExportSession.videoConfiguration.bitrate = 250000;
assetExportSession.videoConfiguration.maxFrameRate = 24;
assetExportSession.videoConfiguration.codec = AVVideoCodecH264;
assetExportSession.videoConfiguration.size = CGSizeMake(360, 640);
i dont know wihtch version, because i dont use pods. From the image i see low bitrate, try check the exported file data.
Solved !! You can fix it by change default bitrate value "kSCVideoConfigurationDefaultBitrate" to very large number found in "SCVideoConfiguration.h" file
In my case I had the same problem however, I had a configuration that was responsible for this:
exportSession.videoConfiguration.shouldKeepOnlyKeyFrames = true
When I removed the following the video was agreeably much better.
Also, what might also cause an issue is the maxFrameRate
.
The example project and my own usage of the lib results in quite bad quality video (pixelation etc). A bit surprised this has not been mentioned by anyone else. Am I the only one having this problem?