mpv Plays Audio but No Video, Black or Green Screen? Video Output Backend, Hardware Decoding & Shader Diagnosis Guide

Summary
A film that plays sound but shows a black or green screen in mpv fails at one of three layers: the video output backend, the hardware decoding API, or the shaders. This guide runs three tests — output backend, decoding API and shaders — changing one setting at a time to find which layer fails.
What "mpv plays audio but no video, black or green screen" actually means
Start by defining the symptom precisely, because three different failures are described with the same words, and they point in different directions. The symptom this guide covers is a problem that appears on a Windows or Linux computer, while watching a video with mpv, and only in that setting. The same file plays normally in VLC or in a browser, and only in mpv does something go wrong: the sound plays but the picture is a black screen, or the picture is a green screen, or the picture is garbled, or playback stutters so badly that the film cannot be watched smoothly. That comparison is itself the first piece of evidence. If the same file plays in VLC and fails in mpv, the fault is in the mpv layer, not in the file, the decoding support or the graphics card layer.
Before any test is run, the first split must be made, because sound with no picture, a green screen and stuttering are three different directions and must never be lumped together. Sound with no picture, or a black screen, most often points at the output backend not getting the picture to the display. A green screen or a garbled picture most often points at the decoded picture being in a format the output does not accept. Stuttering most often points at the decoding or the shader load not keeping up. The three directions correspond to the three tests in this guide, and one test cannot stand in for all three.
That is not the same as these lookalikes, and they should be separated before any testing begins:
- The same file failing in VLC as well as in mpv. That is not an mpv problem. If VLC also shows a black or green screen, the fault is in the decoding or the driver layer, and the general Windows video decoding guide or the Linux video playback guide is the right place to look.
- A Dolby Vision file playing with the wrong colours in mpv. That is a Dolby Vision support and profile problem, covered by its own guide, and it is not an output backend or decoding API problem.
- A problem that only appears while frame interpolation is running. This guide assumes interpolation is switched off or not installed at all. If interpolation is running and the picture fails, the interpolation guide is the right place to look first; only if the fault remains with interpolation switched off does this guide apply.
- A game showing the wrong colours or artefacts after post-processing effects are applied. That is a game effects problem, covered by the guide on game post-processing effects, and it uses a different program and a different pipeline from mpv video shaders.
- A video that only fails when streamed over a network, while local files play normally. That is a streaming or network problem, not an mpv settings problem.
- mpv closing before any video is played at all. That is a start-up problem, and the clean-settings precondition below is the way to divide it, not the three tests.
If the symptom is one of those lookalikes, the tests below will still teach how mpv playback works, but their conclusions will not fit neatly. If the symptom is that the same file plays in VLC and fails in mpv, work through the three tests in order. The order matters: the first test decides whether the output backend can get a picture to the display at all, the second decides whether the decoding API hands over a picture in a format the backend accepts, and the third decides whether the shaders are damaging the picture. Changing the output backend, the decoding API and the shaders all at once before the first test is done destroys the most valuable diagnostic evidence available — the difference between a setup that was already wrong and a setup that one changed setting broke.
How mpv playback works, and where the picture can be lost
A video file is not a picture until three separate steps have happened, and each step has its own setting in mpv. That is why a single wrong setting can produce a black screen, a green screen or stuttering, and why the three failures need three separate tests.
The first step is the video output backend, which takes the decoded picture and puts it on the display. mpv has more than one backend: vo=gpu is the established GPU-accelerated output, and vo=gpu-next is the newer output renderer, described in one guide as the modern video output renderer needed for 4K scaling and HDR pass-through. Inside each backend, the graphics API setting, gpu-api, decides which graphics API is accepted — opengl, vulkan or d3d11, depending on what is actually available in the installation. If the backend or the API is wrong for the machine, the decoded picture never reaches the display, and the symptom is a black screen, a green screen, flicker, or mpv closing at the moment the output is initialised.
The second step is hardware decoding, which turns the compressed video data into pictures. The hardware decoding setting, hwdec, decides which decoding API does that work: no means software decoding, auto means mpv chooses, and a named API — nvdec for NVIDIA, vaapi for Intel and AMD, d3d11va for Windows — pins it to one API. The official mpv manual states that different decoding APIs have different requirements on the video output: nvdec needs vo=gpu or gpu-next, d3d11va needs vo=gpu or gpu-next with a d3d11 or angle context, and the Vulkan path needs vo=gpu-next. Each API also has a copy-back variant — d3d11va-copy, vaapi-copy, nvdec-copy — which copies the picture back into system memory instead of mapping it directly on the graphics card. That distinction matters, because a direct mapping that fails can still work when the picture is copied back through system memory first.
The third step is the shaders, which process every frame inside the output backend. The shader setting, glsl-shaders, can load upscaling shaders such as Anime4K, which enlarge the picture. A shader that is wrong, or that does not suit the backend in use, damages every frame it touches, and the symptom is a black, green or garbled picture, or playback that stutters under the extra load.
A fourth fact limits what this guide can promise. Settings in mpv can come from more than one place: the configuration file, the command line, a launcher shortcut, a script, or a front-end program. Checking only one place is not enough, and the clean-settings precondition below exists for exactly that reason. No download or installation steps for mpv, shaders or scripts are given here, and no terminal command is given either: this guide describes setting names and comparison methods only.
Before the three tests: three preconditions
These are preconditions, not tests. They are checked before any of the three tests is run, and they decide whether the three tests apply at all.
Precondition one: the same file plays in VLC. Play the same file in VLC. If VLC plays it smoothly and mpv shows a black or green screen, the fault is in the mpv layer, and this guide applies. If VLC also shows a black or green screen, the fault is not in the mpv layer, and the general decoding guide or the Linux driver guide is the right place to look.
Precondition two: a clean-settings comparison. Play the same file with mpv using its default settings, without loading the usual configuration, scripts or launcher shortcut. If the default settings show a picture and the usual settings show a black screen, the fault is in the configuration, the scripts or the shaders, and the three tests will divide them one by one. If the default settings also show a black screen, the fault is not in the settings layer, and the file itself must be checked first — the file may have no video track at all, only sound, and that is not a fault.
Precondition three: the file itself has a video track, and the codec is supported. Play a different local file that is known to be normal. If only one file fails and other files play normally, the fault is in the file layer — its codec, its pixel format, or damage to the file — and not in the mpv layer.
Test 1: Compare video output backend vo=gpu against vo=gpu-next
Test 1 is the gate. It is done before touching the decoding API or the shaders, because it separates "the output backend cannot get a picture to the display" from "the backend is fine and the fault is further down the chain".
Play the same file, in the same mpv, on the same display, and try the video output backends one at a time: first vo=gpu, then vo=gpu-next. Inside each backend, try the graphics API settings one at a time — opengl, vulkan and d3d11, as actually available in the installation. Change only one setting at a time, and play the same passage after each change.
| Result | What it means | Where to go next |
|---|---|---|
| One backend or API combination shows a picture, while another shows a black screen, a green screen or flicker | The output layer: the fault follows the output backend. The backend was chosen wrongly, so the decoded picture could not be handed over to the display. | The diagnosis is complete at this layer. Keep the combination that shows a picture. |
| Every backend and API shows the same black or green screen | The fault is not in the output layer. | Go to Test 2 and look at the hardware decoding API. |
| One backend makes mpv close at once, or reports that the video output or the GPU context could not be initialised | That is also the output layer: the backend failed to initialise. It is not a file problem. | Note down which backend failed to initialise before going to Test 2. |
Inside this test sit two sub-checks, and they belong inside this test. They must not be split off as separate tests, because they answer the same question from two sides: is the output backend set up correctly?
Sub-check one: the scaling setting. The scaling filter in mpv, for example ewa_lanczos, only takes effect under vo=gpu, vo=gpu-next or libmpv. A wrong scaling setting will not make the picture go completely black, but it will affect picture quality. It is a sub-check inside Test 1, not a separate test.
Sub-check two: the GPU context. On some platforms, forcing a GPU context that does not suit the machine makes the backend fail to initialise. Restoring the context to automatic selection is a sub-check inside Test 1.
To be clear about the resemblance: the shape of this output-backend comparison resembles the general guide on Windows video playback, which says to try the renderers one at a time. The shapes are similar, but the variables are different. That guide asks about generic player renderers, while this test asks about the mpv-specific video output backend combined with the graphics API — gpu against gpu-next, crossed with opengl, vulkan and d3d11 — and its option set and failure modes, including initialisation failure and a mismatched context, are specific to mpv. Similar shape, different variable, and the conclusion of the general guide cannot be carried across and used here.
Test 2: Compare hardware decoding API hwdec=no against auto against a named API
Test 2 changes one variable at a time inside hardware decoding, and only after Test 1 has proved which output backend shows a picture. It asks whether the decoding API is the deciding variable. Keep the output backend fixed at the combination Test 1 found, play the same file, and try the hardware decoding settings one at a time: first hwdec=no, which is software decoding, then hwdec=auto, then a named API — nvdec for NVIDIA, vaapi for Intel and AMD, d3d11va for Windows, depending on the graphics card brand and the platform. For each API, compare zero-copy against copy-back — for example d3d11va against d3d11va-copy, and nvdec against nvdec-copy.
| Result | What it means | Where to go next |
|---|---|---|
| Software decoding shows a picture, while hardware decoding shows a black or green screen | The decoding interoperation layer: the fault follows the decoding API. The problem is not decoding ability, but that the picture format hardware decoding produces does not suit the output backend. A direct mapping that fails can still work through copy-back. | The diagnosis is complete at this layer. Keep the decoding setting that shows a picture. |
| A named API shows a picture, while auto shows a black screen | Automatic selection chose the wrong API. The hardware is not at fault; the choice is. | Keep the named API that works. |
| Auto works, while a named API does not | That named API does not suit this machine. | Keep auto, and do not insist on the named API. |
| Software decoding also shows a black screen | The fault is not in the decoding layer. | Go back to Test 1, or re-check the preconditions — the file itself may have no video track. |
Inside this test sit two sub-checks, and they belong inside this test. They must not be split off as separate tests, because they answer the same question from two sides: is the decoding API handing over a picture the backend accepts?
Sub-check one: the decoding codec list. The hwdec-codecs setting decides which codecs may use hardware decoding. If one codec fails with hardware decoding while others work, that is a sub-check inside Test 2, not a separate test.
Sub-check two: an accidental decoding switch. The default key bindings in mpv include a key combination that cycles the hardware decoding setting. Pressing it by accident during playback changes the behaviour suddenly. The only useful check is to watch whether that switch key was pressed by accident. It is an auxiliary check, not a test in itself, and it must not be presented as Test 2 itself.
To be clear about the resemblance: the shape of this hardware decoding on-off comparison resembles the hardware decoding switch in the general Windows video playback guide and in the Linux video playback guide. The shapes are similar, but the variables are different. Those guides ask whether hardware decoding is switched on or off — the switch layer. This test asks, once decoding is on, which API is used — the API choice layer — and whether the picture travels by zero-copy direct mapping or by copy-back through system memory — the transport layer. The switch is the first layer, and API choice is the second; those guides never discuss API choice, and their conclusions cannot be carried across and used here.
Test 3: Compare shaders glsl-shaders on against off
Test 3 changes the variable that decides whether the shaders are damaging the picture. The output backend and the decoding setting are fixed at the combination Tests 1 and 2 found, and the same file is played. First switch all shaders off and play a passage, then switch them back on one at a time — for example an Anime4K upscaling shader — testing the same passage after each change.
| Result | What it means | Where to go next |
|---|---|---|
| With all shaders off the picture is normal at once, and one shader makes it black, green, garbled or stuttering the moment it is switched on | The shader layer: the fault follows that shader. Shaders process every frame inside the output backend, so one that is wrong or does not suit the backend damages the whole frame. | The diagnosis is complete at this layer. Keep that shader off. |
| With all shaders off the picture still fails | The fault is not in the shader layer. | Go back to Tests 1 and 2, or stop here. |
| One shader only fails under one backend, and works under another | A shader-and-backend interoperation problem. Note down which combination fails, and do not present the shader itself as always broken. | Keep the combination that works, and note the failing pair. |
To be clear about the resemblance: the shape of this one-by-one switching comparison resembles the guide on game post-processing effects, where effects are switched on one at a time. The shapes are similar, but the variables are different. That guide asks about game effects injected into a game's rendering pipeline, while this test asks about mpv video shaders processing a video picture inside the player. The program, the pipeline and the failure modes are all different, and the conclusion of the game guide cannot be carried across and used here. The two kinds of shader share a name and nothing else: one belongs to games, the other belongs to video playback in mpv, and they must never be lumped together.
How the three tests fit together
| Test | What it proves | If it fails, the fault is in |
|---|---|---|
| Test 1: Video output backend vo=gpu against vo=gpu-next, with the graphics API | Whether the output backend can get a picture to the display | The output backend, the graphics API, or — if mpv closes at once — backend initialisation |
| Test 2: Hardware decoding API hwdec=no against auto against a named API, zero-copy against copy-back, with the codec-list and accidental-switch sub-checks inside it | Whether the decoding API hands over a picture in a format the backend accepts | The decoding API choice, the transport method, or — if software decoding also fails — the file itself |
| Test 3: Shaders glsl-shaders on against off, one at a time | Whether the shaders are damaging the picture | A shader, or a shader-and-backend combination |
Reading the table from top to bottom is the whole method: prove the output backend can show a picture, prove the decoding API hands over a picture in the right format, then prove the shaders are not damaging it. A fault that survives all three tests with every layer apparently correct has not been proved unfixable — it has been proved to need a different investigation, starting with what changed most recently: a driver update, a player update, a different file, or a setting changed in a different place.
Common misconceptions
"Sound with no picture means the file is broken." No. If the same file plays normally in VLC, the file is not broken. The fault is in the mpv layer, and Test 1 separates the output backend from the rest.
"A green screen means the graphics card is failing." No. A green screen most often means the decoded picture is in a format the output does not accept. Test 2 compares software decoding against hardware decoding, and zero-copy against copy-back, to find whether the fault follows the decoding API.
"Hardware decoding should always be left on auto." No. Automatic selection can choose the wrong API for a machine, and a named API can work where auto fails — or the other way round. Test 2 compares auto against the named APIs one at a time instead of assuming auto is right.
"Copy-back is always slower, so it is never the right answer." No. Copy-back copies the picture through system memory instead of mapping it directly on the graphics card, and when the direct mapping fails, copy-back is the path that shows a picture. Speed is not the question in this test; whether a picture appears at all is.
"Shaders only improve the picture, so they cannot cause a black screen." No. Shaders process every frame inside the output backend, and one that is wrong or does not suit the backend can damage the whole frame. Test 3 switches them off and back on one at a time to prove it.
"Video shaders in mpv are the same thing as game effects." No. Game effects are injected into a game's rendering pipeline, while mpv video shaders process a video picture inside the player. They share a name and nothing else, and the conclusions of the game guide cannot be carried across to mpv.
Boundaries: what this guide does not cover
The neighbouring topics are boundaries, not tests in this guide. Linux hardware decoding with its driver checks, browser flags and codec support ladder belongs to the Linux video playback guide. That guide uses playing the same file in VLC or mpv as an auxiliary observation to decide whether the fault is in the browser layer or the whole system — that observation only confirms which layer the fault sits in, and it is not an mpv settings test. General Windows video playback, with its generic renderer trial and its hardware acceleration switch, belongs to the Windows decoding guide, and its conclusions cannot be carried across, because the mpv settings and failure modes in this guide are different.
Dolby Vision playback belongs to its own guide. Frame interpolation belongs to its own guide, and this guide assumes interpolation is switched off or not installed. Game post-processing effects belong to their own guide, and mpv video shaders must never be confused with them. Old-game wrapper layers, media-server transcoding and live-recording encoder overload all have their own guides. mpv closing before any video is played is a start-up problem, and the clean-settings precondition is the way to divide it. No download or installation steps for mpv, shaders or scripts are given here, and no shader file is described as something to obtain from anywhere.
Prevention and ongoing care
A setup that works today can stop working after an update, because the chain depends on mpv, the graphics card driver and the configuration all agreeing with each other. A few habits keep the chain visible so that the next failure is quick to divide:
- Keep a short note of the working configuration: which video output backend and graphics API are in use, which hardware decoding API is selected, whether zero-copy or copy-back is in use, and which shaders are switched on. When something changes, the note tells you what changed.
- Do not stack changes. If you change the output backend, the decoding API and the shaders in the same session, no later test can tell you which change mattered. Change one thing, play the same passage again, and record the result.
- Confirm that a file plays in VLC before judging mpv. A file that fails in both players is a file or decoding problem, not an mpv settings problem.
- Treat setting recommendations and version figures as snapshots, not permanent answers. No single output backend, graphics API or decoding API suits every file and every computer, so the current official manual is the authority at the time of reading before treating any combination as the answer.
- When a new shader is tried for the first time, switch it on alone and test the same passage before adding another. A single shader that fails costs minutes to divide; several switched on together cost the whole diagnosis.
When to seek professional help
If Tests 1 to 3 have been run in order and the results point to a layer that cannot be changed safely — for example, no output backend shows a picture although the file plays in VLC, or playback stutters in every player and at every setting — that is the point to bring the machine in rather than keep changing settings. The same applies if the problem appears alongside other symptoms, such as the graphics card not being detected at all, the machine overheating, or a display failing, which suggest a problem beyond player settings.
Diagnosis and repair are charged under the site's public three-tier pricing, from HK$400 to HK$2,800 depending on the work involved, with the actual price subject to quote after inspection. The shop is at Room 1209, Dali Plaza, Shek Mun. The phone number is 2186 8010 and WhatsApp is 6558 6806. There is no Mong Kok shop and no on-site service, so please bring the machine to the Shek Mun shop, and bring the notes from your three tests — which backend shows a picture, which decoding API works, and which shader fails — because those notes are the fastest route to the right repair.
Frequently asked questions
The same file plays in VLC but shows a black screen in mpv — is the graphics card broken?
Not necessarily — the two cases point at different layers. If the same file plays normally in VLC and only fails in mpv, the fault is in the mpv layer, and the graphics card itself is outputting the picture to the display normally. Start with Test 1, the output-backend comparison: if one backend shows a picture and another shows a black screen, that is the output layer, not a broken graphics card. Do not decide the graphics card is broken first, and do not replace the graphics card before the layers have been divided.
Should I use vo=gpu or vo=gpu-next?
Try them one at a time, and keep whichever one shows a picture. vo=gpu is the default GPU-accelerated output, and gpu-next is faster and better looking, but it was once experimental. Inside each backend, try the graphics API settings one at a time — opengl, vulkan and d3d11, as actually available in the installation. No one combination suits every file and every computer, so play the same passage with the same file in the same mpv, trying each combination in turn, and keep the combination that shows a picture.
The picture appears with software decoding but goes black with hardware decoding — is hardware decoding broken?
Not necessarily — that is most often the decoding interoperation layer, not a decoding ability problem. Software decoding showing a picture while hardware decoding shows a black screen means the picture format hardware decoding produces does not suit the output backend: zero-copy direct mapping fails, while copy-back through system memory works. Keep the output backend fixed at the combination Test 1 found, and try hwdec=no, auto and a named API one at a time, comparing zero-copy against copy-back for each API, and keep the combination that shows a picture. If a named API shows a picture while auto shows a black screen, automatic selection chose the wrong API — keep the named API. The other way round also happens: if auto works and a named API does not, that named API does not suit this machine, so keep auto.
How do I tell zero-copy apart from copy-back?
Zero-copy is direct mapping: the decoded picture is mapped directly as a GPU texture to the output layer. Copy-back copies the picture back into system memory before handing it to the output layer. The official mpv manual lists the copy-back variants as d3d11va-copy, vaapi-copy and nvdec-copy. Try both transport methods with the same API: if zero-copy shows a black screen and copy-back shows a picture, the direct mapping has failed — keep copy-back.
The picture is still black with all shaders switched off — is it a shader problem?
No — if the picture still fails with all shaders switched off, the fault is not in the shader layer. Go back to Test 1 or Test 2: try the output backends one at a time and the hardware decoding APIs one at a time, and see whether the fault follows the backend or the decoding API. The shader layer is proved the other way round: all shaders off and the picture is normal at once, and one shader makes it fail the moment it is switched on. If the picture still fails with all shaders off, look at the other layers instead of circling inside the shaders.
mpv closes as soon as it starts, or reports that the video output cannot be initialised — is that one of the three tests?
No — that is an output-layer initialisation failure, not a problem that appears during playback. If one backend makes mpv close at once or reports that the video output or the GPU context could not be initialised, that is still the output layer: the backend failed to initialise, and it is not a file problem. Note down which backend failed to initialise, then try another backend. If mpv will not start at all and closes before any video is played, that is the start-up layer — a wrong setting file or a wrong script — and the clean-settings comparison can divide whether it is in the settings layer.
The picture only fails on streamed video, while local files play normally — how do I divide that?
That is a streaming or network layer problem, not this guide. This guide only covers local files failing in mpv. If streamed video fails while local files play normally, the fault is on the streaming or network side, not in the mpv settings. Play a different local file that is known to be normal: if the local file plays normally and only the stream fails, that is the streaming layer; if the local file fails too, work through the three tests in this guide.
I pressed a key during playback and the picture suddenly changed — what happened?
It may be an accidental hardware decoding switch. The default key bindings in mpv include a key combination that cycles the hardware decoding setting, and pressing it by accident during playback changes the behaviour suddenly. This is an auxiliary check, not a test in itself. Think back to whether the symptom appeared suddenly after a key was pressed; if so, note down that observation, then use Test 2 to compare the APIs one at a time and confirm, and do not present it as Test 2 itself.
Only one file fails, while other files play normally — is mpv broken?
Not necessarily — that is most often the file layer. If only one file fails and other files play normally, the fault is in the codec, the pixel format or damage to the file, not in the mpv layer. Play a different local file that is known to be normal, and check whether this file itself has a video track: a file may have no video track at all, only sound, and that is not a fault. The file layer needs to be checked on the file side, not inside the mpv settings.
An HDR file plays grey or overexposed in mpv — is it the same thing?
No — that is the tone-mapping layer, not the three tests in this guide. An HDR file that plays grey or overexposed in mpv belongs to the player tone-mapping side or the display HDR settings side, and the HDR tone-mapping settings in mpv are not one of the three tests here. This guide only covers sound with no picture, a black screen, a green screen, a garbled picture or stuttering; the grey or off-colour side has its own tests, and the two sides must not be lumped together.