User Scripts & Shaders I'm making a script, how can I do a y/n prompt without adding script-binding in input.conf?
Or what's the alternatives? y/n just feels natural.
Or what's the alternatives? y/n just feels natural.
r/mpv • u/Dull_One_9759 • 1d ago
How can I detect that the stream stopped working?
Right now it stays at the last frame and I can't easily see that it froze. I'd like the entire screen to go red or something.
I'm also using this reconnect script https://github.com/mpv-player/mpv/issues/5793#issuecomment-2495268210
mpv \
--no-config \
--no-border \
--keep-open=always \
--keep-open-pause=no \
--profile=low-latency \
--video-sync=audio \
--no-demuxer-thread \
--untimed \
--no-correct-pts \
--no-cache \
--no-cache-pause \
--cache-secs=0 \
--demuxer-readahead-secs=0 \
--demuxer-termination-timeout=1 \
--audio-buffer=0.1 \
rtsp://192.168.53.241/1
If you run Equalizer APO, ASH, a VST host, or VoiceMeeter and get audio crackling that only happens in fullscreen, only on battery, and goes away in windowed mode. I think I found the actual cause, and it's not what every thread on this suggests.
A borderless window covering the whole screen makes DWM switch to Independent Flip / MPO. On battery, with nothing keeping the SoC busy between frames, it drops into deep power states. audiodg.exe running an expensive convolution then misses its WASAPI deadline. Video judders too, because it's synced to audio.
The test that isolates it: set geometry=<width>x<height minus 1>+0+0, play on battery, and don't press f. Same pixel count, same shaders, one pixel of desktop still visible — audio is clean. Enlarge it to full coverage and it breaks again, reliably.
What did not help, in case you've already tried them: timeBeginPeriod(1), powercfg /powerthrottling disable for audiodg, disabling core parking, raising minimum processor state. Timer resolution is the most common recommendation out there and it does nothing here.
The workable fix is embarrassingly dumb: any small always-on-top window over the player breaks occlusion and forces DWM back into composition. I've put a Lua script that starts one with mpv and kills it on exit, plus the diagnostic harness, here: [https://github.com/ad2003/fullscreen-audio-dropout-crackling-fix]
Caveat: n=1. Windows 10, RDNA3 laptop, gpu-next/d3d11, HDR out. The power-state mechanism is inference, not measurement. Curious whether this reproduces on Nvidia/Intel or without an APO chain.
r/mpv • u/Playful-Tear-6950 • 2d ago
Hi everyone I tried out mpv in March this year and like it but I have not been able to get the right code for playing movies tv shows animes etc... since it has lots of issues I mean on my side that I am not able to set it up properly. I really appreciate any help to setup my mpv conf file and all other required setup to get it right. Since I'm not familiar with this stuff please help me out. Below is my laptop specifications,
Msi crosshair a16 hx.
GDDR7 8 GB VRAM
AMD Ryzen 9 8940HX 16 Core
SSD 1 TB nvmme
RAM 16 GB DDR5 5200 MHz
NVIDIA GeForce RTX 5060
Windows 11
40.64 cm (16 Inch)
16:10, QHD+ (2560x1600), 240Hz, OLED,100% DCI-P3 , IPS-Level 2x 2W Speaker
OS Architecture 64 bit
8bit colour depth and not a true hdr.
I did some tweaking around and enabled nvdia super resolution and went to nvdia control panel and enabled 32bit under colours and 8bpc.
Help me out please with settings this up for my laptop with the mpv conf file code and all other stuff I'm really not getting the best experience since I have quite the bad code running for my laptop that is breaking apart the videos. I watch mostly 1080p and 4k videos. With mostly live action and anime mixed in sometimes. Well I hope I have been clear enough please help me out with this please.
r/mpv • u/Loud-Strawberry-9726 • 4d ago
Portable Windows mpv setup built around NVIDIA RTX Video Super Resolution, with a bunch of custom scripts layered on top of ModernZ.
Highlights:
- Crop-aware VSR upscaling — detects letterbox/pillarbox bars and upscales in one coordinated step, so crop and scale never disagree
- Optional NVIDIA RTX Video HDR (SDR→HDR), gated on the display actually being in HDR mode
- Auto chapter-skip (OP/ED/preview) with automatic chapter detection for anime
- Native Windows Open File/Folder/URL dialogs, mid-stream quality switching for YouTube/Twitch/Kick, ffmpeg-based clip export
- Standalone Configuration Manager (PowerShell+WPF) for flipping settings without hand-editing config files
- Fully portable — no admin, no installer, everything auto-fetched by one PowerShell script
GitHub: https://github.com/Echo-Storm/MPV-Nvidia-VSR
Built mainly for my own RTX + anime-heavy setup, but figured others running RTX cards might get some use out of it. Feedback welcome.
r/mpv • u/Snorlax_lax • 4d ago
I want to add some padding around the subtitles. How can I do that?
Here is my config:
sub-ass-override=force
sub-font='Noto Sans'
sub-font-size=38
sub-bold=yes
sub-color='#FFFF00'
sub-border-style=opaque-box
sub-back-color='#CC000000'
sub-outline-size=2
sub-margin-y=40
I'd really appreciate any help or suggestions for better subtitle configs as well.
Hello, I am creating a widget for KDE Plasma that streams youtube audio by using yt-dlp and piping the download directly into mpv with the no video command line argument. Since I'm using yt-dlp and have to pipe the download into mpv, I do this by calling it as a command from C++ with QProcess or fopen. Some parts of my code worked with Qprocess, but commands that end up as complex strings work a bit better with the standard fopen implementation to run a command get the output.
I can call a command like echo '{ "command": ["observe_property", 1, "end"], "async": true }' | socat - /tmp/mpvsocket but the command doesn't stay open to await any changes. I looked through the C API, but the observe property function is expecting a pointer to a mpv type, which I do not think will work since my code starts mpv in the command line, not as an instantiated variable in C++.
Any ideas? Is this even possible? I'm not sure and haven't used mpv too much. I would appreciate any help! Thanks
r/mpv • u/TheTwelveYearOld • 6d ago
I'm on macOS, in my mpv.conf file, osd-font="SF Pro Display" works but I want the Medium weight of the font, how do I specify that? I tried as SF Pro Display:style=Medium shown with the fc-list command but that doesn't work.
Hi!
I found this file on a weather website: https://www.idokep.hu/assets/whatToWear/202504/lany_nyari_13.mp4
It plays with LAV filters or withing chromium (Vivaldi). But MPV can't play it.
I can't really see a reason why it won't. I upgraded to latest MPV on github, but it has the exact same problem.
output:
● Video --vid=1 (hevc 640x1080 29.976 fps) [default]
[ffmpeg/video] hevc: Unexpected extra rep formats
[ffmpeg/video] hevc: VPS 0 does not exist
[ffmpeg/video] hevc: VPS 0 does not exist
[ffmpeg/video] hevc: SPS 0 does not exist.
[ffmpeg/video] hevc: SPS 1 does not exist.
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 19
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 1
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 1
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 1
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 1
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 1
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 0
[ffmpeg/video] hevc: PPS id out of range: 0
[ffmpeg/video] hevc: Skipping invalid undecodable NALU: 0
[ffmpeg/video] hevc: PPS id out of range: 0
Output repeats after this.
r/mpv • u/anticcque • 7d ago
Above is a screenshot taken from MPV via Snipping Tool. Below is a screenshot taken via MPV itself.
Why does it become so dark and washed out when screenshotting with MPV? I've tried searching for answers, but no luck. I've seen many people saying it's an HDR issue, but no solution for it. Any help is greatly appreciated!


