Карталинский форум http://forum.kartaly.ru/ |
|
VDPAU & PureVideo http://forum.kartaly.ru/viewtopic.php?f=45&t=35532 |
Страница 1 из 1 |
Автор: | Rainman [ 20 дек 2013, 09:16 ] |
Заголовок сообщения: | VDPAU & PureVideo |
Итак комрады, некий фонат по FreeBSD натолкнул меня на мысль, что FAQ'и все таки писать надо. Будем просвещать народ. Инфа была собрана по крупицам и результат таки себя оправдан. Итак попробую составить FAQ для настройки операционной системы Linux для просмотра любых HD фильмов. Сразу поясню - что решал эту проблему на видеокартах Nvidia и deb-based системах. Для просмотра нам необходимо сочетание программно-аппаратных возможностей Вашего компьютера. 1) Программно нам необходимо установить проприетарный видеодрайвер с офф.сайта Nvidia. Также необходимо настроить плеер. Декодировать HD видео умеют программы SMPlayer и XBMC. Необходимо отметить, что данный способ входит в противоречие с пакетной системой Debian и драйвер может не работать вовсе после обновления системы. Не пользуйтесь им без особой необходимости. Цитата: подключаем ветку non-free Цитата: Скачиваем драйвер для своей видеокарты, в опциях поиска укажите Linux 32-bit/Linux 64-bit в зависимости от разрядности вашей системы Цитата: Устанавливаем необходимые для последующей сборки пакеты: # apt-get install linux-headers-`uname -r` binutils pkg-config build-essential xserver-xorg-dev Цитата: Переключаемся на виртуальную консоль (уходим из оболочки), для этого нажмите сочетание клавиш Ctrl+Alt+F1, залогиньтесь под рутом и наберите команду # killall gdm Цитата: Перейдите в папку, в которой вы сохранили драйвер и наберите команду (вместо звездочки лучше дописать версию драйвера): # sh ./NVIDIA-Linux-*.run Цитата: Перезагружаем компьютер: # reboot Как правило, видеодрайвер после установки сам генерирует конфигурационный файл, вот пример моего: Цитата: rain@debian:~$ cat /etc/X11/xorg.conf # nvidia-xconfig: X configuration file generated by nvidia-xconfig # nvidia-xconfig: version 304.60 (buildmeister@swio-display-x86-rhel47-13) Sun Oct 14 21:19:18 PDT 2012 Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Files" EndSection Section "InputDevice" # generated from default Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/psaux" Option "Emulate3Buttons" "no" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" # generated from default Identifier "Keyboard0" Driver "kbd" EndSection Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "Unknown" HorizSync 28.0 - 33.0 VertRefresh 43.0 - 72.0 Option "DPMS" EndSection Section "Device" Identifier "Device0" Driver "nvidia" VendorName "NVIDIA Corporation" EndSection Section "Screen" Identifier "Screen0" Device "Device0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 EndSubSection EndSection Проверить как установился драйвер можно командой из графической среды Цитата: rain@debian:~$ glxinfo | grep Open OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: GeForce GTS 250/PCIe/SSE2 OpenGL version string: 3.3.0 NVIDIA 304.60 OpenGL shading language version string: 3.30 NVIDIA via Cg compiler Цитата: rain@debian:~$ glxinfo | grep render direct rendering: Yes 2) Аппаратно нам необходима видеокарта Nvidia, которая умеет VDPAU и PureVideo Цитата: VDPAU (Video Decode and Presentation API for Unix) is an open source library (libvdpau) and API originally designed by Nvidia for its GeForce 8 series and later GPU hardware,[1][2] targeted at the X Window System on Unix-Like operating systems (including Linux, FreeBSD, and Solaris).[3][4][5] This VDPAU API allows video programs to offload portions of the video decoding process and video post-processing to the GPU video-hardware. Currently, the portions capable of being offloaded by VDPAU onto the GPU are motion compensation (mo comp), inverse discrete cosine transform (iDCT), VLD (variable-length decoding) and deblocking for MPEG-1, MPEG-2, MPEG-4 ASP (MPEG-4 Part 2), H.264/MPEG-4 AVC and VC-1, WMV3/WMV9 encoded videos.[3] Which specific codecs of these that can be offloaded to the GPU depends on the generation version of the GPU hardware; specifically, to also decode MPEG-4 ASP (MPEG-4 Part 2), Xvid/OpenDivX (DivX 4), and DivX 5 formats, a GeForce 200M (2xxM) Series (the eleventh generation of Nvidia's GeForce graphics processing units) or newer GPU hardware is required Цитата: Nvidia PureVideo is a hardware feature designed to offload video decoding processes and video post-processing from a computer's CPU hardware to Nvidia's GPU hardware series GeForce 6 and later, GeForce M series (formerly known as GeForce Go); and Nvidia Quadro series. PureVideo is designed to work with media playback software, it can also be used for the decoding process of transcoding software. Nvidia's proprietary device drivers for Windows, Linux, Solaris and FreeBSD are PureVideo-enabled; with the appropriate (PureVideo-enabled) application software, the Nvidia driver will automatically use whatever hardware-acceleration is available on the Nvidia display-adapter. Таблица совместимых с VDPAU видеокарт По таблице мы видим, что с VDPAU совместим GeForce 8400 GS, 8500 GT с чипом G86 и также более новые видеокарты. В настройках SMPlayer выставляем VDPAU При декодировании нагрузка на процессор составляет 3-5%, всю работу выполняет видеокарта. Без видеокарты нагрузка на процессор составляет 70-90% и видео идет рывками. У некоторых видеокарт есть HDMI. Можно кидать картинку на fullHD телевизор. Смотрим и наслаждаемся. |
Страница 1 из 1 | Часовой пояс: UTC + 5 часов [ Летнее время ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |