video stream is not displaying in android app throwing error [ERROR ] [ffpyplayer ] http://192.168.6.102:8080/shot.jpg: Invalid data found when processing input
Software Versions
- Python:3.7.13
- OS:12
- Kivy:2.1.0
- Kivy installation method:pip install pip
- apk build: buildozer
Describe the bug I am creating the app to see the live strea video coming from ip camera.The programming is running well in pyscharm and live video stream is displayed. But, when i want to play the live stream in mobile app, there is no video displaying.
how to soolve the problem
The code snippeint is as follows:

I am getting the error while running the app(Invalid data found when processing input)
09-13 20:49:27.832 18038 18163 I python : Initializing Python for Android
09-13 20:49:27.832 18038 18163 I python : Setting additional env vars from p4a_env_vars.txt
09-13 20:49:27.832 18038 18163 I python : Changing directory to the one provided by ANDROID_ARGUMENT
09-13 20:49:27.832 18038 18163 I python : /data/user/0/org.test.myapp/files/app
09-13 20:49:27.832 18038 18163 I python : Preparing to initialize python
09-13 20:49:27.832 18038 18163 I python : _python_bundle dir exists
09-13 20:49:27.832 18038 18163 I python : calculated paths to be...
09-13 20:49:27.832 18038 18163 I python : /data/user/0/org.test.myapp/files/app/_python_bundle/stdlib.zip:/data/user/0/org.test.myapp/files/app/_python_bundle/modules
09-13 20:49:27.835 18038 18163 I python : set wchar paths...
09-13 20:49:27.867 18038 18163 I python : Initialized python
09-13 20:49:27.867 18038 18163 I python : AND: Init threads
09-13 20:49:27.867 18038 18163 I python : testing python print redirection
09-13 20:49:27.868 18038 18163 I python : Android path ['.', '/data/user/0/org.test.myapp/files/app/_python_bundle/stdlib.zip', '/data/user/0/org.test.myapp/files/app/_python_bundle/modules', '/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages']
09-13 20:49:27.868 18038 18163 I python : os.environ is environ({'PATH': '/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin', 'ANDROID_BOOTLOGO': '1', 'ANDROID_ROOT': '/system', 'ANDROID_ASSETS': '/system/app', 'ANDROID_DATA': '/data', 'ANDROID_STORAGE': '/storage', 'ANDROID_ART_ROOT': '/apex/com.android.art', 'ANDROID_I18N_ROOT': '/apex/com.android.i18n', 'ANDROID_TZDATA_ROOT': '/apex/com.android.tzdata', 'EXTERNAL_STORAGE': '/sdcard', 'ASEC_MOUNTPOINT': '/mnt/asec', 'DOWNLOAD_CACHE': '/data/cache', 'BOOTCLASSPATH': '/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/framework-graphics.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/knoxsdk.jar:/system/framework/knoxanalyticssdk.jar:/system/framework/drutils.jar:/system/framework/uibc_java.jar:/system/framework/SmpsManager.jar:/system/framework/esecomm.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar:/system/framework/QPerformance.jar:/system/framework/UxPerformance.jar:/system/framework/sem-telephony-common.jar:/apex/com.android.i18n/javalib/core-icu4j.jar:/apex/com.android.appsearch/javalib/framework-appsearch.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.ipsec/javalib/android.net.ipsec.ike.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.permission/javalib/framework-permission-s.jar:/apex/com.android.scheduling/javalib/framework-scheduling.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.tethering/javalib/framework-connectivity.jar:/apex/com.android.tethering/javalib/framework-tethering.jar:/apex/com.android.wifi/javalib/framework-wifi.jar:/apex/com.samsung.android.ipm/javalib/framework-samsung-ipm.jar:/apex/com.samsung.android.shell/javalib/framework-samsung-privilege.jar', 'DEX2OATBOOTCLASSPATH': '/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/framework-graphics.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/knoxsdk.jar:/system/framework/knoxanalyticssdk.jar:/system/framework/drutils.jar:/system/framework/uibc_java.jar:/system/framework/SmpsManager.jar:/system/framework/esecomm.jar:/system/framework/tcmiface.jar:/system/framework/telephony-ext.jar:/system/framework/QPerformance.jar:/system/framework/UxPerformance.jar:/system/framework/sem-telephony-common.jar:/apex/com.android.i18n/javalib/core-icu4j.jar', 'SYSTEMSERVERCLASSPATH': '/system/framework/com.android.location.provider.jar:/system/framework/services.jar:/system/framework/ethernet-service.jar:/system/framework/ssrm.jar:/system/framework/semwifi-service.jar:/apex/com.android.appsearch/javalib/service-appsearch.jar:/apex/com.android.art/javalib/service-art.jar:/apex/com.android.media/javalib/service-media-s.jar:/apex/com.android.permission/javalib/service-permission.jar:/apex/com.samsung.android.ipm/javalib/service-samsung-ipm.jar:/apex/com.samsung.android.shell/javalib/service-samsung-privilege.jar', 'STANDALONE_SYSTEMSERVER_JARS': '/apex/com.android.os.statsd/javalib/service-statsd.jar:/apex/com.android.scheduling/javalib/service-scheduling.jar', 'KNOX_STORAGE': '/data/knox/ext_sdcard', 'ENC_EMULATED_STORAGE_TARGET': '/storage/enc_emulated', 'ANDROID_SOCKET_zygote': '16', 'ANDROID_SOCKE
09-13 20:49:27.868 18038 18163 I python : Android kivy bootstrap done. name is main
09-13 20:49:27.868 18038 18163 I python : AND: Ran string
09-13 20:49:27.868 18038 18163 I python : Run user program, change dir and execute entrypoint
09-13 20:49:27.923 18038 18163 I python : [WARNING] [Config ] Older configuration version detected (0 instead of 24)
09-13 20:49:27.924 18038 18163 I python : [WARNING] [Config ] Upgrading configuration in progress.
09-13 20:49:27.926 18038 18163 I python : [INFO ] [Logger ] Record log in /data/user/0/org.test.myapp/files/app/.kivy/logs/kivy_22-09-13_0.txt
09-13 20:49:27.926 18038 18163 I python : [INFO ] [Kivy ] v2.1.0
09-13 20:49:27.926 18038 18163 I python : [INFO ] [Kivy ] Installed at "/data/user/0/org.test.myapp/files/app/_python_bundle/site-packages/kivy/init.pyc"
09-13 20:49:27.926 18038 18163 I python : [INFO ] [Python ] v3.9.9 (main, Sep 13 2022, 18:26:32)
09-13 20:49:27.926 18038 18163 I python : [Clang 12.0.8 (https://android.googlesource.com/toolchain/llvm-project c935d99d
09-13 20:49:27.926 18038 18163 I python : [INFO ] [Python ] Interpreter at ""
09-13 20:49:27.926 18038 18163 I python : [INFO ] [Logger ] Purge log fired. Processing...
09-13 20:49:27.927 18038 18163 I python : [INFO ] [Logger ] Purge finished!
09-13 20:49:28.457 18038 18163 I python : [INFO ] [Factory ] 189 symbols loaded
09-13 20:49:28.561 18038 18163 I python : [INFO ] [ImageLoaderFFPy] Using ffpyplayer 4.3.2
09-13 20:49:28.562 18038 18163 I python : [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_ffpyplayer (img_pil ignored)
09-13 20:49:28.572 18038 18163 I python : [INFO ] [Text ] Provider: sdl2
09-13 20:49:28.584 18038 18163 I python : [INFO ] [Window ] Provider: sdl2
09-13 20:49:28.594 18038 18163 I python : [INFO ] [GL ] Using the "OpenGL ES 2" graphics system
09-13 20:49:28.594 18038 18163 I python : [INFO ] [GL ] Backend used
Check buildozer.spec requirements has kivy,ffmpeg,ffpyplayer,ffpyplayer_codecs
Hi @sandeshchand87 !
Can you please also post your buildozer.spec file?
Thanks misl6, Due to my personal reason i could not reply you on time. I am sending you the buildozer.spec file.
ffpyplayer_codecs ffpyplayer_codecs throws an error while creating apk file using googlecolab.
ffpyplayer_codecs ffpyplayer_codecs throws an error while creating apk file using googlecolab.
ffpyplayer_codecs is required for http://* sources (and MOST other sources except very limited set). use latest developer version of p4a to build apk. the ffpyplayer_codecs compilation was fixed in https://github.com/kivy/python-for-android/commit/6505cfc1283ef5082e49a39e4cbc88ca20ddc7e4
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further.