SCRecorder icon indicating copy to clipboard operation
SCRecorder copied to clipboard

Bad video quality!?

Open hmaalen opened this issue 8 years ago • 16 comments

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?

hmaalen avatar Feb 08 '17 15:02 hmaalen

Which device do you use? The quality should be configurable through the bitrate property of videoConfiguration.

rFlex avatar Feb 12 '17 17:02 rFlex

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

howeguo avatar Mar 17 '17 03:03 howeguo

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

ruslanmoskalenko avatar Mar 29 '17 13:03 ruslanmoskalenko

@rFlex Problem exist only on iPhone 7. Seems there problem with hardware. Is it possible for you to check?

dyadenkor avatar Mar 31 '17 22:03 dyadenkor

@rFlex are you alive? :)

jjsandgreen avatar Apr 21 '17 16:04 jjsandgreen

@rFlex same here

wojczitsu avatar Jul 10 '17 11:07 wojczitsu

just set to a better resolution

freeubi avatar Jul 21 '17 13:07 freeubi

The same here @rFlex I tried every resolution and every setting, the video is pixelated each time. Please, help!

FatihGirisken avatar Feb 09 '18 23:02 FatihGirisken

Have you guys looked at the PRs or forks? Seems this fork is the most active and advanced.

https://github.com/lucaji/SCRecorder

MMasterson avatar Feb 10 '18 01:02 MMasterson

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.

FatihGirisken avatar Feb 11 '18 17:02 FatihGirisken

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)

freeubi avatar Feb 11 '18 17:02 freeubi

Exported video(file) is the same. I use front camera, iPhone7, AVCaptureSessionPresetHigh. And similar settings in the export config. SCPresetHighestQuality, SCContextTypeAuto, AVFileTypeMPEG4.

FatihGirisken avatar Feb 11 '18 17:02 FatihGirisken

@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. img_4122 @hmaalen Have you found any solution? Or any other lib?

FatihGirisken avatar Feb 11 '18 18:02 FatihGirisken

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.

freeubi avatar Feb 12 '18 19:02 freeubi

Solved !! You can fix it by change default bitrate value "kSCVideoConfigurationDefaultBitrate" to very large number found in "SCVideoConfiguration.h" file

#define kSCVideoConfigurationDefaultBitrate 13000000

Ahmed-Elsman avatar Apr 06 '18 15:04 Ahmed-Elsman

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.

SerjPridestar avatar Oct 18 '18 09:10 SerjPridestar