News for hackers. Stuff that matters.
Re:mpv a free, open-source, and cross-platform media player by FrostKiwi on Saturday August 17, 2024 @06:35PM (#41278574)
Cannot recommend --video-sync=display-resample enough. The one reason I use mpv on every OS over every other media player
Re:mpv a free, open-source, and cross-platform media player by navigate8310 on Saturday August 17, 2024 @08:49PM (#41279277)
Can you explain what it does?
Re:mpv a free, open-source, and cross-platform media player by shmerl on Saturday August 17, 2024 @11:54PM (#41280013)
> Resample audio to match the video. This mode will also try to adjust audio speed to compensate for other drift. (This means it will play the audio at a different speed every once in a while to reduce the A/V difference.)

I'm not sure what's the benefit of that is though.

Re:mpv a free, open-source, and cross-platform media player by FrostKiwi on Sunday August 25, 2024 @10:56PM (#41353621)
It's makes so the frame pacing fits the display refresh rate, making viewing a lot more pleasant and smoother. Eg.: Your Screen is 60hz, but the video is 59.97hz, then there will be a dropped frame. `--video-sync=display-resample` speeds the video up by a tiny percentage to make every display refresh match a new video frame. The correction factor is recalculated every frame and can be viewed by pressing I. This makes way more difference that one would imagine and makes 60hz gameplay look hyper smooth, even though not much changed. Frame pacing really matters. Applies to very closely matching framerates or multiples of (eg. 60hz screen with 29.97hz video), not to bigger differences like 50hz vs 60hz.

Drawback: MPV will be forced to run at screen V-Sync, draining battery faster. If your screen is 60hz, but the video is 29.97hz, MPV will re-draw the screen at 60hz, instead of just 29.97hz, doubling GPU load.

Re:mpv a free, open-source, and cross-platform media player by shmerl on Tuesday August 27, 2024 @01:31AM (#41364799)
60 Hz display is a bad case to begin with. How visible it is let's say on 180 Hz one?

Though ideally, may be display should use adaptive sync to the player rather than the player trying to hack around the video to display?

Re:mpv a free, open-source, and cross-platform media player by FrostKiwi on Sunday August 25, 2024 @10:56PM (#41353620)
It's makes so the frame pacing fits the display refresh rate, making viewing a lot more pleasant and smoother. Eg.: Your Screen is 60hz, but the video is 59.97hz, then there will be a dropped frame. `--video-sync=display-resample` speeds the video up by a tiny percentage to make every display refresh match a new video frame. The correction factor is recalculated every frame and can be viewed by pressing I. This makes way more difference that one would imagine and makes 60hz gameplay look hyper smooth, even though not much changed. Frame pacing really matters. Applies to very closely matching framerates or multiples of (eg. 60hz screen with 29.97hz video), not to bigger differences like 50hz vs 60hz.

Drawback: MPV will be forced to run at screen V-Sync, draining battery faster. If your screen is 60hz, but the video is 29.97hz, MPV will re-draw the screen at 60hz, instead of just 29.97hz, doubling GPU load.

Re:mpv a free, open-source, and cross-platform media player by literallycancer on Sunday August 18, 2024 @10:15AM (#41282521)
Doesn't it already keep the audio in sync by default? What's the difference with this option?
Re:mpv a free, open-source, and cross-platform media player by FrostKiwi on Sunday August 25, 2024 @10:56PM (#41353629)
It's makes so the frame pacing fits the display refresh rate, making viewing a lot more pleasant and smoother. Eg.: Your Screen is 60hz, but the video is 59.97hz, then there will be a dropped frame. `--video-sync=display-resample` speeds the video up by a tiny percentage to make every display refresh match a new video frame. The correction factor is recalculated every frame and can be viewed by pressing I. This makes way more difference that one would imagine and makes 60hz gameplay look hyper smooth, even though not much changed. Frame pacing really matters. Applies to very closely matching framerates or multiples of (eg. 60hz screen with 29.97hz video), not to bigger differences like 50hz vs 60hz.

Drawback: MPV will be forced to run at screen V-Sync, draining battery faster. If your screen is 60hz, but the video is 29.97hz, MPV will re-draw the screen at 60hz, instead of just 29.97hz, doubling GPU load.