Most active commenters
  • adrian_b(6)
  • loeg(5)
  • mixmastamyk(4)
  • SSLy(4)
  • jwells89(3)
  • Bluestein(3)

←back to thread

1113 points Bluestein | 38 comments | | HN request time: 1.683s | source | bottom
1. jwells89 ◴[] No.41277461[source]
This has always worked well for me, handling anything that’s thrown at it with ease.

Things may have changed since then, but when I first encountered the project several years ago it seemed like the thing that made this project stand out compared to other player projects was a big emphasis on correctness and accurate playback. There have files I’ve encountered that for example VLC will play with quirks (color reproduction is not quite right, etc) that mpv plays perfectly.

replies(3): >>41277592 #>>41278071 #>>41278458 #
2. Bluestein ◴[] No.41277592[source]
> There have files I’ve encountered that for example VLC will play with quirks (color reproduction is not quite right, etc) that mpv plays perfectly.

Given how VLC is basically bulletproof and will play absolutely anything thrown at it - it's great to hear that mpv is up there ...

replies(1): >>41277834 #
3. mixmastamyk ◴[] No.41277834[source]
While great in general, vlc has many small seek/sync issues, and also seems to be in maintenance mode.
replies(2): >>41278306 #>>41278675 #
4. arp242 ◴[] No.41278071[source]
> There have files I’ve encountered that for example VLC will play with quirks (color reproduction is not quite right, etc) that mpv plays perfectly.

This has long since been the case, even back in the MPlayer days in the early 2000s.

I'm not really sure why this is the case though, because I believe both largely rely on the same libraries for many codecs.

replies(1): >>41278196 #
5. jwells89 ◴[] No.41278196[source]
The explanation I’ve read in the past is that the difference lies in how VLC was initially focused on playback of video streamed over a network (hence the name Video LAN Client), which was generally more rocky a couple decades ago when the quality and bandwidth of the average connection was lower and the only routes between the client and server could be highly indirect or routed through weak nodes.

In that environment, playing at all without constantly dropping out or buffering is the goal, which is more achievable when fudging accuracy/correctness (which wouldn’t have been possible anyway).

Not sure how true that is though, it’s not something I’ve ever verified.

6. Bluestein ◴[] No.41278306{3}[source]
> to be in maintenance mode.

Sad to hear.-

PS. On a tangent, rethorically - baring bugs and security - at one point is (if ever) software "finished"?

"We built this search engine. It works. The infrastructure has team enough to run it. But we have this huge payroll of people."

So "improvements" and "features" (and constant UI and UX changes) ...

... "enshittification" ensues.-

When is "good enough" ... good enough?

replies(2): >>41280210 #>>41281191 #
7. loeg ◴[] No.41278458[source]
Hm, I've had (significant) issues with color representation playing back "HDR" media in mpv.
replies(3): >>41278555 #>>41278682 #>>41283164 #
8. jwells89 ◴[] No.41278555[source]
Not something I have experience with so can’t speak to that.
9. 0cf8612b2e1e ◴[] No.41278675{3}[source]
What non-maintenance work needs doing? From the outside, it plays basically all the formats. There is always the potential for improving algorithms, but it strikes me as pretty feature complete.
replies(1): >>41279121 #
10. SSLy ◴[] No.41278682[source]
was the material purple-green by chance?
replies(1): >>41278731 #
11. loeg ◴[] No.41278731{3}[source]
Yeah. I did try playing around with some of the colorspace options you can find googling, but nothing seemed to work.
replies(3): >>41278744 #>>41279203 #>>41279705 #
12. SSLy ◴[] No.41278744{4}[source]
That's a Dolby Vision Profile 5 file. A format that's very very proprietary. The only PC apps that can play them at all are https://apps.microsoft.com/detail/9p9zh5fl1bfk?hl=en-ms&gl=M... and https://firecore.com/infuse
replies(4): >>41281286 #>>41282448 #>>41282505 #>>41283205 #
13. mixmastamyk ◴[] No.41279121{4}[source]
> has many small seek/sync issues

Playback issues... scrub problems mentioned elsewhere, audio/video get out of sync when seeking a lot; need to hit left arrow to reset, speed changes lag when changed a lot, when there's a short clip it can end audio early, etc, etc.

Not a huge deal, but if you use it every day for video and audio file testing/lyric transcribing these little bugs get old. The playback core needs a rewrite to be "preemptive" I'd guess.

replies(2): >>41279717 #>>41280312 #
14. emestifs ◴[] No.41279203{4}[source]
Try this in your mpv.conf file

    no-config
    target-trc=pq
    target-prim=bt.2020
    vo=gpu-next
Wont be 100% accurate, but hopefully somewhat watchable

See also https://github.com/mpv-player/mpv/issues/10122

