IPTV Player for Mi Box: Mi Box S, Mi Box 4K, Mi TV Stick
Nightmare TV on Xiaomi's Android TV boxes: native HEVC Main10 HW decode, a Mi remote profile, and what to do about the 4K HDR overscan problem.
Nightmare TV is the player we build, and it runs on the Mi Box. Its native libmpv engine decodes 4K HEVC Main10 on the Amlogic hardware video unit and hands HDR10 / HLG to the TV via TV-safe video by default (BT.2390 tone-mapping is available if you switch that off in Settings). Bring your own M3U or Xtream playlist.
Install on Mi Box S Sideload Guide
Android TV 8/9Amlogic S905X / X2HEVC Main10 HWHDR10
The Mi Box 4K HDR overscan bug and the fix
Owners of the Mi Box S (MDZ-22-AB) and Mi Box 4 / Mi Box 4K (MDZ-25-AA) report 4K HDR10 content showing black borders on all four sides or, in worse cases, with the image edges cut off (overscan). Two things commonly cause this kind of problem: the box sending 4096×2160 (DCI 4K) to a 3840×2160 (UHD) TV, and the TV applying its own overscan to the HDMI input.
Nightmare TV has no Mi Box specific fix for this, and the player has no setting for it. The fix is in the box and TV settings: set the Mi Box's output resolution to 3840×2160 rather than 4096×2160, reset its screen position (Settings → Display → Screen position) to full size, and set the TV's picture size for that HDMI input to the mode that shows every pixel (often called Just Scan, Screen Fit or Full Pixel).
Mi Box family compatibility
| Model | Codename | SoC / RAM | HEVC HW | HDR overscan fix needed? |
|---|---|---|---|---|
| Mi Box S | MDZ-22-AB (International) | S905X / 2 GB | Yes (Main10) | Yes: see the settings above |
| Mi Box 4 / Mi Box 4K | MDZ-25-AA (International) | S905X2 / 2 GB | Yes (Main10) | Yes: see the settings above |
| Mi Box 4 (China) | MDZ-19-AA | S905X / 2 GB | Yes | Mi UI required: flash International firmware first |
| Mi TV Stick 4K | (Various) MDZ-27-AA | S905Y4 / 2 GB | Yes (Main10) | Less common; same settings apply |
| Mi TV Stick 1080p (older) | MDZ-24-AA | S805Y / 1 GB | Partial | 1080p only, not HDR |
Original Mi Box S vs the 2nd Gen 4K (2023): what actually changed
There are two distinct devices that both get called "Mi Box S," and it's worth knowing which one is sitting under your TV: because Nightmare TV behaves slightly differently on each.
The original Mi Box S (launched October 2018, MDZ-22-AB) runs an Amlogic S905X with four Cortex-A53 cores, a Mali-450 GPU, 2 GB of DDR3 RAM and 8 GB of storage. It shipped on Android 8.1 and topped out around Android 9/10. Output is HDMI 2.0, HDR10 only (no Dolby Vision), with dual-band Wi-Fi and Bluetooth 4.2.
The Mi Box S 2nd Gen / TV Box S (2nd Gen) (2023, sold around $43 to 49) is a genuine refresh: Amlogic S905X4 with Cortex-A55 cores, a Mali-G31 GPU, and the move to Google TV (Android TV 11, upgradable toward 14). It adds AV1 hardware decode, Dolby Vision and HDR10+, HDMI 2.1, Wi-Fi 5, Bluetooth 5.0 and Widevine L1. Crucially, though, Xiaomi kept the RAM at 2 GB, so the newer chip is faster and decodes more formats, but the memory headroom that matters most for heavy IPTV use did not improve.
| Original Mi Box S (2018) | Mi Box S 2nd Gen (2023) | |
|---|---|---|
| SoC | Amlogic S905X (A53) | Amlogic S905X4 (A55) |
| RAM / Storage | 2 GB / 8 GB | 2 GB / 8 GB |
| OS | Android TV 8.1 → 9/10 | Google TV (Android 11 → 14) |
| HDR | HDR10 | Dolby Vision + HDR10+ |
| Extra codecs | HEVC, VP9, H.264 | + AV1 hardware decode |
| HDMI / Wi-Fi / BT | HDMI 2.0 / Wi-Fi 5 / BT 4.2 | HDMI 2.1 / Wi-Fi 5 / BT 5.0 |
| Ethernet port | None (USB adapter) | None (USB adapter) |
For Nightmare TV, the practical takeaway: both run the libmpv pipeline with HEVC Main10 hardware decode. The 2nd Gen has the faster chip and can decode AV1 channels the original can't. But because RAM is identical, the smooth-IPTV tuning below applies equally to both.
The 2 GB RAM constraint and how to keep IPTV smooth
This is the single most important thing to understand about any Mi Box S. With only 2 GB of RAM and Android TV / Google TV reserving a large chunk for the system, you typically have well under 1 GB of usable memory once the launcher, the framework and a couple of recommendation services are loaded. Xiaomi itself acknowledges that apps on the 2nd Gen "lag or freeze" when memory is tight and recommends force-stopping background apps.
For IPTV specifically, RAM pressure shows up as the player getting killed when backgrounded, the channel list redrawing slowly after a long EPG load, or buffering unrelated to your connection: the box can't hold a large playlist, a decode buffer and the system at once. Nightmare TV stays light here: large guides load without freezing the channel list, and playback keeps its memory use small even on long sessions. On a 2 GB box you still want to give it room:
- Force-stop the heavy pre-installed apps you don't use: Netflix, YouTube and the Google TV "discover" services sit resident and eat RAM. Settings → Apps → (app) → Force stop.
- Disable autostart for streaming apps so they don't reclaim memory behind Nightmare TV.
- Reboot weekly. A 2 GB Android box fragments memory over days of uptime; a cold boot before a long viewing session noticeably reduces mid-stream stutter.
- Keep your playlist trimmed. A 20,000-entry M3U costs real memory to hold and render. If your provider gives you category-filtered playlists, use the slimmer one: the channel list scrolls faster and leaves more headroom for decode.
Installation (4 minutes via Downloader)
- Mi Box home → Apps → Google Play Store → search "Downloader" by AFTVnews → install.
- Allow unknown apps for Downloader when prompted (Settings → Apps → Special permissions → Install unknown apps → Downloader ON).
- Open Downloader → URL:
nightmaretv.net/apk-mibox→ Go. - 49.1 MB downloads in <15 seconds on Mi Box's 802.11ac Wi-Fi. Install dialog → Install → Done.
- Open Nightmare TV from Apps row → 7-day free trial starts.
The random Bluetooth remote disconnect issue
The Mi voice remote (small white BT remote that ships with Mi Box S / 4K) is known to randomly disconnect every few hours. This is a hardware/firmware issue, not specific to any app. Workarounds:
- Re-pair: Settings → Remote & Accessories → Add accessory → hold OK + Back on remote for 5 seconds → reconnects.
- Buy a backup: Logitech K400 mini keyboard (USB dongle) gives you a wired fallback that never disconnects.
- Mobile app: Android TV Remote app on your phone connects via Wi-Fi (independent of Bluetooth), always works as a backup.
What the Mi Box decodes in hardware
Every stream type below is within what the Amlogic VPU decodes in hardware. We have not measured these on a Mi Box ourselves, so treat the table as what the chip supports and check your own channels during the free trial:
| Stream | Bitrate | Decode | What to expect |
|---|---|---|---|
| 1080p AVC live | 5 Mbps | HW | Within hardware decode |
| 1080p HEVC 10-bit | 10 Mbps | HW | Within hardware decode |
| 4K HEVC HDR10 24p | 30 Mbps | HW | Within hardware decode |
| 4K HEVC HDR10 50p | 45 Mbps | HW | The heaviest case; the original Mi Box S has the least headroom |
| 2× multiview 1080p | 2 × 6 Mbps | HW | Two streams is the multi-view cap on 2 GB of RAM |
The 2nd Gen's S905X4 is the faster chip; the original Mi Box S (S905X) has the least headroom. On any 2 GB Mi Box, Nightmare TV caps multi-view at two streams: the RAM ceiling, not the decoder, is the limit.
No Ethernet port: the USB-Ethernet fix for buffering
Every Mi Box S, including the 2nd Gen, is Wi-Fi-only: there is no Ethernet jack. For most viewers dual-band Wi-Fi 5 is fine, but live IPTV is unforgiving of jitter: a microwave, a neighbour's congested 2.4 GHz channel, or a thick wall between the box and router shows up as periodic buffering even when your speed test looks healthy.
The clean fix is a USB-to-Ethernet adapter in the Mi Box's USB 2.0 port. Android TV recognises common ASIX/Realtek 10/100 adapters automatically; once plugged in, the box prefers the wired link and Wi-Fi jitter disappears. USB 2.0 caps throughput around 100 to 200 Mbps, which is far more than any single IPTV stream needs. If you'd rather stay wireless, put the box on the 5 GHz band and sit it within line of sight of the router; Nightmare TV adapts by itself so that brief drops interrupt playback less often. See our IPTV buffering fix guide for the full network-side checklist.
Common Mi Box IPTV quirks and how to fix them
Black borders / cropped edges on 4K HDR
The overscan problem covered above. The player has no setting for it: set the Mi Box to 3840×2160, check Settings → Display → Screen position on the Mi Box itself, and set the TV's picture size to its full-pixel mode.
Player gets killed when you switch apps
A direct symptom of the 2 GB RAM ceiling. Force-stop background streaming apps before a long session and reboot weekly (see the RAM section). Nightmare TV resumes the last channel on relaunch, so a kill is recoverable, but freeing memory prevents it.
Audio drops or no Atmos passthrough
On Android TV, audio passthrough depends on the system audio setting, not just the player. Set Settings → Display & Sound → Advanced sound → "Auto" (not PCM) so the Mi Box forwards the bitstream to your AVR or soundbar. The original Mi Box S passes HDR10 + surround; the 2nd Gen adds Dolby Vision and Dolby Atmos passthrough over its HDMI 2.1 output.
Buffering that ignores your connection speed
Usually RAM pressure or Wi-Fi jitter rather than raw bandwidth: handle it with the USB-Ethernet adapter and the memory tips above before blaming your provider.
Mi remote mapping
Both generations ship a small Bluetooth voice remote with a directional pad, OK, Back, Home, a Google Assistant/voice button and volume keys. Nightmare TV's Mi Box profile recognises the MDZ-series by itself and maps the d-pad to channel-list navigation, OK to play/select, and Back to exit the player to the list. The voice button is handled by the system and works in the channel search field. There are no dedicated colour or transport keys on the Mi remote, so channel zapping is done through the on-screen list rather than number entry. If you want number-key zapping or a guaranteed-stable input, a cheap USB or 2.4 GHz mini-keyboard works alongside the BT remote: see the disconnect workarounds above and our Android TV sideload guide for input-device tips.
The Mi Box S as a budget IPTV pick
The Mi Box S (either generation) remains a solid budget choice for a single-stream IPTV setup, and Nightmare TV runs on both with hardware HEVC decode. The honest caveat is the 2 GB RAM: it's enough for one 4K HDR channel and a trimmed playlist, but it's the reason you'll occasionally see the player evicted or a huge M3U scroll slowly. If you push multiview, run a giant playlist, or keep many apps resident, a 3 to 4 GB box (the upgrade picks at the top of this page) will feel meaningfully calmer. For everyone else, a Mi Box S plus a USB-Ethernet adapter and a weekly reboot is a genuinely good, inexpensive way to watch your own playlist. Remember Nightmare TV is a player only (you bring your own M3U or Xtream Codes login; we host no channels or content) and you can confirm it all on the 7-day free trial before paying anything. Not sure which box to buy first? Start with our best IPTV player for Android TV 2026 roundup.
Pricing
- 7-day free trial, no card
- $5.99/month: Buy the monthly plan
- $55 lifetime: Buy the lifetime plan
Frequently asked questions
Which IPTV player should I use on a Mi Box?
What is the Mi Box 4K HDR overscan bug?
Does Mi Box S have HEVC Main10 hardware decode?
Will the Mi remote work properly with Nightmare TV?
Mi Box S vs Mi Box 4K: which is better for IPTV?
Mi Box from China vs International: which should I buy?
Related
- Best IPTV Player for Android TV 2026
- Best IPTV Player for Smart TV 2026 (pillar)
- Sideload guide
- Remove Google TV home screen ads
- Fire TV setup
Frequently asked questions
Mi Box S vs Mi Box 4K, which is better for IPTV?
Mi Box 4K (MDZ-25-AA, 2GB RAM, S905X2) is the better device: faster boot, slightly more headroom for multiview. Mi Box S (MDZ-22-AB, 2GB RAM, S905X) is older and slightly slower but functionally equivalent for single-stream IPTV. Both have the same HEVC capability. The Mi TV Stick 4K (newer, 2GB RAM, S905Y4) is the smallest and most portable, and on paper it is close to the Mi Box 4K for IPTV.