LINUX.ORG.RU

mpv и тормоза

 ,


0

3

Добрый день ЛОР. Собрал mpv как и обычно, с теми же юзами что и всегда. Все хорошо, но дико тормозит на любом качестве и формате видео. Помогите пожайлуста справится с этой проблемой, фильмы хочется смотреть.

Видяшка Nvidia, драйвер 304.134 (блоб).

★★★

Ответ на: комментарий от anonymous
Playing: 2.avi
 (+) Video --vid=1 (mpeg4)
 (+) Audio --aid=1 (mp3)
libEGL warning: DRI2: failed to authenticate
AO: [alsa] 48000Hz stereo 2ch s16
VO: [opengl] 720x400 yuv420p
[osd/libass] fontconfig: cannot find font 'sans-serif', falling back to 'Nimbus Sans L'
AV: 00:00:14 / 00:51:54 (0%) A-V:  0.367 Dropped: 323
xaTa ★★★
() автор топика

Видяшка Nvidia, драйвер 304.134 (блоб).

А когда разберешся почему у тебя OpenGL не работает можешь еще до кучи vdpau настроить.

morse ★★★★★
()
Ответ на: комментарий от morse

подозреваю что он у него работает, но через Ж

anonymous
()
Ответ на: комментарий от anonymous
top - 20:54:33 up  1:02,  4 users,  load average: 0,61, 0,57, 0,56
Tasks: 111 total,   2 running, 106 sleeping,   3 stopped,   0 zombie
%Cpu(s): 17,7 us,  1,3 sy,  0,9 ni, 78,4 id,  1,5 wa,  0,0 hi,  0,1 si,  0,0 st
KiB Mem :  4041456 total,  1399320 free,  1240184 used,  1401952 buff/cache
KiB Swap:  2096444 total,  2096444 free,        0 used.  2648744 avail Mem 

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 5675 chunk     20   0  975456  95044  39756 S  87,5  2,4   0:26.22 mpv
 4896 root      20   0  308328 101920  41164 R  43,8  2,5   5:54.10 X
 5090 chunk     20   0 2130232 633796  88240 S  12,5 15,7  10:58.62 palemoon
 5026 chunk     20   0 1022712  63612  46176 S   6,2  1,6   0:05.66 caja
 5215 chunk     20   0 1239392 360780  53552 S   6,2  8,9   1:36.34 plugin-containe
 5258 chunk     20   0  533008  43564  30600 S   6,2  1,1   0:04.08 mate-terminal
    1 root      20   0    4172   1376   1268 S   0,0  0,0   0:00.67 init
    2 root      20   0       0      0      0 S   0,0  0,0   0:00.00 kthreadd
    3 root      20   0       0      0      0 S   0,0  0,0   0:00.09 ksoftirqd/0
    5 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 kworker/0:0H
    7 root      20   0       0      0      0 S   0,0  0,0   0:00.71 rcu_sched
    8 root      20   0       0      0      0 S   0,0  0,0   0:00.00 rcu_bh
    9 root      rt   0       0      0      0 S   0,0  0,0   0:00.47 migration/0
   10 root      rt   0       0      0      0 S   0,0  0,0   0:00.35 migration/1
   11 root      20   0       0      0      0 S   0,0  0,0   0:00.21 ksoftirqd/1
   12 root      20   0       0      0      0 S   0,0  0,0   0:00.03 kworker/1:0
   13 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 kworker/1:0H
   14 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 khelper
   15 root      20   0       0      0      0 S   0,0  0,0   0:00.00 kdevtmpfs
   16 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 netns
   19 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 perf
  205 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 writeback
  207 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 crypto
  208 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 bioset
  210 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 kblockd
  226 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 ata_sff
  228 root       0 -20       0      0      0 S   0,0  0,0   0:00.00 md                           
