cannot able to load the live video stream

155 vues
Accéder directement au premier message non lu

Sandesh Chand

non lue,
13 sept. 2022, 10:28:5713/09/2022
à Kivy users support
Hello All,
Actually, I want to display the video stream in my app. I have created the apk file using bulldozer. In my desktop, the programs runs well and video is also displaying. but when I installed the apk  file in mobile. the app is running but no  video stream is displayed.
  image.png
This is the code snippet of source. I am using the ip camera as a source.
I tried many times but couldn't able to display ?  
buildozer (1).spec

Sandesh Chand

non lue,
13 sept. 2022, 10:30:0413/09/2022
à Kivy users support

The code snippet as followsimage.png

Robert

non lue,
13 sept. 2022, 13:09:1613/09/2022
à Kivy users support
I don't know for sure but it is possible this is the issue addressed by this possible fix https://github.com/kivy/kivy/pull/7994
As you can see It is a work in progress. And I don't know anything about its future inclusion.

It is also possible Android has become picky about not using https, but that just brings you back to the issue above.

Sandesh Chand

non lue,
14 sept. 2022, 04:04:3614/09/2022
à Kivy users support
I am getting error  from ffpyplayer.
--------- beginning of main
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 <sdl2>
09-13 20:49:28.595 18038 18163 I python  : [INFO   ] [GL          ] OpenGL version <b'OpenGL ES 3.2 V@0502.0 (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 <android> 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
09-13 20:51:40.692 18038 18163 I python  : [INFO   ] [Base        ] Leaving application in progress...

Sandesh Chand

non lue,
14 sept. 2022, 05:43:5014/09/2022
à kivy-...@googlegroups.com
Dear Support team, 
Actually, i  want to display the video video stream in my app.
image.png
This is the code snippet of source. I am using the ip camera as a source. My aim  is to display the live video stream in my app. I can able to display the video in the desktop. But in the android mobile, the app is running without displaying the video.
I tried many times but couldn't able to display ?

 please check the spec file , I am stuck in this work  from last week.
I am creating the apk file from google colab using buildozer.

Please find the app log file and spec file of app.
Waiting for your support

--
With Best Regards
Sandesh Chand
Master of Information Technology
Frankfurt University of Applied Sciences
Frankfurt am Main, Germany
Tel: 0491796316968

app.txt
buildozer (2).spec

Robert

non lue,
14 sept. 2022, 20:26:3314/09/2022
à Kivy users support
No idea if any of these are the issue you face (its wildly optimistic to throw your app over a wall and hope somebody will debug it for you).

Looking at your buildozer.spec
- I suggest you don't pin the Python version, better to use the default.
- Don't add python-for-android to requirements, it not something imported by your app

I'm surprised you can load a jpg with ffpyplayer, but that doesn't mean you can't.
(In this situation I'd test this with a jpg file locally on the Android device, this might explain the error message you see)

I'm surprised you can to do real time streaming with http, but that doesn't mean you can't.
(I would have expected rstp, but I suspect the default build of ffpyplayer does not support it,  so some recipe customization may be required.)

I have not done what you want to do, so I am not able to offer specific advice.

Sandesh Chand

non lue,
15 sept. 2022, 03:08:3915/09/2022
à Kivy users support
Dear Robert,
Thanks for the message.
During running the code i got the following the following error from adb tool
09-13 20:52:06.329 19112 19307 I python : [ERROR ] [ffpyplayer ] https://192.168.178.51:8080/shot.jpg: Invalid data found when processing input
Is there any problem of permission ?

Robert

non lue,
15 sept. 2022, 12:55:3215/09/2022
à Kivy users support

> I have not done what you want to do, so I am not able to offer specific advice.

> I'm surprised you can load a jpg with ffpyplayer, but that doesn't mean you can't.
> (In this situation I'd test this with a jpg file locally on the Android device, this might explain the error message you see)

Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message