hw_accelerated_video_playback
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
hw_accelerated_video_playback [2012/10/26 01:07] – [Install nvidia-tegra drivers] fly-away | hw_accelerated_video_playback [2013/12/18 06:33] – [Nvidia Driver for ubuntu 12.04, 12.10, 13.xx] stuw | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Nvidia Driver for ubuntu 12.04 and 12.10. ===== | + | ===== Nvidia Driver for ubuntu 12.04, 12.10, 13.xx ===== |
< | < | ||
+ | <span style=" | ||
+ | < | ||
+ | <br/> | ||
+ | </ | ||
<span style=" | <span style=" | ||
You should definitly know what are you doing <br/> | You should definitly know what are you doing <br/> | ||
(especially at "Fix kernel cmdline" | (especially at "Fix kernel cmdline" | ||
you may get unbootable or broken system!< | you may get unbootable or broken system!< | ||
+ | </ | ||
+ | <span style=" | ||
+ | Notes: <br/> | ||
+ | 1) 12.10 should have fixed nvidia-tegra driver package. So it is not needed to remove it. <br/> | ||
+ | 2) some links are outdated. <br/> | ||
+ | - codecs archive: <a href=" | ||
+ | <br/> | ||
</ | </ | ||
</ | </ | ||
- | ==== ubuntu 12.04 preparing | + | ==== ubuntu 12.04 ==== |
- | If you are on 12.10, skip this section. | + | |
=== Fix kernel cmdline for 3.1.10 kernel === | === Fix kernel cmdline for 3.1.10 kernel === | ||
Line 19: | Line 29: | ||
cmdline = mem=512M@0M tergapart=something root=UUID=anothersomething | cmdline = mem=512M@0M tergapart=something root=UUID=anothersomething | ||
</ | </ | ||
- | Open **/ | + | Open **/ |
+ | <code bash> | ||
+ | sudo apt-get purge nvidia-tegra | ||
+ | sudo update-alternatives --remove arm-linux-gnueabi_egl_conf / | ||
+ | sudo update-alternatives --remove-all nvidia_drv | ||
+ | </ | ||
- | === Next download | + | === Kernel |
+ | |||
+ | Remove previous nvidia-tegra installation | ||
+ | <code bash> | ||
+ | sudo apt-get purge nvidia-tegra | ||
+ | sudo update-alternatives --remove arm-linux-gnueabi_egl_conf / | ||
+ | sudo update-alternatives --remove-all nvidia_drv | ||
+ | </ | ||
+ | |||
+ | Download and install kernel and driver packages | ||
<code bash> | <code bash> | ||
wget http:// | wget http:// | ||
- | sudo dpkg -i linux-image-3.1.10-6-ac100_3.1.10-6.9_armhf.deb | + | wget http:// |
+ | sudo dpkg -i linux-image-3.1.10-6-ac100_3.1.10-6.9_armhf.deb nvidia-tegra_16.1.0-0ubuntu3~fly2_armhf.deb | ||
</ | </ | ||
- | ==== ubuntu 12.10 preparing | + | ==== ubuntu 12.10 ==== |
- | Just check you kernel version. It should be 3.1.10-6.9 or newest. | + | |
+ | First, | ||
<code bash> | <code bash> | ||
dpkg -l | grep linux-image-3.1.10 | dpkg -l | grep linux-image-3.1.10 | ||
</ | </ | ||
- | Update it if nessesary | + | Update it if necessary |
<code bash> | <code bash> | ||
sudo apt-get install linux-image-ac100 | sudo apt-get install linux-image-ac100 | ||
</ | </ | ||
- | ==== Install nvidia-tegra drivers==== | ||
- | First, remove previous installation if nvidia-tegra | + | === Install |
+ | Remove previous nvidia-tegra installation | ||
<code bash> | <code bash> | ||
sudo apt-get purge nvidia-tegra | sudo apt-get purge nvidia-tegra | ||
Line 46: | Line 72: | ||
</ | </ | ||
- | Then download | + | Download |
<code bash> | <code bash> | ||
wget http:// | wget http:// | ||
Line 53: | Line 79: | ||
</ | </ | ||
- | If you prefer you own kernel, inspect that you have CONFIG_TEGRA_AVP_KERNEL_ON_MMU=y and " | + | //If you prefer you own kernel, inspect that you have CONFIG_TEGRA_AVP_KERNEL_ON_MMU=y and " |
+ | |||
+ | ==== ubuntu 13.xx ==== | ||
+ | Driver package is ok in 13.xx. Install it. | ||
+ | <code bash> | ||
+ | sudo apt-get install nvidia-tegra | ||
+ | </ | ||
+ | |||
+ | Download and install codecs packages. | ||
+ | TODO: provide link to actual codecs package | ||
==== Gstreamer tuninig ==== | ==== Gstreamer tuninig ==== | ||
- | **gstreamer-properties** | + | **gstreamer-properties** |
Run | Run | ||
Line 78: | Line 113: | ||
[[http:// | [[http:// | ||
Should play smoothly in totem, and you can compare it with mplayer -vo x11. | Should play smoothly in totem, and you can compare it with mplayer -vo x11. | ||
+ | |||
+ | **Advice**: install **gstreamer0.10-plugins-bad** to ac3-encoded audiotracks playback. | ||
=== Totem keyboard shortcuts: === | === Totem keyboard shortcuts: === | ||
Line 102: | Line 139: | ||
</ | </ | ||
- | Also, there is some other ways to play video inside | + | Also, there is some other ways to play video in window |
< | < | ||
nvgstplayer -i file:/// | nvgstplayer -i file:/// | ||
Line 122: | Line 159: | ||
</ | </ | ||
There is some [[games|]] [[http:// | There is some [[games|]] [[http:// | ||
- | Also check WebGL [[http:// | + | Also check WebGL on [[http:// |
< | < | ||
- |
hw_accelerated_video_playback.txt · Last modified: 2014/11/24 10:33 by stuw