xaTa ★★★
() автор топика
Ответ на: комментарий от Pinkbyte
00:00.0 RAM memory: NVIDIA Corporation MCP61 Memory Controller (rev a1)
	Subsystem: NVIDIA Corporation MCP61 Memory Controller
00:01.0 ISA bridge: NVIDIA Corporation MCP61 LPC Bridge (rev a2)
	Subsystem: NVIDIA Corporation MCP61 LPC Bridge
00:01.1 SMBus: NVIDIA Corporation MCP61 SMBus (rev a2)
	Subsystem: NVIDIA Corporation MCP61 SMBus
00:01.2 RAM memory: NVIDIA Corporation MCP61 Memory Controller (rev a2)
	Subsystem: NVIDIA Corporation MCP61 Memory Controller
00:02.0 USB controller: NVIDIA Corporation MCP61 USB 1.1 Controller (rev a3)
	Subsystem: NVIDIA Corporation MCP61 USB 1.1 Controller
	Kernel driver in use: ohci-pci
00:02.1 USB controller: NVIDIA Corporation MCP61 USB 2.0 Controller (rev a3)
	Subsystem: NVIDIA Corporation MCP61 USB 2.0 Controller
	Kernel driver in use: ehci-pci
00:04.0 PCI bridge: NVIDIA Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: NVIDIA Corporation MCP61 High Definition Audio (rev a2)
	Subsystem: Jetway Information Co., Ltd. MCP61 High Definition Audio
	Kernel driver in use: snd_hda_intel
00:06.0 IDE interface: NVIDIA Corporation MCP61 IDE (rev a2)
	Subsystem: NVIDIA Corporation MCP61 IDE
	Kernel driver in use: pata_amd
00:07.0 Bridge: NVIDIA Corporation MCP61 Ethernet (rev a2)
	Subsystem: NVIDIA Corporation MCP61 Ethernet
	Kernel driver in use: forcedeth
00:08.0 IDE interface: NVIDIA Corporation MCP61 SATA Controller (rev a2)
	Subsystem: NVIDIA Corporation MCP61 SATA Controller
	Kernel driver in use: sata_nv
00:09.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
	Kernel driver in use: pcieport
00:0b.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
	Kernel driver in use: pcieport
00:0c.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
	Kernel driver in use: pcieport
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
	Kernel driver in use: k8temp
02:00.0 VGA compatible controller: NVIDIA Corporation G70 [GeForce 7800 GTX] (rev a1)
	Subsystem: ASUSTeK Computer Inc. G70 [GeForce 7800 GTX]
	Kernel driver in use: nvidia
	Kernel modules: nvidia
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11
xaTa ★★★
() автор топика

Собрал mpv как и обычно, с теми же юзами что и всегда.

Мы как всегда должны догадаться с какими именно флагами собрано. Выложи выхлопы: equery u mpv с подсветкой активных юзфлагов и конфиг mpv.

With ★☆☆
()
Ответ на: комментарий от Pinkbyte
desktop chunk # glxinfo | grep OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 7800 GTX/PCIe/SSE2
OpenGL version string: 2.1.2 NVIDIA 304.134
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 NVIDIA 304.134 304.134
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.00
OpenGL ES profile extensions:

или полный нужен?

xaTa ★★★
() автор топика
Ответ на: комментарий от With

«как обычно» это подразумевает почти один и тот же набор юзов для всех моих машин на gentoo.

desktop chunk # equery u mpv
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-video/mpv-0.18.0-r1:
 U I
 + + X              : Add support for X11
 + + alsa           : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - archive        : Enable support for various archive formats via app-arch/libarchive
 - - bluray         : Enable playback of Blu-ray filesystems
 + + cdda           : Add Compact Disk Digital Audio (Standard Audio CD) support
 + + cli            : Build mpv CLI player
 - - doc            : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of globally
 - - drm            : Enable Kernel Mode Setting / Direct Rendering Manager based video output
 - - dvb            : Add support for DVB (Digital Video Broadcasting)
 + + dvd            : Add support for DVDs
 + + egl            : Enable support for various EGL-based video outputs
 + + enca           : Enable subtitles charset discovery via app-i18n/enca
 + + encode         : Add support for encoding of audio or video files
 - - gbm            : Enable Graphics Buffer Manager based EGL video output
 + + iconv          : Enable support for the iconv character set conversion library
 - - jack           : Add support for the JACK Audio Connection Kit
 + + jpeg           : Enable support for saving screenshots in JPEG format
 + + lcms           : Add lcms support (color management engine)
 + + libass         : Enable OSD (On Screen Display) and subtitles support via media-libs/libass
 + + libav          : Prefer libav over ffmpeg whenever both are supported
 - - libcaca        : Add support for colored ASCII-art graphics
 - - libguess       : Enable subtitles charset discovery via app-i18n/libguess
 - - libmpv         : Build mpv shared library
 + + lua            : Enable Lua scripting, OSC (On Screen Controller) GUI and net-misc/youtube-dl hook-script
 + + luajit         : Use dev-lang/luajit instead of dev-lang/lua
 - - openal         : Add support for the Open Audio Library
 + + opengl         : Add support for OpenGL (3D graphics)
 - - oss            : Add support for OSS (Open Sound System)
 - - pulseaudio     : Add support for PulseAudio sound server
 - - rubberband     : Enable high quality pitch correction via media-libs/rubberband
 - - samba          : Add support for SAMBA (Windows File and Printer sharing)
 - - sdl            : Enable media-libs/libsdl2 based video and audio outputs (Note: these outputs exist for compatibility reasons only, avoid if possible)
 - - test           : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in
                      make.conf/package.use anymore
 - - uchardet       : Enable subtitles charset discovery via dev-libs/uchardet
 - - v4l            : Enable support for video4linux (using linux-headers or userspace libv4l libraries)
 - - vaapi          : Enable Video Acceleration API for hardware decoding
 + + vdpau          : Enable the Video Decode and Presentation API for Unix acceleration interface
 - - vf-dlopen      : Install additional video filters to be used with -vf dlopen
 - - wayland        : Enable dev-libs/wayland backend
 - - xinerama       : Add support for the xinerama X11 extension, which is mandatory if you work in multiple monitors setup
 + + xscreensaver   : Add support for XScreenSaver extension
 + + xv             : Add in optional support for the Xvideo extension (an X API for video playback)
 - - zsh-completion : Enable zsh completion support
xaTa ★★★
() автор топика
Ответ на: комментарий от With

А конфиг стандартный по хендбуку.

xaTa ★★★
() автор топика
Ответ на: комментарий от cchr

На этой все тоже самое, а вот на старой 0.9.2-r1 все зашибись. Почему так?

xaTa ★★★
() автор топика
Ответ на: комментарий от xaTa

На этой все тоже самое, а вот на старой 0.9.2-r1 все зашибись. Почему так?

Видимо, апстрим что-то выкинул/сломал.

Это флаг egl, если собирать без него то любая версия работает на ура.

Это полезная информация. Не могли бы вы сделать багрепорт в багзилле генты? Желательно приложить вывод используемой команды mpv, добавив ключик -v, с теми версиями, где проблема есть, и где её нет.

cchr
()
Ответ на: комментарий от cchr

Неразу этого не делал) завтра попробую сделать.

xaTa ★★★
() автор топика
Ответ на: комментарий от xaTa

Конфиг mpv.

#
# mpv configuration file
#
# Configuration files are read system-wide from /usr/local/etc/mpv.conf
# and per-user from ~/.config/mpv/mpv.conf, where per-user settings override
# system-wide settings, all of which are overridden by the command line.
#
# Configuration file settings and the command line options use the same
# underlying mechanisms. Most options can be put into the configuration file
# by dropping the preceding '--'. See the man page for a complete list of
# options.
#
# Lines starting with '#' are comments and are ignored.
#
# See the CONFIGURATION FILES section in the man page
# for a detailed description of the syntax.
#
# Profiles should be placed at the bottom of the configuration file to ensure
# that settings wanted as defaults are not restricted to specific profiles.
#
# Note that the commented example options usually do _not_ set the default
# values. Calling mpv with --list-options is a nice way to see the default
# values for most options.

##################
# video settings #
##################

# Specify default video driver (see --vo=help for a list).
vo=vdpau

# Start in fullscreen mode by default.
#fs=yes

# force starting with centered window
geometry=50%:50%

# don't allow a new window to have a size larger than 90% of the screen size
autofit-larger=90%x90%

# Disable the On Screen Controller (OSC).
osc=no

# Keep the player window on top of all other windows.
#ontop=yes

##################
# audio settings #
##################

# Specify default audio driver (see --ao=help for a list).
ao=alsa

# Disable softvol usage, and always use the system mixer if available.
#softvol=no
softvol-max=200

# Scale audio tempo by playback speed without altering pitch. (By default does
# nothing if playback speed is not changed. May introduce artifacts.)
#af=scaletempo

# Output 5.1 audio natively, and upmix/downmix audio with a different format.
#audio-channels=5.1
# Disable any automatic remix, _if_ the audio output accepts the audio format.
# of the currently played file. See caveats mentioned in the manpage.
# (This is the default.)
#audio-channels=auto

##################
# other settings #
##################

# Pretend to be a web browser. Might fix playback with some streaming sites,
# but also will break with shoutcast streams.
#user-agent=«Mozilla/5.0»

# cache settings
#
# Use 8MB input cache by default. The cache is enabled for network streams only.
cache-default=8192
#
# Use 8MB input cache for everything, even local files.
cache=8192
#
# If a seek is issued, and the target is 1024KB past the cached range, then
# keep reading until the seek target is hit, instead of doing a real seek.
cache-seek-min=1024
#
# Disable the behavior that the player will pause if the cache goes below a
# certain fill size.
cache-pause=no
#
# Read ahead about 5 seconds of audio and video packets.
#demuxer-readahead-secs=5.0

# Display English subtitles if available.
slang=ru

# Play Finnish audio if available, fall back to English otherwise.
alang=en,ru

# Change subtitle encoding. For Arabic subtitles use 'cp1256'.
# If the file seems to be valid UTF-8, prefer UTF-8.
sub-codepage=utf8:cp1251

# Enable hardware decoding if available. Often, this requires using an certain
# video output, otherwise no hardware decoding will be used.
hwdec=auto

############
# Profiles #
############

# The options declared as part of profiles override global default settings,
# but only take effect when the profile is active.

# The following profile can be enabled on the command line with: --profile=vdpau

#[vdpau]
# The profile forces the vdpau VO.
#vo=vdpau
# Use hardware decoding (this might break playback of some h264 files)
#hwdec=vdpau
# Most video filters do not work with hardware decoding.
#vf-clr=yes


# You can also include other configuration files.
#include=/path/to/the/file/you/want/to/include

With ★☆☆
()
Ответ на: комментарий от Pinkbyte
eselect opengl list

самое безполезное, что можно спросить. Уже 3 год на различных в том числе новых инсталляциях не правит симлинки libGL.so, кто это за неё будет делать, Пушкин?

anonymous
()
Ответ на: комментарий от slon

Конечно есть! Это же наследник великого и прекрасного mplayer у которого тоже есть конфиг.

With ★☆☆
()
Ответ на: комментарий от anonymous

Уже 3 год на различных в том числе новых инсталляциях не правит симлинки libGL.so, кто это за неё будет делать, Пушкин?

УМВР, в том числе и на новых инсталляциях. Но да, баги есть, как минимум 572274. И как фиксить не ясно - решения один хуже другого, серебряной пули нет(особенно если пройтись по списку связанных багов вроде этого и этого)

Pinkbyte ★★★★★
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.