Live data from Hacker News

Mpv – A free, open-source, and cross-platform media player

mpv.io

161–170 of 576 posts

Re: Mpv – A free, open-source, and cross-platform media player

#161
post #69

I use it to inspect video frames by frames, particularly being able to go back one frame. VLC doesn't support it, this thread about the feature is hilarious https://forum.videolan.org/viewtopic.php?t=120627

The developer responds to a comment:

But many players are able to do it for years.

with:

If it's so easy, why are you not doing it?

He's not just a butthole, he's a stereotypical open source developer butthole. On the other hand, if he worked for Microsoft, he'd be claiming that it takes a PhD to do it...

Re: Mpv – A free, open-source, and cross-platform media player

#162
post #147
post #54

If you're on Linux, don't forget to enable hardware acceleration by adding hwdec=auto to mpv.conf. Works with AMD/Intel/NVIDIA. https://interfacinglinux.com/2024/01/10/hardware-acceleratio...

Why would that be disabled by default?

Because if you don't have to enable a flag or two in a text config file what's the fun of using Linux after all :)

Re: Mpv – A free, open-source, and cross-platform media player

#163
post #46

mpv is awesome. Shout-out, in no particular order, to: - Seeds of Might/JySzE's base `mpv.conf`[1] - uosc, a feature-rich but still minimalist UI[2] - thumbfast, a fast thumbnailer to be used with uosc or another custom UI[3] - Eisa01's SmartSkip, which allows to skip intros & more (audio-based)[4] [1] Windows: https://gist.github.com/JySzE/db4149cad726b3b6955dca8d47a197... , macOS: https://gist.github.com/JySzE/34ee…

Not to take away from the work done on the plugin, but that’s a “basic” skip intro implementation.

To reliably be able to find intros/credits, you need to some non-local analysis - basically, you need to look for common chunks of audio across episodes in a season or entire show.

I wrote a CLI tool that can do this, albeit it’s not really “finished” and probably will never be. My initial goal was to use it to develop a Jellyfin plugin, but then I discovered that there was already such a plugin :)

https://github.com/aksiksi/needle

Re: Mpv – A free, open-source, and cross-platform media player

#164

