IPTV Player for Mi Box: Mi Box S, Mi Box 4K, Mi TV Stick

Last updated: October 30, 2026

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).

Check it on your Mi Box: install Nightmare TV → play any 4K HDR10 IPTV stream during the free trial → check whether you see black borders or cropped edges. If you do, change the box and TV settings above.

Mi Box family compatibility

ModelCodenameSoC / RAMHEVC HWHDR overscan fix needed?
Mi Box SMDZ-22-AB (International)S905X / 2 GBYes (Main10)Yes: see the settings above
Mi Box 4 / Mi Box 4KMDZ-25-AA (International)S905X2 / 2 GBYes (Main10)Yes: see the settings above
Mi Box 4 (China)MDZ-19-AAS905X / 2 GBYesMi UI required: flash International firmware first
Mi TV Stick 4K(Various) MDZ-27-AAS905Y4 / 2 GBYes (Main10)Less common; same settings apply
Mi TV Stick 1080p (older)MDZ-24-AAS805Y / 1 GBPartial1080p 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)
SoCAmlogic S905X (A53)Amlogic S905X4 (A55)
RAM / Storage2 GB / 8 GB2 GB / 8 GB
OSAndroid TV 8.1 → 9/10Google TV (Android 11 → 14)
HDRHDR10Dolby Vision + HDR10+
Extra codecsHEVC, VP9, H.264+ AV1 hardware decode
HDMI / Wi-Fi / BTHDMI 2.0 / Wi-Fi 5 / BT 4.2HDMI 2.1 / Wi-Fi 5 / BT 5.0
Ethernet portNone (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:

Installation (4 minutes via Downloader)

  1. Mi Box home → Apps → Google Play Store → search "Downloader" by AFTVnews → install.
  2. Allow unknown apps for Downloader when prompted (Settings → Apps → Special permissions → Install unknown apps → Downloader ON).
  3. Open Downloader → URL: nightmaretv.net/apk-mibox → Go.
  4. 49.1 MB downloads in <15 seconds on Mi Box's 802.11ac Wi-Fi. Install dialog → Install → Done.
  5. 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:

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:

StreamBitrateDecodeWhat to expect
1080p AVC live5 MbpsHWWithin hardware decode
1080p HEVC 10-bit10 MbpsHWWithin hardware decode
4K HEVC HDR10 24p30 MbpsHWWithin hardware decode
4K HEVC HDR10 50p45 MbpsHWThe heaviest case; the original Mi Box S has the least headroom
2× multiview 1080p2 × 6 MbpsHWTwo 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

Frequently asked questions

Which IPTV player should I use on a Mi Box?
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). You bring your own M3U or Xtream playlist.
What is the Mi Box 4K HDR overscan bug?
Some owners of the Mi Box S (MDZ-22-AB) and Mi Box 4K (MDZ-25-AA) report that 4K HDR10 content shows black borders on all sides or, worse, has the edges of the image cut off (overscan). Nightmare TV has no Mi Box specific fix for it. The settings that usually matter are the box's output resolution (3840×2160 rather than 4096×2160), its screen position setting, and the TV's picture size setting for that HDMI input (often called Just Scan, Screen Fit or Full Pixel).
Does Mi Box S have HEVC Main10 hardware decode?
Yes. Mi Box S uses Amlogic S905X (Mi Box S) or S905X2 (Mi Box 4K) with native HEVC Main10 4K 60p hardware decode capability. Nightmare TV uses that hardware decoder, so the heavy decode work runs on the dedicated video unit and leaves the CPU free for the EPG and channel-list UI.
Will the Mi remote work properly with Nightmare TV?
Yes. Nightmare TV includes a Mi Box remote profile that auto-detects MDZ-22-AB and similar models, mapping the standard play/pause + media transport keys. The Mi remote's voice button is system-level and works in our list search. Known issue across all Mi Box players: random Bluetooth remote disconnect every few hours, re-pair via Settings → Remote & Accessories, or use a wired/IR alternative.
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.
Mi Box from China vs International: which should I buy?
International (MDZ-22-AB) for English UI and Play Store. Chinese Mi Box (Mi Box 4, MDZ-19-AA) ships without Google Play and with Chinese-only Mi UI. International firmware can be flashed onto China models but voids warranty and requires unlock keys. For Nightmare TV use, just buy International: much easier.

Related

ALSO ON WINDOWS
Get Nightmare TV on Microsoft Store
Native Windows build · same libmpv engine · 7-day free trial
Open in Microsoft Store →

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.