mpv icon indicating copy to clipboard operation
mpv copied to clipboard

mpv on Mac isn't playing this right, compared against mplayerX

Open CaledoniaProject opened this issue 11 years ago • 15 comments

I've uploaded the AVI here: https://www.dropbox.com/s/s02dc72zmr51tgb/1.avi?dl=0

You can try to open it with both mpv and mplayerX and the difference is discernible.

I took a screenshot: screen

CaledoniaProject avatar Jan 27 '15 16:01 CaledoniaProject

FYI dropbox seems to render it correctly, no black outs

CaledoniaProject avatar Jan 27 '15 16:01 CaledoniaProject

I'm unable to guess what your problem is.

ghost avatar Jan 27 '15 16:01 ghost

As discussed on IRC, this seems to be an issue with the bundle, and doesn't happen when starting from command line.

ghost avatar Jan 27 '15 17:01 ghost

Still happens if I run mpv 1.avi P.S I installed mpv-0.7.2 with homebrew

CaledoniaProject avatar Jan 29 '15 00:01 CaledoniaProject

Use mpv from git brew install --HEAD mpv. It looks like this bug is already fixed.

pigoz avatar Jan 29 '15 06:01 pigoz

Also, 0.7.3 is the most recent release. Not sure if that fixes it.

ghost avatar Jan 29 '15 08:01 ghost

I tested and it's broken on 0.7.3

pigoz avatar Jan 29 '15 08:01 pigoz

Still broken:

%> mpv --version mpv git-c63ca50 (C) 2000-2015 mpv/MPlayer/mplayer2 projects built on 2015-01-29T13:10:58 ffmpeg library versions: libavutil 54.15.100 libavcodec 56.13.100 libavformat 56.15.102 libswscale 3.1.101 libavfilter 5.2.103 libswresample 1.1.100

CaledoniaProject avatar Jan 29 '15 13:01 CaledoniaProject

Just tried in OSX 10.10.2 with the latest master version and the file in the opening post, and it's definitely still not working, both with the bundle or by playing the file from terminal.

Rick-74 avatar Feb 03 '15 17:02 Rick-74

Strange, now I can reproduce with both CLI and bundle (don't think it's OS X specific).

Looks some problem with BGRA display, adding --vf=format=yuv420p seems to remove the black artifacts.

pigoz avatar Feb 03 '15 17:02 pigoz

Actually the sample video contains an alpha channel (who knows why...) and mpv is trying by default to blend the video to the black window background respecting the alpha. See http://mpv.io/manual/master/#video-output-drivers-alpha

mpv --vo=opengl:alpha=no and mpv --vo=opengl:alpha=yes seem to work (instead of the default: blend).

pigoz avatar Feb 03 '15 17:02 pigoz

Wow, awesome.

ghost avatar Feb 03 '15 18:02 ghost

Seems like the decoder outputs garbage on the alpha channel, which causes this.

ghost avatar Feb 03 '15 19:02 ghost

Well, changed the default (commit a33b461), which "fixes" this, and in exchange will show garbage pixels instead of "transparency" with png files.

ghost avatar Feb 03 '15 20:02 ghost

Reverted the fix. You now need FFmpeg git master to display this file correctly with vo_opengl default settings.

ghost avatar Feb 06 '15 22:02 ghost