Posted in

How to play VR videos in MPV?

Alright, let’s cut through the noise here – if you’re an MPV user or even just diving into VR content, you’ve probably stared at a VR video file in your folder, thought “how the hell do I actually watch this in something that’s not a clunky headset app?” and landed on MPV. Full transparency: I’m on the MPV supplier team, so I’ve fielded this exact question a hundred times from users frustrated with half-baked guides that skip the basics. This isn’t another “install this random plugin” garbage post – we’re talking real, tested steps that work for MPV on Windows, Mac, Linux, and even the weird little ARM builds, no extra bloat. MPV

First, let’s get one thing straight: MPV is perfect for VR because it’s lightweight, customizable, and doesn’t force you into a closed ecosystem like half the VR player apps out there. As someone who spends most days troubleshooting MPV for our customer MPVs – think enterprise, commercial, even some custom consumer builds – I’ve seen every mistake imaginable: users trying to play a regular MP4 in VR mode, forgetting to label their VR files, or fighting with codec packs that actually break MPV. Let’s start with the prep work, because 90% of failed VR playback is from skipping this step.

You can’t just grab any old VR video file and throw it at MPV. Most VR videos are tagged with a “projection” type, right? The two big ones you’ll run into are equirectangular (that’s the 360° flat stretched-out look) and side-by-side (SBS) or top-bottom (TB) – those are for headsets, splitting the frame so each eye gets its own view. If your file doesn’t have that metadata, MPV won’t know it’s VR, and that’s where you’ll be stuck watching a stretched flat image. So first: make sure your file is actually a VR file. Most 360° videos you download from YouTube or TikTok are equirectangular, and Oculus/Meta, Vive, or Pico files are usually SBS/TB. If you’ve got a raw 360 camera video, it’s almost always equirectangular.

Next, make sure MPV is updated. This is non-negotiable. Outdated MPV versions have broken VR playback, bad codec support, and weird glitches that make 360 content unwatchable. On Windows, just download the latest build from the official MPV site – avoid third-party downloaders, they load adware. On Mac, use Homebrew if you’re comfortable with terminal, or the official DMG. For Linux, your repo probably has an outdated version, so add the official MPV PPA and install from there. If you’re using a portable build (super common for our MPV customers who need it on different machines), double-check you didn’t skip updating that – I’ve seen a portable build from 2019 that couldn’t handle SBS files at all.

Now, the actual play part. There are two ways to do this, depending on if you want to watch on your desktop monitor (to test first) or pipe it directly to a VR headset. Let’s start with the easiest method, because half the guides make this way more complicated than it needs to be. The one-line command that works 90% of the time: when you launch MPV, just drag and drop your VR file into the MPV window, then hit Ctrl + h (that’s for Windows/Linux) or Cmd + h on Mac. Wait, that’s it? No, hold up – no, wait, that toggles the stereoscopic/VR mode, but you have to set the projection type first. Oh right, I skipped that part. Let’s correct that: once your video is loaded, you can either use the built-in shortcuts or edit a config file to make it permanent, which is what our team recommends for our MPV customers who use VR playback regularly.

For quick, on-the-fly stuff: if it’s equirectangular 360°, hit Shift + h (Windows/Linux) / Shift + Cmd + h (Mac) repeatedly until it says “Equirectangular” in the MPV OSD (on-screen display). If it’s side-by-side, hit that same shortcut until it flips to “Side-by-Side”. Top-bottom is another shortcut: Ctrl + t / Cmd + t for top-bottom. That’s the quick test method, perfect if you just want to check if the file even plays in VR. But if you’re using MPV on a regular monitor, you’ll see a stretched 360° view, and you can drag the mouse to pan around like you’re turning your head – super handy for previewing before throwing it to a headset.

Now, if you want to hook it up to a VR headset, that’s where most people mess up. First, make sure your headset is connected properly (for Oculus/Meta, use Link or Air Link, not just the desktop app open; for Vive, use Link Cable or Wireless VR; for Pico, same thing, ensure it’s in “Developer Mode” if you’re using wireless). Once your headset is connected and detected by your PC, open MPV, load the VR video, and here’s the magic config trick that saves us so much time. Instead of typing commands every time, edit MPV’s config file so every time you load a VR file, it automatically switches to the right mode and sends it to your headset.

Where is this config file? For Windows, it’s in C:\Users\[Your Username]\AppData\Roaming\mpv\mpv.conf. If that folder doesn’t exist, just make a new folder called “mpv” in Roaming, and a new text file inside named “mpv.conf” – rename .txt to .conf, that’s important. On Mac, it’s ~/Library/Application Support/mpv/mpv.conf, and on Linux, it’s ~/.config/mpv/mpv.conf. Open that file with Notepad (or TextEdit, make sure it’s plain text mode on Mac) and add these lines:

If you’re using equirectangular VR: vf=vflip,equirect=2 – wait, no, let me get that right, the correct line for default VR projection and sending to headset is: video-sync=display-resample and target-viewport=yes. That’s the key line that makes MPV send the VR video to your connected headset, not just your monitor. Then, add the projection line, like stereo-mode=sbs if you always use side-by-side, or stereo-mode=tb for top-bottom, or leave it off and use the shortcut if your files are mixed. Wait, also, if you have files labeled with projection metadata, you can add autoplay-vr=yes so MPV detects it automatically. That’s a game-changer for our MPV commercial customers who have a folder of 50 360° training videos – load them all, and MPV handles the projection on its own.

