Site Tools


hw_accelerated_video_playback

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
hw_accelerated_video_playback [2012/10/26 01:05] – [ubuntu 12.04] fly-awayhw_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.0412.10, 13.xx =====
  
 <HTML> <HTML>
 +<span style="color:red;font-size:120%;"><br/>
 +<b>Warning! Article is a little bit outdated!</b> <br/>
 +<br/>
 +</span>
 <span style="color:red;font-size:120%;">Warning! Use this instruction at you own risk! <br/> <span style="color:red;font-size:120%;">Warning! Use this instruction at you own risk! <br/>
 You should definitly know what are you doing <br/> You should definitly know what are you doing <br/>
 (especially at "Fix kernel cmdline" section) else <br/> (especially at "Fix kernel cmdline" section) else <br/>
 you may get unbootable or broken system!<br/> you may get unbootable or broken system!<br/>
 +</span>
 +<span style="color:red;font-size:120%;"><br/>
 +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="http://developer.nvidia.com/sites/default/files/akamai/mobile/files/L4T/ventana_Tegra-Linux-codecs-R16.3.0_armhf.tbz2">ventana_Tegra-Linux-codecs-R16.3.0_armhf.tbz2</a> <br/>
 +<br/>
 </span> </span>
 </HTML> </HTML>
  
 ==== ubuntu 12.04 ==== ==== ubuntu 12.04 ====
 +
 === Fix kernel cmdline for 3.1.10 kernel === === Fix kernel cmdline for 3.1.10 kernel ===
 **Important!** For ubuntu 12.04 you should add **console=tty1** to **cmdline** parameters in **/boot/bootimg.cfg**  **Important!** For ubuntu 12.04 you should add **console=tty1** to **cmdline** parameters in **/boot/bootimg.cfg** 
Line 17: Line 29:
 cmdline = mem=512M@0M tergapart=something root=UUID=anothersomething  quiet splash console=tty1 cmdline = mem=512M@0M tergapart=something root=UUID=anothersomething  quiet splash console=tty1
 </code> </code>
-Open **/boot/bootimg.cfg** in you text editor and make changes.+Open **/boot/bootimg.cfg** in you favorite text editor and make changes. 
 +<code bash> 
 +sudo apt-get purge nvidia-tegra 
 +sudo update-alternatives --remove arm-linux-gnueabi_egl_conf /usr/lib/nvidia-tegra/ld.so.conf 
 +sudo update-alternatives --remove-all nvidia_drv 
 +</code>
  
-Next download and install 3.1.10 kernel+=== Kernel and driver installation === 
 + 
 +Remove previous nvidia-tegra installation 
 +<code bash> 
 +sudo apt-get purge nvidia-tegra 
 +sudo update-alternatives --remove arm-linux-gnueabi_egl_conf /usr/lib/nvidia-tegra/ld.so.conf 
 +sudo update-alternatives --remove-all nvidia_drv 
 +</code> 
 + 
 +Download and install kernel and driver packages
 <code bash> <code bash>
 wget http://launchpadlibrarian.net/118260107/linux-image-3.1.10-6-ac100_3.1.10-6.9_armhf.deb wget http://launchpadlibrarian.net/118260107/linux-image-3.1.10-6-ac100_3.1.10-6.9_armhf.deb
-sudo dpkg -i linux-image-3.1.10-6-ac100_3.1.10-6.9_armhf.deb+wget http://flie.no-ip.org:7080/ac100/deb/nvidia-tegra_16.1.0-0ubuntu3~fly2_armhf.deb 
 +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
 </code> </code>
  
-==== ubuntu 12.04 ==== +==== ubuntu 12.10 ==== 
-Just check you kernel version. It should be 3.1.10-6.9 or newest.+ 
 +First, check you kernel version. It should be 3.1.10-6.9 or later.
 <code bash> <code bash>
 dpkg -l | grep linux-image-3.1.10 dpkg -l | grep linux-image-3.1.10
 </code> </code>
-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
 </code> </code>
-==== Install nvidia-tegra drivers==== 
  
