yuroyami / syncplay-mobile

📱 Unofficial Syncplay client app for Android and iOS. Watch stuff in sync with your friends. Works well with Syncplay on PC. Fully written in Kotlin and Compose multiplatform.
113 stars 5 forks source link

syncplay-android can't play hevc 10-bit video #56

Closed soredake closed 5 months ago

soredake commented 1 year ago

Tested with jellyfish-3-mbps-hd-hevc-10bit.mkv from https://www.larmoire.info/jellyfish/

yuroyami commented 1 year ago

The app supports as many formats as the device internally supports especially when it comes to highly compressed formats like HEVC with high bit depth such as 10bit or 12bit. My main phone plays the video without issues but it doesn't work on one of my old phones

This will be automatically solved if at some point i make the app wrap ffmpeg just like VLC does. Road map might go as mentioned here #42

soredake commented 1 year ago

@soredake yeah, you're right, my device can't hardware decode hevc 10-bit, same video in vlc produces garbled output and lags very much, mx player plays it correctly, lags as well but slightly less.

yuroyami commented 1 year ago

Fixed in version (0.12.0) with the introduction of mpv.

soredake commented 1 year ago

@yuroyami i tried playing jellyfish sample and got only black screen with mpv, with anime encoded in 10bit i got same black screen and crash after seeking.

yuroyami commented 1 year ago

@soredake Seems like mpv is not falling back to software decoding when the hardware codec is missing, thanks for testing

yuroyami commented 6 months ago

@soredake I've added some mpv-related settings inside the room in v0.13.0, where you can enable/disable hardware acceleration, and also use "gpu-next" rendering backend, I dont even know what it is but mpv claims it's a new improved rendering engine or something, it may help

Also, it seems like mpv libs weren't falling back to software acceleration (as mentioned in this mpv-android release)

Let me know if that helps with this case

soredake commented 6 months ago

Also, it seems like mpv libs weren't falling back to software acceleration

Yeah, hevc 10 bit are still not working.

yuroyami commented 5 months ago

@soredake This seems more like a device issue to me. What's the test result on mpv-android

soredake commented 5 months ago

Correction, no videos are working without gpu-next option: https://github.com/yuroyami/syncplay-mobile/issues/85 And with gpu-next, hevc 10-bit are finally working, although with unwatchable frame rate, vlc/mx player give me much better frame rate with software decoding, but that's a mpv-android/libmpv/ffmpeg problem, will report to them.

soredake commented 5 months ago

@soredake reported to upstream https://github.com/mpv-android/mpv-android/issues/855