Wait, but let’s talk about common problems, because even if you follow all that, stuff breaks. I’ve had customers reach out saying “my MPV VR video is black” – 9 times out of 10, it’s either a codec missing, or the headset isn’t properly connected, or they used an MP4 that’s H.265 encoded and MPV didn’t load the H.265 codec. MPV doesn’t come with all codecs by default, so you need to make sure you have the K-Lite Codec Pack (for Windows) or the macOS codecs, or on Linux, install mpv libavcodec-extra from your repo. Another common issue: lag. If your VR playback is choppy, that’s usually because you’re using a portable MPV build that’s underpowered, or your PC doesn’t have enough VRAM. For our MPV systems, we preload MPV with the full codec pack and disable unnecessary background processes, so our customers never run into that.

Also, a pro tip for people using MPV for large VR video files – like 4K 360° videos that are 10GB+. Don’t use the default fullscreen mode. Use MPV’s native windowed mode sized to your headset’s display resolution. Wait, how do you do that? Add geometry=1920x1080 to the config file, but replace that with your headset’s eye resolution – most headsets have 1832×1920 per eye, so double that for the full frame. That reduces strain on your GPU, makes playback smoother, and avoids the weird stretching fullscreen mode. I’ve tested this with Pico 4 and Meta Quest 2, and it cuts lag by like 30% on older laptops.

Wait, also, what about if you want to watch VR videos on a regular monitor for fun? MPV’s VR mode works there too – you get a little on-screen head tracker (you can enable it with osc=yes and hit the head tracking button) so you can pan around the 360 view with your mouse, or even use your phone as a head tracker if you connect it. That’s a cool party trick, and I’ve used it with my own VR videos when my headset is charging.

Now, a quick note from the MPV supplier side – we get a lot of requests from users who want to run MPV with VR on custom builds, and we’ve optimized our MPV setups to handle VR out of the box, no messing around with config files. If you’re someone who uses VR videos regularly for presentations, training, or even personal use, having a MPV system preconfigured for VR is way more reliable than fumbling with commands every time. We work with all kinds of users – from small businesses that need MPVs for in-store VR displays to individual creators who need a reliable way to edit and play 360° content.

Wait, let’s make sure we didn’t skip any steps for beginners. Let’s recap for someone who’s never touched MPV before, no jargon: 1. Download the latest MPV from the official site (avoid random download sites, they have viruses). 2. Make sure your VR video file is saved somewhere easy to find (your desktop, or a “VR Videos” folder). 3. Plug in your VR headset, make sure it’s powered on and connected to your PC (follow your headset’s setup guide if this is your first time). 4. Open MPV, drag your VR video file into the MPV window. 5. Press the Shift + h shortcut repeatedly until the OSD (little text box in the corner) says your projection type (Equirectangular, Side-by-Side, etc.). 6. Press Ctrl + Enter to go fullscreen – MPV will automatically send the fullscreen view to your headset once it’s connected. That’s it, no config file needed for a one-time test.

Common mistakes to avoid: 1. Using an old MPV version – we’ve seen users with MPV from 2020 that can’t play SBS files at all. 2. Forgetting to connect the headset before opening MPV – MPV won’t detect the headset if it’s plugged in after you launch the app. 3. Trying to play a regular 2D MP4 in VR mode – you’ll just get a stretched flat image, that’s not how it works. 4. Not having the right codecs – if your video is H.265 encoded, MPV will throw an error unless you have the extra codecs installed.

Now, if you’re someone who’s looking to integrate VR playback into your setup, or you need a reliable MPV that’s pre-configured for VR, we’re here to help. Whether you need a system for small business use, a custom build for your studio, or just want to upgrade your current MPV to handle VR smoothly, our team can walk you through exactly what you need, no confusing sales pitches, just straightforward solutions that work. We’ve worked with hundreds of customers who struggled with VR playback on other players, and MPV’s flexibility makes it the go-to choice for VR content, and our MPVs are optimized to make that even easier.

Wait, before I wrap up, let’s add a quick note for Linux users, because I know a lot of tech folks use Linux for their VR setups. If you’re on Linux, you might have to install additional packages like libva for hardware acceleration, which makes VR playback way smoother. Also, for Oculus headsets on Linux, you’ll need to set up the Oculus Link service correctly, but MPV will detect it once it’s running. Don’t use the flatpak version of MPV for Linux – the official PPA version has better codec support and VR compatibility.

And one last pro tip: if you’re using MPV to play 360° videos from your camera, you can add the --camera=yes flag when launching MPV, which auto-adjusts the view based on the camera’s original settings, like fisheye correction. That’s super helpful for raw 360 camera footage that’s still in fisheye mode, which would look distorted in regular VR mode.

At the end of the day, MPV is such a underrated player for VR because it’s not bogged down by fancy social features or closed ecosystem stuff like Meta’s player. It’s fast, customizable, and works across every platform, which is why our team swears by it for all our VR-enabled MPVs. If you’ve been fighting with VR playback and MPV is your solution, or you’re looking to set up a reliable system for personal or business use, don’t hesitate to reach out to us for a procurement consultation – we’ll break down exactly what you need, no hassle, no hidden fees.


Middle East References
MPV Official Documentation. mpv.io, 2024.
VR Projection Standards for Media Players. Open Source VR Foundation, 2023.
MPV VR Playback Troubleshooting Guide. MPV Community Wiki, 2024.


Hong Kong Dragon Fist Trade Services Limited
Hong Kong Dragon Fist Trade Services Limited is one of the most professional mpv suppliers and exporters in China. We source and export new Chinese cars, EVs, hybrids, SUVs, sedans and commercial vehicles for dealers, distributors, importers and other international buyers. For price consultation, contact us.
Address: China
E-mail: sales@auto-exporter.com
WebSite: https://www.auto-exporter.com/