-First, remove previous installation if nvidia-tegra+=== Install nvidia-tegra drivers===
  
 +Remove previous nvidia-tegra installation 
 <code bash> <code bash>
 sudo apt-get purge nvidia-tegra sudo apt-get purge nvidia-tegra
Line 44: Line 72:
 </code> </code>
  
-Then download and install new codecs and driver packages.+Download and install new codecs and driver packages.
 <code bash> <code bash>
 wget http://flie.no-ip.org:7080/ac100/deb/nvidia-tegra-ventana-codecs_16.0.0-0ubuntu1_armhf.deb wget http://flie.no-ip.org:7080/ac100/deb/nvidia-tegra-ventana-codecs_16.0.0-0ubuntu1_armhf.deb
 wget https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-tegra/16.2.0-0ubuntu3/+build/3907865/+files/nvidia-tegra_16.2.0-0ubuntu3_armhf.deb wget https://launchpad.net/ubuntu/+source/nvidia-graphics-drivers-tegra/16.2.0-0ubuntu3/+build/3907865/+files/nvidia-tegra_16.2.0-0ubuntu3_armhf.deb
-sudo dpkg -i nvidia-tegra_16.2.0-0ubuntu3_armhf.deb nvidia-tegra_16.2.0-0ubuntu3_armhf.deb+sudo dpkg -i nvidia-tegra_16.2.0-0ubuntu3_armhf.deb nvidia-tegra-ventana-codecs_16.0.0-0ubuntu1_armhf.deb
 </code> </code>
  
-If you prefer you own kernel, inspect that you have CONFIG_TEGRA_AVP_KERNEL_ON_MMU=y and "CONFIG_TEGRA_NVAVP is not set" in kernel config.+//If you prefer you own kernel, inspect that you have CONFIG_TEGRA_AVP_KERNEL_ON_MMU=y and "CONFIG_TEGRA_NVAVP is not set" in kernel config.// 
 + 
 +==== ubuntu 13.xx ==== 
 +Driver package is ok in 13.xx. Install it. 
 +<code bash> 
 +sudo apt-get install nvidia-tegra 
 +</code> 
 + 
 +Download and install codecs packages. 
 +TODO: provide link to actual codecs package
  
  
 ==== Gstreamer tuninig ==== ==== Gstreamer tuninig ====
  
-**gstreamer-properties** its a part of gnome-media package.+**gstreamer-properties** is a part of gnome-media package.
 Run Run
  
Line 76: Line 113:
 [[http://www.dvdloc8.com/clip.php?movieid=12167&clipid=1|Example video - h264 720p trailer]] [[http://www.dvdloc8.com/clip.php?movieid=12167&clipid=1|Example video - h264 720p trailer]]
 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 100: Line 139:
 </code> </code>
  
-Also, there is some other ways to play video inside window+Also, there is some other ways to play video in window mode
 <code> <code>
 nvgstplayer -i  file:///media/TOS_AC_AZ/Videos/example.avi --svs="nvxvimagesink" nvgstplayer -i  file:///media/TOS_AC_AZ/Videos/example.avi --svs="nvxvimagesink"
Line 120: Line 159:
 </code> </code>
 There is some [[games|]] [[http://ac100.wikispaces.com/%D0%98%D0%B3%D1%80%D1%8B|(even more games on russian wiki)]] running on ac100 via  GLES2 There is some [[games|]] [[http://ac100.wikispaces.com/%D0%98%D0%B3%D1%80%D1%8B|(even more games on russian wiki)]] running on ac100 via  GLES2
-Also check WebGL [[http://www.khronos.org/webgl/wiki/Demo_Repository]] in chromium running as+Also check WebGL on [[http://www.khronos.org/webgl/wiki/Demo_Repository|Chronos]] or [[http://www.chromeexperiments.com/tag/webgl|Chrome Experiments]] in chromium running as
 <code>chromium-browser ----use-gl=egl</code> <code>chromium-browser ----use-gl=egl</code>
- 
hw_accelerated_video_playback.txt · Last modified: 2014/11/24 10:33 by stuw