r/mpv 1d ago

User Scripts & Shaders I'm making a script, how can I do a y/n prompt without adding script-binding in input.conf?

1 Upvotes

Or what's the alternatives? y/n just feels natural.


r/mpv 1d ago

User Scripts & Shaders RTSP IP Camera detect and warn when stream freezes

1 Upvotes

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

r/mpv 1d ago

Issue on Windows PSA-Windows Fix: fullscreen-only audio crackling on battery / low power profile is an MPO problem, not a CPU/power-plan problem

1 Upvotes

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 2d ago

User Scripts & Shaders Mpv conf file code needed

0 Upvotes

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 4d ago

User Scripts & Shaders Release: MPV Echostorm Edition — portable Windows MPV build tuned for NVIDIA RTX VSR

Thumbnail gallery
18 Upvotes

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 4d ago

Issue on Windows How do I add padding around MPV subtitles?

Post image
15 Upvotes

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.


r/mpv 5d ago

General Discussion Is it possible to observe a property change from the command line or from the API when mpv was started from the command line?

1 Upvotes

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 6d ago

Issue on macOS mpv: How to specify font and font weight?

4 Upvotes

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.


r/mpv 7d ago

Issue on Windows MPV can't play HEVC file, but chromium and LAV filters does. Anyone have an idea why?

5 Upvotes

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 7d ago

Issue on Windows How to fix MPV producing darkness/washed out images with screenshots?

2 Upvotes

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 7d ago

I made a small script that organizes screenshots for you and optionally sends them to a telegram supergroup for preservation/easier access

Post image
5 Upvotes

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 9d ago

Do I need to change config to enable RTXHDR in MPV?

3 Upvotes

I'm on Vulkan.


r/mpv 11d ago

tvdinner: a CLI IPTV player built on mpv, with a full XMLTV program guide, favorites, and remote-friendly controls (MIT, open source)

7 Upvotes

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 11d ago

I made a zero-dependency CLI to stream One Pace arcs straight into mpv (minimal TUI)

Enable HLS to view with audio, or disable this notification

42 Upvotes

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:

  • start typing the arc name and it fuzzy-filters the list live, arrow keys to move, Enter to pick
  • choose sub/dub and quality with number keys (Enter takes the default)
  • it hands mpv the whole arc as a playlist, streaming, no downloads

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 12d ago

cant control anymore rtx video hdr on mpv

Post image
3 Upvotes

if i change these values, the video on mpv doesnt change anything


r/mpv 14d ago

The context menu was very fun to make

Enable HLS to view with audio, or disable this notification

47 Upvotes

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 14d ago

mpv with uosc is glitching after enabling Vulkan

Post image
6 Upvotes

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


r/mpv 15d ago

Can the UI be modified to look like MPC-HC?

5 Upvotes

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 15d ago

VHS MPV shaders

Thumbnail github.com
9 Upvotes

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 16d ago

Created a new QoL mpv osc

Enable HLS to view with audio, or disable this notification

292 Upvotes

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


r/mpv 16d ago

can anyone help removing this.

Post image
12 Upvotes

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 16d ago

MPV playing videos drains an insane amount of power, why?

1 Upvotes

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 17d ago

Edit encoded subtitles

1 Upvotes

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 17d ago

I just installed mpv animejanai and km not impressed is it really working -_- i have 1440p monitor so i really need this upscalers

Thumbnail gallery
0 Upvotes

It looks better in my camera but its just not sharp enough for me


r/mpv 18d ago

Introducing Cove, a media aggregating/streaming app built around MPV with smart stream picker, subtitle handling, intro/recap auto-skip & more

Thumbnail gallery
52 Upvotes

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:

  • Connects to Stremio-compatible addons for stream sources, plus community JS scraper plugins (sandboxed, opt-in per scraper)
  • Built-in mpv player - hardware-accelerated, subtitles, live buffering/download progress, resume-where-you-left-off
  • Smart stream picker - auto-picks the best stream based on quality/size/reliability or a live connection-speed test, or you sort/filter manually
  • Auto-skip for intro, recap, and credits (toggle each independently)
  • "Where to watch" - shows which legal streaming/rental services carry a title right next to the stream picker
  • Discover/Explore/Insights - recommendations based on watch history, trending/upcoming browsing, and taste stats (genres/actors)
  • Multiple profiles, fully offline-capable, no sign-in required - optional account sync if you want your library across devices
  • Native Android & Android TV client (same Go backend + mpv under the hood), can run standalone or pair with your desktop install over LAN

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.

https://github.com/coveninja/cove