Hacker News new | ask | show | jobs
by personjerry 3548 days ago
What's the difference between mpv and vlc?
4 comments

It has better performance on my old laptop, especially when I hook it up to a 1080p screen. Seeking is more instant. It starts much quicker.

It's more minimal in the interface (basically full-screen with a bunch of kbd shortcuts) but has all the features I need (including playback speed), and even some that are not in VLC--for instance, VLC has a key to advance 1 frame ('e', IIRC) and mpv can step both ways (with ',' and '.').

A few downsides: it doesn't seem to have playlist functionality (not that VLC's playlist UI is that great, but it works). to load a subtitle file, you either need to specify it on the command line or it needs to match the filename exactly, in VLC you can just drag'n'drop any subtitle onto the player to load it or use an Open File dialog. mpv immediately exits when the video is finished playing which is actually nice sometimes, but also can be annoying if you wanted to rewind the last 10 seconds or something or if you seek forward too quickly (maybe mpv has a setting for this though).

On the whole, I use mpv for almost anything. Indeed in combination with youtube-dl, I've made an alias for `youtube-dl <URL> --exec "mpv --fs --fs-screen 1 {} &"`, which starts the player immediately after download, full-screen, on the second (big) monitor. I still use VLC whenever I want to watch multiple short videos in a playlist. And of course VLC on Android because it's really for both video as well as playing music--although I feel there should be a better musicplayer, one that allows me to browse my collection through the file system instead of tags (which VLC does) but has a real smooth UI to manage playlists (which has been clunky in most Android players I've tried).

>mpv immediately exits when the video is finished playing which is actually nice sometimes, but also can be annoying if you wanted to rewind the last 10 seconds or something or if you seek forward too quickly (maybe mpv has a setting for this though).

There is a setting for this called "After Playback". By default it is "close" but you can also "play next" (video in the folder, useful if shows are organized by folder and by episode) and other options, including "do nothing" or "play from beginning".

I'm at work so don't remember exactly where to change this setting.

I guessed as much, didn't look for it because until typing the above comment I never realised this was one of my minor annoyances with mpv :) Will change the setting in my config soon :)
The naming was from a different media player. I also mixed up "Play Next" with a different media player unfortunately. I believe mpv requires you add the next items to the playlist. However if you intend to play the folder anyways, you should just call the subdirectory and mpv will treat it as a playlist.

But I found the relevant mpv config I was thinking of:

    --idle=<no|yes|once>
    Makes mpv wait idly instead of quitting when there is no file to play. Mostly useful in input
    mode, where mpv can be controlled through input commands.
From the readme:

> A not too crappy GPU. mpv is not intended to be used with bad GPUs. There are many caveats with drivers or system compositors causing tearing, stutter, etc. On Windows, you might want to make sure the graphics drivers are current, especially OpenGL. In some cases, ancient fallback video output methods can help (such as --vo=xv on Linux), but this use is not recommended or supported. (o)

Whereas VLC has a similar option but it's sort of an afterthought and you have to activate it, from the wiki:

> The VLC media player framework can use your graphic card (a.k.a. GPU) to accelerate decoding of video streams depending on the video codec, graphic card model and operating system.

(o) https://github.com/mpv-player/mpv/blob/master/README.md

(i) https://wiki.videolan.org/VLC_GPU_Decoding/

In addition to what others have already said, VLC also has a bug with certain graphics cards (I want to say Nvidia?) - resulting in washed out/off-color video. It can be "fixed" with great-but-not-quite-perfect accuracy [0].

[0] https://wiki.videolan.org/VSG:Video:Color_washed_out/

`mpv movie.mp4` and boom - you're watching the video with no cruft. Not rebuilding font database and other bullshit you don't care about. It runs really well on older hardware.