I am using MIP SDK Mobile for Android with the example “LiveVideoSample” and testing on various devices on all of them has flickering on their display. Any way to improve the code so that this doesn’t happen?
EDIT: I also tried it with the c # sdk and the camera looks much more fluid than in Android
Thank you!
Hello,
This is quite strange, as it shouldn’t flicker even if the fps is low.
Could you help by providing more details?
- Is this happening with the stock LiveVideoSample (without modification)?
- Is this happening on all cameras?
- Is this happening also on emulator?
- Is the official MilestoneMobile client also flickering, if run from the same device and connected to the same mobile?
- Any errors/exceptions?
Best regards,
Plamen Parvanov
Plamen, thanks for your help. I answer point by point:
-
I didn’t make any modifications to the example. I am using the most current version: MIPSDKMobile_2020R2.
-
Run the tests with 3 different cameras and the same thing happens.
-
En el emulador tiene aun más trabada la visualizacion de la camara.
-
The difference I find with respect to the official Xprotect Mobile application is that it reduces the quality of the camera’s display automatically, so it does not produce flickering. It appears more pixelated due to low quality, but does not flicker. In the liveVideoSample the quality doesn’t change and possibly this is the reason.
-
I attach log with the errors that it produces, but that allow to continue showing camera visualization
I share link with video: https://photos.app.goo.gl/HgLuNPgVupwVhz2HA
Thank you!
Hello, and thanks for the clarification!
I’ve checked the linked video - to me it doesn’t seem to be flickering/blinking, bit it’s running with quite low fps and pausing from time to time. Is that the problem you are referring to?
The official MilestoneMobile app is running more smoothly as it has the “Optimize bandwidth” mode enabled by default in the settings. In this mode the mobile server will try to achieve high fps, reducing quality if needed (e.g. by increasing the image compression which will reduce the image size which will increase the fps.) You could try to switch off the “Optimize bandwidth” mode in Milestone Mobile and compare the result with the live video sample.
Unfortunately, the “Optimize bandwidth” mode is not as easy to use with the mobile SDK, and currently we do not have a sample for it.
I also checked the log file you attached, but didn’t saw any significant errors related to live video sample (there were many errors related to videopushsample, though)
Plamen, thanks for your help.
Exactly, I was referencing that it stops from time to time.
I will try to disable the “Optimize bandwidth” mode in Milestone Mobile and compare the result with the live video sample.
Thank you!
Regards