replies(2): >>41279406 #>>41283309 #
15. loeg ◴[] No.41279406{5}[source]
Still very green/purple. It's fine, I was able to find a non-HDR version.
replies(1): >>41283236 #
16. ◴[] No.41279705{4}[source]
17. mixmastamyk ◴[] No.41279717{5}[source]
Also, https://news.ycombinator.com/item?id=41278499
18. nine_k ◴[] No.41280210{4}[source]
A web search engine is never done because spammers never cease attempts to.game it in new ways, and because new phenomena keep appearing on the web, from presidents posting official news on twitter to the proliferation of AI-generated texts with subtly incorrect information.

A media player, though, has fewer challenges.

replies(1): >>41281517 #
19. d110af5ccf ◴[] No.41280312{5}[source]
> audio/video get out of sync when seeking a lot

I have a very similar issue with subtitles in MPV sometimes. Some unknown (at least to me) combination of codec, encoding settings, subtitle format, switching subtitle tracks, and seeking will utterly break it to the point that I have to exit and reopen the file. I can't be bothered to debug the issue (so far).

In general I don't understand the negative comments I see VLC get. I've never encountered major problems with either piece of software. I've encountered minor bugs and annoyances with both.

replies(1): >>41284444 #
20. latexr ◴[] No.41281191{4}[source]
> PS. On a tangent, rethorically - baring bugs and security - at one point is (if ever) software "finished"?

“PS” originates from “post scriptum”, meaning “written after”. It doesn’t make sense to have it at the start of the text.

But to answer your question, yes, it is definitely possible for software to be done and finished. I’ve done it multiple times, where I have built something that does exactly what I set it out to do, it does it fast and without bugs and has been doing so for years and years with zero maintenance needs.

The general obsession with the idea that “software is never done, only abandoned” needs to end, it’s harmful to good software and its users.

Here’s millions more examples of finished software, in a single word: games.

replies(1): >>41281535 #
21. talliedthoughts ◴[] No.41281286{5}[source]
Is there a way to use Infuse on PC? The only links I see are to the App Store
replies(1): >>41281389 #
22. SSLy ◴[] No.41281389{6}[source]
Macs are PC's, you can also make a hackintosh.

EDIT2: if you consider an ARM board that you can install custom OS on as a PC – admittedly, bit of a stretch – then you can grab UGOOS AM6B plus / AM6 plus / Minix u22x-j max

install CoreELEC on it and enjoy DV.

https://github.com/CoreELEC/CoreELEC/releases https://discourse.coreelec.org/t/dolby-vision-for-minix-u22x... Recommended settings: https://justpaste.it/divn9 Installation instructions 1: https://discourse.coreelec.org/t/guide-s922x-j-ugoos-am6b-co... Installation instructions 2: https://www.reddit.com/r/PleX/comments/1ajszn9/remux_lovers_...

EDIT: I forgot that for Windows playback, you also need the HEVC and DoVi codec packages.

https://apps.microsoft.com/detail/9P9ZH5FL1BFK https://apps.microsoft.com/detail/9PLTG1LWPHLF https://apps.microsoft.com/detail/9nmzlz57r3t7

23. hollerith ◴[] No.41281517{5}[source]
Media player projects are in an arms race with exploit devs, though, especially since Google keeps introducing and popularizing new media formats.

Speaking of which: which project tkaes security more seriously, vlc or mpv?

24. Bluestein ◴[] No.41281535{5}[source]
> The general obsession with the idea that “software is never done, only abandoned” needs to end,

My thinking was along those lines. Or at least along the lines of "engineering and/or organizational processes should exist to know when to stop".-

PS. Thanks for your attention to detail. It was a "PS" to an otherwise one-sentence comment.-

25. literallycancer ◴[] No.41282448{5}[source]
You can play it with mpv, it depends on the hardware/drivers. It worked fine on a random Ryzen Lenovo laptop with Linux even though MacOS version of mpv couldn't play it correctly on M2 (even though Apple claims that M2 is compatible with the format).
replies(2): >>41282858 #>>41283179 #
26. FabHK ◴[] No.41282505{5}[source]
Infuse is great. I use it to play stuff (in basically any format) from the NAS through the Apple TV on a dumb TV.
27. SSLy ◴[] No.41282858{6}[source]
And you're sure it was a Profile 5, not 7/8 file?
28. adrian_b ◴[] No.41283164[source]
Then you must have not used "mpv --vo=gpu-next".

Playing HDR and Dolby Vision encoded movies has been solved a long time ago in mpv, but they usually need the option shown above, which may not be the default on your system.

There are plenty of additional options in mpv that provide a finer control of how HDR colors are handled.

While playing a movie with mpv, press "I", so that mpv will display the information it has about the color space supported by your display and the color space used in the movie, which will allow you to verify if they are correct.

