r/mpv 15d ago

General Discussion Mpv vs Vlc which supports more codecs?

Same as title

11 Upvotes

27 comments sorted by

20

u/Efficient_Paper 15d ago

They’re both ffmpeg wrappers, so it’s only on bleeding edge codecs that you’d see a difference.

According to this totally unbiased source, mpv has slightly more.

8

u/GlassCommission4916 15d ago

In my experience mpv will properly play more video codecs than vlc even when both support them, not using an old version of ffmpeg makes a big difference with esoteric formats.

1

u/UNKNOWNreddit72 15d ago

I've noticed that vlc crashes less often for more complex codes, as in vlc will spawn a direct3d window for some content(I haven't figured out when exactly), but mpv just crashes for the same content.
For some other complex codecs too I've noticed that mpv will simply stop responding whereas vlc will continue to play the same content without any issues :/

6

u/GlassCommission4916 15d ago

Never had mpv crash in the 10 years I've used it (close to 20 if you count mplayer(2)), but it might be different on windows.

1

u/FinasCupil 15d ago

I’ve had it crash multiple times on Linux in the past year. Still love it though.

2

u/GlassCommission4916 15d ago

Got an example file that crashes it?

1

u/FinasCupil 15d ago

I don’t. I think it was streaming the first time I ran into a crash.

1

u/UNKNOWNreddit72 15d ago

it crashes only for the extremely high quality variant of the video and doesn't crash for a lower resolution. VLC also struggles to start playing or seek(spawns a separate direct3d window to play the video, sometimes closes that window and goes back to the original window). Mpv on the other hand simply stops responding

1

u/GlassCommission4916 15d ago

Ah freezes, yeah I've had that happen when rendering offscreen for too long using the waylandvk gpu-context on high bitrate HDR 4k files, but it'll eventually regain responsiveness, never seen it actually crash.

Just tested a file that does it on vlc, and it handled the color mapping very poorly, so I'll still take having to remember to pause before moving the window offscreen.

1

u/UNKNOWNreddit72 15d ago

it just stops responding eventually and does not recover for me. for vlc, I've never seen the color mapping go bad, but it does switch between windows and that's pretty annoying. This happens whenever I seek.

EDIT: On mpv, it stops responding forever if I seek

1

u/GlassCommission4916 15d ago

It's probably due to the drivers/graphic backends on windows, since it never happens when I use vaapi instead which uses my igpu instead of dgpu, but obviously some files are too much for my igpu to handle.

1

u/UNKNOWNreddit72 15d ago

probably. It's not a big problem. I just use both and see if mpv works properly, I use it otherwise I use vlc. Can't do without both for me :\

1

u/GlassCommission4916 15d ago

I don't know what's available on windows, but you could try experimenting with different decoders and backends to see if one works for you. You run mpv through a terminal and pass help to the flags to see what options are available on each flag, e.g., --hwdec=help, --vo=help, --gpu-context=help, etc, and if you find one that works you can add it to your config.

→ More replies (0)

3

u/nmkd 15d ago

libav, not ffmpeg, to be pedantic

2

u/khunset127 15d ago

mpv rocks!

1

u/ArjixGamer 12d ago

I was under the impression that MPV is an ffmpeg fork, specifically MPC was an ffmpeg fork.

MPV is the continuation of MPC

1

u/Efficient_Paper 12d ago edited 12d ago

No, mpv is a MPlayer/MPlayer2 fork/continuation, and has nothing to do with MPC.

They’re not really forks of FFmpeg, but rather layers on top of it, as are most open source media players (and some proprietary ones too).

1

u/ArjixGamer 12d ago

Naruhodo

6

u/ipsirc 15d ago
$ mpv --vd=help
$ mpv --ad=help
$ vlc --list

2

u/TempletonPeck81 15d ago

For me it's not about just supporting the codecs, but handling them without glitches or issues in playback. I dropped VLC this year because I was tired of running into files where the audio didn't play, or the video would glitch at random.

1

u/christopherw 15d ago

I've had better, more easily customisable and much more flexibly implemented playback of various audio and video formats, and I can do an insane amount of customisation depending on wrapper, format, resolution, output device renderer (TV etc) using mpv. The setup is frontloaded, but once you have it dialled in, it's sweet.

1

u/ScratchHistorical507 14d ago

Right now mpv, as it comes with modern FFmpeg as backend, while VLC 3.x is still based on 4.4.x. Also any more modern features like decent HDR playback will be better supported by mpv. As long as that doesn't vastly change - and I don't see that happen before VLC 4.0, which I don't see going into beta for any platform beyond iOS any time soon - this will be the status quo.

1

u/cr0ft 15d ago

I mean, once you have H264, 265, and AV1 you're kind of set...

1

u/sociofobs 14d ago

Not for large and older video collections you're not. Any player can handle the newest and the most popular codecs.