Gentoo Archives: gentoo-user

From: Behrouz Khosravi <bz.khosravi@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] screen tearing with mpv but not mplayer
Date: Sat, 22 Oct 2016 13:04:16
Message-Id: dc594e06-1557-a172-70dd-010881ba7297@gmail.com
In Reply to: Re: [gentoo-user] screen tearing with mpv but not mplayer by David Haller
1 > Try 'opengl', 'opengl-old'... But 'xv' should be just as good. Maybe
2 > there's some filter (deblocking/deringing/denoise) active with one but
3 > not with 'xv'.
4 >
5 > And I've IIRC used plain 'x11' (or was it 'xv'?) for a very long time.
6 >
7 > Try benchmarking yourself a bit, after you've found a setting where no
8 > tearing occurs. Seems mpv has scrapped that benchmarking code of
9 > mplayer though.
10 >
11 > $ mplayer -ss 20:00 -endpos 10 -benchmark -vo x11 foo.mkv
12 > BENCHMARKs: VC: 0.910s VO: 1.792s A: 0.043s Sys: 5.272s = 8.017s
13 > $ mplayer -ss 20:00 -endpos 10 -benchmark -vo xv foo.mkv
14 > BENCHMARKs: VC: 1.076s VO: 0.147s A: 0.048s Sys: 6.746s = 8.018s
15 > $ mplayer -ss 20:00 -endpos 10 -benchmark -vo gl foo.mkv
16 > BENCHMARKs: VC: 1.117s VO: 0.251s A: 0.045s Sys: 6.604s = 8.018s
17 > $ mplayer -ss 20:00 -endpos 10 -benchmark -vo gl2 foo.mkv
18 > BENCHMARKs: VC: 0.929s VO: 0.746s A: 0.040s Sys: 6.307s = 8.021s
19 > $ mplayer -ss 20:00 -endpos 10 -benchmark -vo vdpau foo.mkv
20 > BENCHMARKs: VC: 1.161s VO: 0.204s A: 0.071s Sys: 6.582s = 8.018s
21 >
22 > Look at the 'VO: ...s' column. You'd probably need longer tests for
23 > significant results.
24 >
25 > But, as mpv is based on the mplayer code, I guess you can "port" the
26 > results of each "-vo" to mpv with some educated guesses, and 'gl'
27 > (mpv: 'opengl'?) seems best ... ;)
28 >
29 > BTW: Why not just use mplayer? What does mpv offer that mplayer doesn't?
30 >
31 > BTW2:
32 > $ mplayer -ss 20:00 -endpos 10 -benchmark -vo vdpau -vc ffh264vdpau foo.mkv
33 > [just errors and some sound]
34 > $ midentify foo.mkv | grep CODEC
35 > ID_VIDEO_CODEC=ffh264
36 > ID_AUDIO_CODEC=ffac3
37 >
38 > Which is why I don't use vdpau ;)
39 >
40 > HTH,
41 > -dnh, firmly sticking to the original mplayer, and using mencoder
42 > on a regular basis
43 >
44
45 well the thing with quality is not important. I is negligible ( without
46 xv option, video seems a little brighter) However it is not important.
47 Good thing is that I realized what mplayer was doing for default which
48 mpv wasnt.
49 Anyway I can get what mplayer was offering, with mpv now, so there is no
50 need to change.