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

Enhancement request : add GPU based yuv to rgba conversion #155

Open
RobertFlatt opened this issue Oct 8, 2023 · 5 comments
Open

Enhancement request : add GPU based yuv to rgba conversion #155

RobertFlatt opened this issue Oct 8, 2023 · 5 comments

Comments

@RobertFlatt
Copy link

Video playback when the fails with missing codec when source was recorded on a GoPro:

10-08 10:08:25.493 27836 27869 I python  : [WARNING] [ffpyplayer  ] No decoder could be found for codec hevc
@matham
Copy link
Owner

matham commented Oct 8, 2023

I suspect that wherever you got the linked ffmpeg from was built without libx265 support. Our wheels should have support for it.

@RobertFlatt
Copy link
Author

yes, I was missing ffpyplayer_codecs. It now fails with

10-08 10:55:06.615 30486 30561 I python  : [WARNING] [ffpyplayer  ] [swscaler @ 0x9fd4c020] deprecated pixel format used, make sure you did set range correctly
10-08 10:55:06.634 30486 30561 I python  : [WARNING] [ffpyplayer  ] [swscaler @ 0x9fd4c020] No accelerated colorspace conversion found from yuv420p to rgba.
10-08 10:57:57.323 31098 31098 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-08 10:57:57.323 31098 31098 F DEBUG   : Build fingerprint: 'google/redfin/redfin:13/TQ3A.230901.001/10750268:user/release-keys'
10-08 10:57:57.323 31098 31098 F DEBUG   : Revision: 'MP1.0'
10-08 10:57:57.323 31098 31098 F DEBUG   : ABI: 'arm'
10-08 10:57:57.323 31098 31098 F DEBUG   : Timestamp: 2023-10-08 10:57:56.805578711-1000
10-08 10:57:57.323 31098 31098 F DEBUG   : Process uptime: 3s
10-08 10:57:57.323 31098 31098 F DEBUG   : Cmdline: org.test.receive
10-08 10:57:57.323 31098 31098 F DEBUG   : pid: 31038, tid: 31072, name: SDLThread  >>> org.test.receive <<<
10-08 10:57:57.323 31098 31098 F DEBUG   : uid: 10571
10-08 10:57:57.323 31098 31098 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x00000000
10-08 10:57:57.323 31098 31098 F DEBUG   : Cause: null pointer dereference
10-08 10:57:57.323 31098 31098 F DEBUG   :     r0  fffffc7e  r1  fffffc7e  r2  be9f64b8  r3  be9f64b0
10-08 10:57:57.323 31098 31098 F DEBUG   :     r4  be9f65f8  r5  be9f64b8  r6  00000001  r7  00000000
10-08 10:57:57.323 31098 31098 F DEBUG   :     r8  be9f64b0  r9  be098f28  r10 e63818e0  r11 be9f6680
10-08 10:57:57.323 31098 31098 F DEBUG   :     ip  dc3264dd  sp  be9f6480  lr  bf5fc82b  pc  dc325432
10-08 10:57:57.323 31098 31098 F DEBUG   : backtrace:
10-08 10:57:57.323 31098 31098 F DEBUG   :   NOTE: Function names and BuildId information is missing for some frames due
10-08 10:57:57.323 31098 31098 F DEBUG   :   NOTE: to unreadable libraries. For unwinds of apps, only shared libraries
10-08 10:57:57.323 31098 31098 F DEBUG   :   NOTE: found under the lib/ directory are readable.
10-08 10:57:57.323 31098 31098 F DEBUG   :   NOTE: On this device, run setenforce 0 to make the libraries readable.
10-08 10:57:57.323 31098 31098 F DEBUG   :   NOTE: Unreadable libraries:
10-08 10:57:57.323 31098 31098 F DEBUG   :   NOTE:   /data/data/org.test.receive/files/app/_python_bundle/site-packages/kivy/core/window/_window_sdl2.so
10-08 10:57:57.324 31098 31098 F DEBUG   :       #00 pc 00004432  /system/lib/libaaudio.so (AAudioStream_getTimestamp.cfi+66) (BuildId: 724a2776b2013e4b2e1572f5b12f644f)
10-08 10:57:57.324 31098 31098 F DEBUG   :       #01 pc 00078829  /data/app/~~0Pe4nJoXvBFRvqKFYaXufw==/org.test.receive-D1LAkaVc7RFMwSKmU4UNQQ==/lib/arm/libSDL2.so (aaudio_DetectBrokenPlayState+72) (BuildId: 2d445f5dc1e084436cf9a32ff48a2a9c5437c5d5)
10-08 10:57:57.324 31098 31098 F DEBUG   :       #02 pc 001342db  /data/app/~~0Pe4nJoXvBFRvqKFYaXufw==/org.test.receive-D1LAkaVc7RFMwSKmU4UNQQ==/lib/arm/libSDL2.so (Android_PumpEvents_Blocking+358) (BuildId: 2d445f5dc1e084436cf9a32ff48a2a9c5437c5d5)
10-08 10:57:57.324 31098 31098 F DEBUG   :       #03 pc 00080329  /data/app/~~0Pe4nJoXvBFRvqKFYaXufw==/org.test.receive-D1LAkaVc7RFMwSKmU4UNQQ==/lib/arm/libSDL2.so (BuildId: 2d445f5dc1e084436cf9a32ff48a2a9c5437c5d5)
10-08 10:57:57.324 31098 31098 F DEBUG   :       #04 pc 000803f3  /data/app/~~0Pe4nJoXvBFRvqKFYaXufw==/org.test.receive-D1LAkaVc7RFMwSKmU4UNQQ==/lib/arm/libSDL2.so (SDL_WaitEventTimeout+50) (BuildId: 2d445f5dc1e084436cf9a32ff48a2a9c5437c5d5)
10-08 10:57:57.324 31098 31098 F DEBUG   :       #05 pc 000803b9  /data/app/~~0Pe4nJoXvBFRvqKFYaXufw==/org.test.receive-D1LAkaVc7RFMwSKmU4UNQQ==/lib/arm/libSDL2.so (SDL_PollEvent+12) (BuildId: 2d445f5dc1e084436cf9a32ff48a2a9c5437c5d5)
10-08 10:57:57.324 31098 31098 F DEBUG   :       #06 pc 0000d057  /data/data/org.test.receive/files/app/_python_bundle/site-packages/kivy/core/window/_window_sdl2.so
10-08 10:57:57.372   945   945 E tombstoned: Tombstone written to: tombstone_03

@RobertFlatt
Copy link
Author

Which looks SDL2 related libsdl-org/SDL#7620

@RobertFlatt
Copy link
Author

Fixed crash with

os.environ["SDL_AUDIODRIVER"] = "android"

Now it is too slow to use. Presumably:

10-08 11:09:00.689 31840 31918 I python  : [WARNING] [ffpyplayer  ] [swscaler @ 0xd1ccc020] No accelerated colorspace conversion found from yuv420p to rgba.

@RobertFlatt RobertFlatt changed the title Enhancement request : GoPro support Enhancement request : add GPU based yuv to rgba conversion Oct 8, 2023
@Cheaterman
Copy link

Wow, this fixed the crash on my end too (when streaming audio). Thanks Bob, really appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants