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

Blurred video from back camera #24

Closed
pbalbino opened this issue Apr 15, 2020 · 18 comments
Closed

Blurred video from back camera #24

pbalbino opened this issue Apr 15, 2020 · 18 comments
Labels
bug Something isn't working

Comments

@pbalbino
Copy link

Congratulations on the project.

I would like to know if it is possible to improve the focus on the video. I need to show a TV tag, but the camera is blurry.

For testing I'm using a Moto G7 Power 64GB 4GB OctaCore 1.8GHz 6.2 "12MP.

@AndreiMisiukevich AndreiMisiukevich added the question Further information is requested label Apr 15, 2020
@AndreiMisiukevich
Copy link
Owner

Hi, frankly speaking, I don't know. But I believe it depends on your device's camera quality.

@AndreiMisiukevich
Copy link
Owner

please show how does it look and what do you want to achieve

@pbalbino
Copy link
Author

please show how does it look and what do you want to achieve

The first image is from the app that uses opentok.
The second is from the camera app, both from the same smartphone, same scenario.
1
2

@AndreiMisiukevich
Copy link
Owner

https://stackoverflow.com/questions/45585045/tokbox-video-publish-unfocused-android

Hm, looks like this issue was fixed in 2.16.1

@AndreiMisiukevich
Copy link
Owner

try to add

<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />

inside your manifest file

@AndreiMisiukevich
Copy link
Owner

Maybe your device doesn't support autofocus?

Can you try with another one?

@AndreiMisiukevich
Copy link
Owner

try to add

<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />

inside your manifest file

Well, I believe this won't help..

@AndreiMisiukevich
Copy link
Owner

Anyway, can you try to add

<uses-feature android:name="android.hardware.camera.autofocus" android:required="true" />
to manifest, then

<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />

Then let me know the result)

@pbalbino
Copy link
Author

https://stackoverflow.com/questions/45585045/tokbox-video-publish-unfocused-android

Hm, parece que esse problema foi corrigido na 2.16.1

here I did not understand what I have to do, it seems that the link is broken

@pbalbino
Copy link
Author

Talvez o seu dispositivo não suporte o foco automático?

Você pode tentar com outro?

tested in 3 so far and both are the same.

@AndreiMisiukevich
Copy link
Owner

Talvez o seu dispositivo não suporte o foco automático?
Você pode tentar com outro?

tested in 3 so far and both are the same.

have you tried to set uses-feature ?

@pbalbino
Copy link
Author

Anyway, can you try to add

<uses-feature android:name="android.hardware.camera.autofocus" android:required="true" />
to manifest, then

<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />

Then let me know the result)

I tried the 2 options and it remains the same, unfocused

I can't tell you if the device I'm using has autofocus.

@AndreiMisiukevich AndreiMisiukevich added bug Something isn't working and removed question Further information is requested labels Apr 16, 2020
@pbalbino
Copy link
Author

Talvez o seu dispositivo não suporte o foco automático?
Você pode tentar com outro?

tested in 3 so far and both are the same.

have you tried to set uses-feature ?

Yes, but I only tested it on 1 device (there was no change), as the others belong to my client. Tomorrow I will send the APK with the options for him to test on the other devices.

@pbalbino
Copy link
Author

Talvez o seu dispositivo não suporte o foco automático?
Você pode tentar com outro?

tested in 3 so far and both are the same.

have you tried to set uses-feature ?

Yes, but I only tested it on 1 device (there was no change), as the others belong to my client. Tomorrow I will send the APK with the options for him to test on the other devices.

My client tested it on two other devices, but it remains unfocused.
vistoria_remota

@AndreiMisiukevich
Copy link
Owner

Thanks

@AndreiMisiukevich AndreiMisiukevich changed the title Blurred images Blurred video from back camera Apr 17, 2020
@AndreiMisiukevich
Copy link
Owner

@pbalbino well, try v.1.2.3 please

@pbalbino
Copy link
Author

@pbalbino well, try v.1.2.3 please

Now it looks good, see the difference in the image.

Do I keep any of these options?
<uses-feature android:name="android.hardware.camera.autofocus" android:required="true" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />

Screenshot_20200417-175827

What was the problem?

Thank you!

@AndreiMisiukevich
Copy link
Owner

AndreiMisiukevich commented Apr 17, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants