Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23962] iOS - Blurry Video Capture and Preview

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2016-09-29T19:16:40.000+0000
Affected Version/sRelease 5.5.0
Fix Version/sn/a
ComponentsiOS
Labelscamera, showcamera, video, videocapture
ReporterYgor Lemos
AssigneeHans Knöchel
Created2016-09-28T22:25:17.000+0000
Updated2017-03-29T22:08:39.000+0000

Description

When capturing video using showCamera() both the generated video and the preview video are extremely blurred (low quality). I have tried to use all videoQuality options available on docs (Ti.Media.QUALITY_HIGH, Ti.Media.QUALITY_MEDIUM, Ti.Media.QUALITY_LOW, Ti.Media.QUALITY_640x480, Ti.Media.QUALITY_IFRAME_960x540, Ti.Media.QUALITY_IFRAME_1280x720) When compared to photo quality both on preview as in the captured frames, the video always seem very blurry and low quality independently of the videoQuality setting. This is far more perceivable on iPhone 6S Plus when compared to iPhone 5S and iPhone 6 but the video on those devices have lower quality when compared between video captured from the ti app against video captured directly from the camera app. I have also tried to manually focus (tap focus) to different areas on the screen and it didn't solve the problem. All attached previews where taken with videoQuality: Ti.Media.QUALITY_HIGH but the problem persists on all videoQuality options as mentioned above.

Attachments

FileDateSize
test_camera.zip2016-10-05T13:52:18.000+000029063

Comments

  1. Ygor Lemos 2016-09-28

    *Ti App - Photo Mode*: !https://www.dropbox.com/s/i5hdaeayih4qkeu/PHOTO-CAPTURE-TI_APP-IPHONE6SPLUS.PNG?dl=1! *Ti App - Video Mode 1*: !https://www.dropbox.com/s/15006dk3lidjahs/VIDEO-CAPTURE-TI_APP-IPHONE6SPLUS.PNG?dl=1! *Ti App - Video Mode 2*: !https://www.dropbox.com/s/0y4qqylhuedct2x/VIDEO-CAPTURE-TI_APP-IPHONE6SPLUS-2.PNG?dl=1! *Stock/Native iOS Camera App - Video Mode*: !https://www.dropbox.com/s/x6l7f5wpknpapi1/VIDEO-CAPTURE-IOS_CAMERA_APP-IPHONE6SPLUS.PNG?dl=1! *Video Captured*: [https://www.dropbox.com/s/acx4s1fvgaj3jgi/VIDEO-CAPTURE-TI_APP-IPHONE6SPLUS.MOV?dl=0]
  2. Hans Knöchel 2016-09-29

    Can you check if the 6.0.0 build changes something? Ti.Media.QUALITY_IFRAME_960x540, Ti.Media.QUALITY_IFRAME_1280x720 are only available in Titanium SDK 6.0.0 and later, and I also remember that I recently fixed something regarding the video-quality as well. Thx! *EDIT*: See [this commit](https://github.com/appcelerator/titanium_mobile/blame/6_0_X/iphone/Classes/MediaModule.m#L1586).
  3. Ygor Lemos 2016-09-29

    Hi @Hans, I have tested again using iPhone 6S Plus on 6.0.0.v20160929101355 and it seems fixed on 6.0.X branch! Both Ti.Media.QUALITY_HIGH as Ti.Media.QUALITY_IFRAME_XXXXXXXX options have perfect previews and are recording HQ video properly! Thanks.
  4. Hans Knöchel 2016-09-29

    Happy to hear, thank you [~ygbr]! For the records, the duplicate ticket is TIMOB-23847.
  5. Hans Knöchel 2016-10-05

    One side-note for all people seeing this ticket. It's actual a native behavior, see the attached project "test_camera.zip" that produces the same output.
  6. Ygor Lemos 2016-10-05

    Hi @Hans, I think that in the case you have attached the capture quality is blurry because you have explicitly set the video quality to Low in [picker setVideoQuality:UIImagePickerControllerQualityTypeLow]; Higher qualities seem ok to me. The default is UIImagePickerControllerQualityTypeMedium according to Apple docs.
  7. Hans Knöchel 2016-10-05

    Hey gotcha. The comment was more meant for the issues one of our Slack users noticed on iOS 10. But since the camera-quality-issue is fixed now anyway, we're fine.
  8. Lee Morris 2017-03-29

    Closing ticket as duplicate, please refer to TIMOB-23847.

JSON Source