community icon indicating copy to clipboard operation
community copied to clipboard

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

Open sandeshchand87 opened this issue 3 years ago • 1 comments

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: image

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 09-13 20:49:28.595 18038 18163 I python : [INFO ] [GL ] OpenGL version <b'OpenGL ES 3.2 [email protected] (GIT@193b2ee, I593c16c433, 1633593732) (Date:10/07/21)'> 09-13 20:49:28.595 18038 18163 I python : [INFO ] [GL ] OpenGL vendor <b'Qualcomm'> 09-13 20:49:28.595 18038 18163 I python : [INFO ] [GL ] OpenGL renderer <b'Adreno (TM) 650'> 09-13 20:49:28.595 18038 18163 I python : [INFO ] [GL ] OpenGL parsed version: 3, 2 09-13 20:49:28.595 18038 18163 I python : [INFO ] [GL ] Texture max size <16384> 09-13 20:49:28.595 18038 18163 I python : [INFO ] [GL ] Texture max units <16> 09-13 20:49:28.613 18038 18163 I python : [INFO ] [Window ] auto add sdl2 input provider 09-13 20:49:28.613 18038 18163 I python : [INFO ] [Window ] virtual keyboard not allowed, single mode, not docked 09-13 20:49:28.621 18038 18163 I python : [INFO ] [VideoFFPy ] Using ffpyplayer 4.3.2 09-13 20:49:28.621 18038 18163 I python : [INFO ] [Video ] Provider: ffpyplayer(['video_ffmpeg'] ignored) 09-13 20:49:28.744 18038 18163 I python : [INFO ] [GL ] NPOT texture support is available 09-13 20:49:28.745 18038 18163 I python : [WARNING] [Base ] Unknown provider 09-13 20:49:28.746 18038 18163 I python : [INFO ] [Base ] Start application main loop 09-13 20:50:39.623 18038 18163 I python : [ERROR ] [Image ] Not found https://192.168.178.51:8080/shot.jpg 09-13 20:50:39.624 18038 18163 I python : ip https://192.168.178.51:8080/shot.jpg 09-13 20:50:40.053 18038 18511 I python : [ERROR ] [ffpyplayer ] https://192.168.178.51:8080/shot.jpg: Invalid data found when processing input

sandeshchand87 avatar Sep 14 '22 08:09 sandeshchand87

Check buildozer.spec requirements has kivy,ffmpeg,ffpyplayer,ffpyplayer_codecs

ibobalo avatar Sep 21 '22 10:09 ibobalo

Hi @sandeshchand87 ! Can you please also post your buildozer.spec file?

misl6 avatar Sep 24 '22 13:09 misl6

Thanks misl6, Due to my personal reason i could not reply you on time. I am sending you the buildozer.spec file.

buildozer.spec.txt

sandeshchand87 avatar Sep 28 '22 09:09 sandeshchand87

ffpyplayer_codecs ffpyplayer_codecs throws an error while creating apk file using googlecolab.

sandeshchand87 avatar Sep 28 '22 10:09 sandeshchand87

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

ibobalo avatar Sep 29 '22 14:09 ibobalo

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.

github-actions[bot] avatar May 27 '23 22:05 github-actions[bot]