Replace ImageReader capture with MediaCodec encode/decode for Amlogic.
Android CI / build (push) Canceled after 0s
Android CI / build (push) Canceled after 0s
Fixes black frames on Ugoos X5M Pro, stabilizes Home/resume, settings framerate crash, and ships a debug APK under dist/apk. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b9cbbfa13d
commit
063a068620
17 files changed
+942
-453
No files matched your search
@@ -1,25 +1,76 @@
|
||||
|
||||
<img width="1280" height="640" alt="Hyperion Grabber Reborn" src="https://github.com/user-attachments/assets/80f2cdb0-f79a-47b9-ac09-efedaf90931a" />
|
||||
|
||||
|
||||
# Hyperion Android Reborn
|
||||
Screen grabber for hyperion, updated for **Android 12** and **beyond**.
|
||||
Screen grabber for Hyperion / HyperHDR, updated for **Android 12–14** (inkl. Android TV).
|
||||
|
||||
This application will send the content of the android screen to a hyperion instance to handle the image.
|
||||
|
||||
Info about hyperion can be found on their website:
|
||||
https://hyperion-project.org/
|
||||
Die App sendet den Android-Bildschirminhalt per FlatBuffers an eine Hyperion-Instanz.
|
||||
|
||||
Info zu Hyperion: https://hyperion-project.org/
|
||||
|
||||
---
|
||||
|
||||
# Important information for TCL tvs.
|
||||
For TCL televisions, the TCL watchdog will cause the app to close in the background, please run these steps to stop this from happening.
|
||||
Go to Settings > Apps > Hyperion Grabber
|
||||
Enable "Auto-start" or "Allow background activity" permission
|
||||
Some TCL TVs have this in Settings > Privacy > Special app access > Auto-start
|
||||
## Capture-Pipeline (ab 3.0.1)
|
||||
|
||||
**ALT (auf manchen Amlogic-Geräten schwarz):**
|
||||
`MediaProjection → VirtualDisplay → ImageReader → RGB → FlatBuffers`
|
||||
|
||||
**NEU (scrcpy-/Recorder-ähnlich):**
|
||||
`MediaProjection → VirtualDisplay → MediaCodec-Encoder-Surface → H.264 → MediaCodec-Decoder → YUV→RGB → Downscale → FlatBuffers`
|
||||
|
||||
Grund: Auf Geräten wie der **Ugoos X5M Pro (S905X5M, Android 14)** liefert ImageReader als VirtualDisplay-Consumer dauerhaft schwarze Frames, während Encoder-Surfaces (Screenrecorder, scrcpy) korrektes Bild liefern.
|
||||
|
||||
Weitere Änderungen:
|
||||
- `VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR` statt nur `PUBLIC`
|
||||
- Android 14+: `MediaProjectionConfig.createConfigForDefaultDisplay()` für Vollbild-Capture
|
||||
- Debug-Logging: Permission, VirtualDisplay, Codec-Format, Frame-Größe, Non-Zero-Pixel-Check, Send-FPS
|
||||
|
||||
---
|
||||
|
||||
# Download
|
||||
Both **TV** and **Mobile** apps are within [releases page](https://github.com/haumlab/hyperion-android-reborn/releases)
|
||||
## Build & Install (ADB Wireless)
|
||||
|
||||
Voraussetzungen: Android SDK / Android Studio, Gerät im selben Netz mit Wireless Debugging.
|
||||
|
||||
```bash
|
||||
# ADB verbinden (Beispiel X5M Pro)
|
||||
adb connect 10.0.10.72:5555
|
||||
adb devices
|
||||
|
||||
# Debug-Build bauen & installieren
|
||||
./gradlew installDebug
|
||||
# Windows:
|
||||
gradlew.bat installDebug
|
||||
|
||||
# Logcat (Capture-Pipeline)
|
||||
adb logcat -s HyperionScreenEncoder:I HyperionScreenService:I MediaProjectionHelper:I
|
||||
```
|
||||
|
||||
Hyperion-Server in der App konfigurieren (Beispiel): Host `10.0.50.2`, Port `19400`.
|
||||
|
||||
### Settings
|
||||
| Einstellung | Bedeutung |
|
||||
|-------------|-----------|
|
||||
| Host / Port | Hyperion FlatBuffers (Default-Port 19400) |
|
||||
| Priority | Hyperion-Quellenpriorität |
|
||||
| Framerate | Ziel-FPS der gesendeten Frames |
|
||||
| LED X / Y | Basis für Output-Auflösung (Downscale) |
|
||||
| Average color | Optional nur Mittelwertfarbe senden |
|
||||
|
||||
---
|
||||
|
||||
## Bekannte Limitierungen
|
||||
- DRM-geschützte Inhalte (Netflix o.ä.) bleiben schwarz — erwartet, kein Bypass.
|
||||
- Encode→Decode kostet etwas CPU/Latenz gegenüber ImageReader; für LED-Ambilight (~niedrige Auflösung) i.d.R. unkritisch.
|
||||
- Hardware-Encoder brauchen Mindestauflösung (hier Capture bis ca. 640px Breite, dann Downscale auf LED-Größe).
|
||||
|
||||
---
|
||||
|
||||
## Wichtig für TCL-TVs
|
||||
Settings → Apps → Hyperion Grabber → Auto-start / Hintergrundaktivität erlauben.
|
||||
|
||||
---
|
||||
|
||||
## Download
|
||||
TV- und Mobile-Builds: [Releases](https://github.com/haumlab/hyperion-android-reborn/releases)
|
||||
|
||||
Siehe auch [CHANGELOG.md](CHANGELOG.md) und [PIPELINE_CHANGELOG.md](PIPELINE_CHANGELOG.md).
|
||||
Reference in new issue
Block a user