I didn’t know mplayer had been forked - this looks good to me. The primary reason why I used mplayer in the early 2000s was performance, both in terms of cpu and for lack of a better word ‘ smoothness ‘. Basically all other players seemed to produce choppy videos ( including regular dvd players ) but mplayer didn’t ( and there was no motion interpolation). A friend of mine told me that mplayer was very accurate ( ie…

The primary reason that many of us still used MPlayer 20 years ago was that it did keyboard-based seeking really well. Nothing fancy, just look for the closest I-frame from the target time and move exactly there.

This art of quick seeking sort of got lost in time as the distance between UX people and people who understand H.264/265/etc in detail grew.

On Apple TV: At best it takes like 500 ms. At worst (the Max app), like 6000 ms.

MPlayer 20 years ago: 17 ms.

Re: Mpv – A free, open-source, and cross-platform media player

#165
post #121

Earlier quoted context omitted.

Yeah. I did try playing around with some of the colorspace options you can find googling, but nothing seemed to work.

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

Still very green/purple. It's fine, I was able to find a non-HDR version.

Re: Mpv – A free, open-source, and cross-platform media player

#166
post #148

Earlier quoted context omitted.

Re-rendering shouldn't be hard, it's just a specialized version of seeking. VLC has seeking. The claim that you would have to decode all previous frames in the entire video is... completely baffling to see coming from the dev. He's arguing a stupid technicality that a video might not have keyframes. That's not a reason to omit the feature entirely.

You misunderstand. The point is you have to go backwards to find a keyframe, then render forwards from that. Going backwards might be hard because if you structured your code in certain ways you may not be able to go backwards efficiently. You can "seek", but how far back to you want to seek? A second? Two seconds? current-X frames? key frames may be in a standard cadence, but they may not be. So again, how far back…

I don't misunderstand. The program already has seeking code, and if it needs to aim back slightly so that it can be more precise that's not a massive change to how it already works.

Efficiency is not as important as having the feature at all. "Go back 5 seconds and then run forward to the right frame" is a sufficient algorithm, as long as it can track and combine multiple presses of the previous-frame key. Improvements can come later. Maybe buffering, maybe tracking keyframes, maybe other things. But this is a big case of letting the perfect be the enemy of the good.

If it fails to find a keyframe, that sucks, but 99% of the time it'll work.

Re: Mpv – A free, open-source, and cross-platform media player

#167
post #48

If anyone is looking for the mpv core with a GUI on macOS, take a look at IINA https://github.com/iina/iina

IINA has issues with color space conversions. I've heard that the specific issue is that it always (incorrectly) assumes a BT601 matrix for all videos, though I haven't verified it myself and cannot really right now. (I did verify its colors differing from stock mpv before writing this comment, though.) Various mpv wrappers exists, but for reasons like these stock mpv is the only fully reliable version.

Huh, that explains it, I was wondering why I was having problems with some video that VLC would even playback correctly, I didn't think to try the stock mpv.

Re: Mpv – A free, open-source, and cross-platform media player

#168

Earlier quoted context omitted.

Re-rendering shouldn't be hard, it's just a specialized version of seeking. VLC has seeking. The claim that you would have to decode all previous frames in the entire video is... completely baffling to see coming from the dev. He's arguing a stupid technicality that a video might not have keyframes. That's not a reason to omit the feature entirely.

The strange thing is that the same argument is true for seeking in general. Going back from frame 500000 to frame 499999 is in the limiting case as complex as seeking from 1 to 499999, and in most cases far better. I think the forum thread would be better answered "you do it, I don't need this feature" which is basically the gist of it and is a completely fair answer.

It's not even about doing it, once added you have to maintain it, and then tomorrow a new format arises that makes this more a hassle, or some memory issue in an existing format is fixed in a way that changes it's memory profile and now VLC will crash with an out of memory.

Seriously, I don't get these people that have infinite demands from open source developers and contribute zero.

Re: Mpv – A free, open-source, and cross-platform media player

#169
post #168

Earlier quoted context omitted.

The strange thing is that the same argument is true for seeking in general. Going back from frame 500000 to frame 499999 is in the limiting case as complex as seeking from 1 to 499999, and in most cases far better. I think the forum thread would be better answered "you do it, I don't need this feature" which is basically the gist of it and is a completely fair answer.

It's not even about doing it, once added you have to maintain it, and then tomorrow a new format arises that makes this more a hassle, or some memory issue in an existing format is fixed in a way that changes it's memory profile and now VLC will crash with an out of memory. Seriously, I don't get these people that have infinite demands from open source developers and contribute zero.

You already have to maintain seeking code, stepping back one frame is just a specialized case for your seeking code.

Re: Mpv – A free, open-source, and cross-platform media player

#170
post #118
post #69

I use it to inspect video frames by frames, particularly being able to go back one frame. VLC doesn't support it, this thread about the feature is hilarious https://forum.videolan.org/viewtopic.php?t=120627

Wow those answers are indeed funny. I agree that as an OSS dev/maintainer, it's easy to fall on the vice of over-generalization and crusade for the perfect solution, and it feels that's exactly what happened there. > this feature is algorithmically impossible > You're just looking at one specific video, not the general problem. > is not generally possible. As a fellow multimedia dev, man, who cares? Sometimes we forg…

I notice a lot of devs try to deny the chaos of the world. It's almost like the code is where they go to hide from things that can't be cleanly and unambiguously expressed.

I don't know how they get away with that though. In the coding work that I do, I'm constantly dealing with rules that have exceptions on top of exceptions. I just need to special-case some things, because the alternative is not delivering what the business needs.

Post reply on HN