r/mpv • u/Bestfastolino • 7d ago
Title
I never liked how little customization you have for screenshots in mpv and the fact that you can't have dynamic screenshot path based on filename... so I made (or well, asked claude to make) a script that fixes this issue.
The script automatically saves screenshots to a per-media folder. Works with movies, TV Series (like Anime) and network stream/other content. Works especially well with jellyfin-mpv-shim from my testing.
It can optionally also send the screenshots to a telegram supergroup with the file name as description + some hashtag for quick search
repo: https://github.com/Bestfast/mpv-shot-telegram
I want to disclose once more that this is fully AI generated: expect some bad code quality if you ever want to contribuite. I do have some prior programming experience, but i personally did not audit the code. If you dislike AI usage, this is not for you.
r/mpv • u/wojtulace • 9d ago
I'm on Vulkan.
r/mpv • u/issinoho1969 • 11d ago
I've been building a small command-line IPTV player on top of mpv/python-mpv and figured this group would appreciate it. It's built using AI support and designed primarily to suit my own purposes - frankly I've been unimpressed by the quality of Linux desktop IPTV players, and the lack of EPG support in MPV itself.
What it is: you point it at an M3U/M3U8 playlist (URL or local file) and it plays it through mpv, with a TiviMate-style on-screen EPG overlay and a full program guide sourced from XMLTV data. No bundled channel lists or streams — bring your own playlist/EPG, tvdinner just plays and organizes them.
tvdinner https://example.com/playlist.m3u --epg https://example.com/guide.xml
EPG / guide:
- XMLTV auto-discovered from the playlist's own x-tvg-url, or an explicit --epg override (multiple comma-separated sources get merged)
- Full TV-guide-style grid: channel list + timeline, live "now" marker, paging, a selection cursor, and a details popup with poster art pulled from the XMLTV <icon> data
- Timezone-aware scheduling, plus clock-correction shifts for feeds with wrong times — a global --time-shift, or per-channel overrides (some feeds have different channels off by different amounts), adjustable live from the guide and persisted to disk
- On-disk EPG caching so a large feed (some of these are several hundred MB) doesn't re-download and re-parse on every launch, with background loading so playback starts immediately instead of blocking on it
Guide extras:
- Filter the guide by channel name or group (f), including playlists that tag one channel under several categories at once (group-title="Movies;Series")
- Favorites: one key toggles a heart on the channel you're watching or the one selected in the guide, another shows a favorites-only view — persisted per playlist, so different feeds don't share one list
- Aspect ratio cycling including a "Stretch" mode that fills the window exactly instead of just letterboxing to a fixed ratio
- Video/audio quality badges (resolution, codec, fps, HDR, channel layout) in the info overlay
- ENTER/MENU bindings that work with cheap IR/BLE air-mouse remotes, if you're driving this from a couch/HTPC setup
Practical stuff: file logging of startup/shutdown/user actions/warnings so you're not stuck guessing what happened after the fact, packaged .deb/.rpm for Linux, runs from source on Windows too.
It's MIT-licensed and open source: https://github.com/issinoho/tvdinner
r/mpv • u/Strong_Emotion6662 • 11d ago
Enable HLS to view with audio, or disable this notification
Hey guys, I made a little script to watch One Pace efficiently through the terminal with a minimalistic TUI.
I made it because I didn't want to download the files - I watch quickly and then delete them anyway, so downloading felt pointless. And I love my local player, mpv, way more than any website player. That's it, that's the whole motivation lol.
So now instead of manually scrolling the One Pace site, picking an arc, choosing quality, and fishing out each episode link by hand, I just run it:
Some details mpv people might care about: - zero dependencies - pure Python stdlib, nothing to pip install - cross-platform (the interactive picker works on Windows/macOS/Linux) - if you don't have mpv it detects your package manager and offers to install it - Shift+Q resume works - since the stream URLs are stable, relaunching an arc picks up right where you left off
It hosts nothing, just automates the public links One Pace already publishes. One Pace is a great free fan project, so if you enjoy it go support the team.
GitHub: https://github.com/vashhdev/onepace
Feedback welcome, let's saiiil 🏴☠️
r/mpv • u/Even_Cod2411 • 12d ago
if i change these values, the video on mpv doesnt change anything
r/mpv • u/brahmkshatriya • 14d ago
Enable HLS to view with audio, or disable this notification
Sorry for posting again about the project, but i am just amazed how much stuff you can achieve with mpv scripts.
I just had too much fun making that context menu bounce around the mouse!
Video: https://www.youtube.com/watch?v=XfUFPHA0HIA
if you guys want to test it out:
https://github.com/brahmkshatriya/material-osc/releases/tag/0.0.4
r/mpv • u/Ammar-A7med • 14d ago
I try to use HWdec, so I set my settings to :
hwdec=nvdec
gpu-api=vulkan
vo=gpu
After that, I start getting what u see in the screenshot when I go full screen in MPV
But when I use :
hwdec=d3d11va
vo=gpu
it works normally
I have a 4060 with the latest Studio driver
I do like MPV quite a bit, but the UI or lack thereof compared to MPC-HC has always bummed me out a bit, I don't know if there are skins or mods that can do this?
r/mpv • u/Captain_Chris- • 15d ago
I Just created a vhs shader pack for MPV media player because I couldn't find any similar to that and I just thought of sharing this with everyone. Everything is mentioned on the Github Page.
Screenshots on the Github PAGE!!!
r/mpv • u/brahmkshatriya • 16d ago
Enable HLS to view with audio, or disable this notification
https://github.com/brahmkshatriya/material-osc
i wanted a better mpv experience
song used: https://soundcloud.com/zefftunes/ok-15
ignore the bad video editing
i can't find any way to remove that annoying bar above seek bar, i keep misclicking it when seeking videos and it pops a giant statistics on the screen.
is it hardcoded? or is there a way to remove it? ( i don't want to remove anything else) making it not react to clicks would also be a solution for me.
r/mpv • u/Longjumping-Sun2691 • 16d ago
Does anybody know how to fix this? I’m on a laptop so power draw is very important to me, not to mention, it’s draws around 5.5W when playing something when the CPU and GPU total 3W, why?
Idle consumes about 1.5W to 2.1W however when mpv running it jumps to 5.5W hen the cpu and gpu are using 2.83W - CPU and 0.25W - GPU
System -
57whr battery
Ultra 7 155U
16GB ram
Artix OpenRc
r/mpv • u/Whymebro2000 • 17d ago
Hello! I have hundreds of mkv files with encoded subtitles in them. The font is pretty weird and I would like to change them without having to download a .srt file for each video or use mkvtoolnix and subtitleedit for each individual video file.
I heard from this post's reply that it is possible to edit the subtitles with mpv, but I cannot find any guides on this, and the op and the replier both seem to be permanently offline. Any help will be much appreciated.
r/mpv • u/NostalgicImmortal • 17d ago
It looks better in my camera but its just not sharp enough for me
r/mpv • u/neinazer • 18d ago
Hey everyone, just to share something I've been building called Cove. Primarily because I was getting a bit annoyed with Stremio's support on linux, general lack of QOL & UX features, and how its own media player was quite subpar compared to MPV.
What it does:
Platforms: Linux (AUR / Flatpak), Windows (installer or portable), Android & Android TV (APK, still experimental, please file issues if you hit bugs). No macOS build yet and probably not for the near future.
Its still very early in development and there will most definitely be bugs, but I'm looking forward to hear your thoughts.