replies(1): >>41285010 #
29. daneel_w ◴[] No.41283179{6}[source]
It depends on what format/decoder support went into your particular build of mpv. It offloads almost all of its capabilities onto ffmpeg and its supporting libraries, which in turn won't necessarily be built with exactly everything enabled.
30. adrian_b ◴[] No.41283205{5}[source]
Nowadays mpv is able to decode it correctly, but it usually requires for that the command-line option "--vo=gpu-next".

A couple of years ago, mpv was unable to handle it.

31. adrian_b ◴[] No.41283236{6}[source]
Then you probably have either a very old mpv or one that was compiled without including the "gpu-next" video output driver.

Or else the GPU drivers for your GPU card have not been updated for a very long time.

A recent mpv and recent GPU drivers should solve this problem, because it was frequently encountered only up to a couple of years ago.

replies(1): >>41285093 #
32. adrian_b ◴[] No.41283309{5}[source]
I believe that the target primaries must be those of your monitor.

BT.2020 are the primaries used to encode the HDR movie.

Monitors with such primaries are rare and extremely expensive. For most good monitors "--target-prim=dci-p3" should be appropriate, if DCI-P3 has already been selected from the on-screen monitor configuration menu, because most monitors come configured by default to use the ugly sRGB color space, so you must change the defaults to be able to display content with bigger color spaces.

Some monitors might have the option to use the BT.2020 color space, when they would still not be able to display all of it, but they would do internally the conversion between the BT.2020 used to encode the movie and whatever color space the monitor can actually display.

33. mixmastamyk ◴[] No.41284444{6}[source]
Lots more folks use vlc I’d guess.

The media players we have on mobile don’t suffer from these issues, so they must be solvable.

34. loeg ◴[] No.41285010{3}[source]
I have used vo=gpu-next, actually. Still green/purple.

"I" shows: Primaries: bt.2020. Colormatrix: bt.2020-ncl. Levels: full. If that means anything.

replies(1): >>41289904 #
35. loeg ◴[] No.41285093{7}[source]
mpv 0.36.0 from July 2023, nvidia 555.58.02 drivers from August 2024 (Fedora 39).
replies(2): >>41288811 #>>41289964 #
36. Narushia ◴[] No.41288811{8}[source]
I would try updating to 0.37.0 or 0.38.0, IIRC it only started to work for me after I updated to one of those (I always build mpv from the latest commit myself, so I'm not sure which release version exactly has the crucial fixes).
37. adrian_b ◴[] No.41289904{4}[source]
"I" must show two sets of "Format: Levels: Colormatrix: Primaries: Transfer:", one set for "Display:" and one set for "Video:".

"mpv" or any other player must make a conversion from the color space used for encoding the video file to the color space supported by the monitor. A monitor that has not been reconfigured after the initial installation is likely to use the sRGB color space. Any good monitor should have a configuration menu that allows the selection of a better color space, but mpv can convert BT.2020 to sRGB, if necessary (which will reduce the saturation of many colors).

Did mpv print after being launched a line starting with "VO: [gpu-next]"?

Where "gpu-next" is not available, mpv will start anyway, but it will use one of the other video drivers, none of which convert correctly Dolby-encoded video.

On the computer where I normally play HDR/Dolby Vision movies, I use an NVIDIA GPU, so I know for sure that gpu-next works fine with it.

I do not remember whether I have played any HDR/Dolby Vision movie with an AMD or Intel GPU, but I doubt that any of those is incompatible with gpu-next.

In any case, if mpv prints "VO: [gpu-next]" without any error message and if "I" shows for "Display:" the correct color space supported by your monitor, e.g. sRGB or DCI-P3, then you should try to upgrade the GPU driver, which could be too old. Like I have said, IIRC this problem has been solved in 2022 and since then I have never encountered again color conversion errors, so you must have some software component that is older than 2022.

Because my monitor is configured to use the color space DCI-P3 (with 10-bit colors), I alias "mpv" to "mpv='mpv --vo=gpu-next --target-prim=dci-p3'", and it has been working fine for the last two years, including with any HDR and/or Dolby Vision movie.

38. adrian_b ◴[] No.41289964{8}[source]
My output of "mpv --version":

  mpv 0.38.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
  libplacebo version: v6.338.2
  FFmpeg version: 6.1.1 
I do not remember which was the first version that worked fine. For some time, "gpu-next" was not included by default in the releases, but you had to compile a custom variant to include it.

Pay attention that "libplacebo" is required. If libplacebo is absent, then the Dolby Vision conversion will not work. This could be the reason of your problem, if your Linux distribution does not have libplacebo as an automatic dependence of mpv, or if mpv has been compiled without support for libplacebo.