There's a sentence you never thought you're write. What a bloody stupid username it looks when I see someone else write it…pete wrote:You are right monkeydogcat.
Indeed. All hail Jools, he who puts things I'm not entirely clear on in to Ubuntu builds and makes our Jogglers useful.pete wrote: Best you heed Jool's last post...Joggler Obi Wan extraordinaire
My problems with kodi are 1] It has pretty much no command line options. 2] No apparent way to make it start up, play video, exit when video ends, 3] It takes so, very, long to actually play a video. I just timed it launching to play a 1280x720 video and it took 11 seconds from my hitting Enter to the video actually starting to play. mplayer took 1.5 seconds. mplayer, yes mplayer, for I have a working mplayer binary that uses vaapi.
I decided to try rebuilding Jool's mplayer-vaapi package for 14.04. It was quite an adventure because I've never built a deb package before. Also I decided to do the build on the Joggler. Partly because it seemed easier than creating another Xubuntu build in a VM to use, and partly just to see how long it would take. As I mentioned, there was insufficient space in / to install all the requried build depdendencies. There was plenty of empty space on the flash drive I'm using though, so I deleted the / partition with fdisk and recreated it bigger, then resized the filesystem. Then I installed all the build dependencies. Then I throttled the CPU out of fear that running it at 1.3Ghz for long enough to compile something, combined with the not entirely adequate CPU cooling capabilities of the Joggler, may melt it. In a sudo shell:
Code: Select all
$ echo powersave |tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
I figured out I needed to download mplayer-vaapi_1.0~rc5.git20111027.orig.tar.gz mplayer-vaapi_1.0~rc5.git20111027-1ubuntu1~lucid~ppa2.dsc mplayer-vaapi_1.0~rc5.git20111027-1ubuntu1~lucid~ppa2.debian.tar.gz from https://launchpad.net/~jools/+archive/u ... /+packages I stuck them all in a directory by themselves, then
Code: Select all
$ dpkg-source -x mplayer-vaapi_1.0~rc5.git20111027-1ubuntu1~lucid~ppa2.dsc
$ cd mplayer-vaapi-1.0~rc5.git20111027/
$ time dpkg-buildpackage -rfakeroot -b
At this point I decided I didn't really care about having a .deb package. So I decided to just try building mplayer.
Code: Select all
$ time ./configure --prefix=/home/joggler/mplayer-vaapi --confdir=/home/joggler/etc/mplayer --enable-xvmc --enable-vaapi --disable-arts --disable-mencoder
I now have an mplayer binary that will play http://download.blender.org/peach/bigbu ... p_h264.mov fullscreen using no more than 15% CPU. Which is something glorious to behold.
Code: Select all
joggler@joggler:~$ mplayer-vaapi/bin/mplayer -fs -vo vaapi big_buck_bunny_1080p_h264.mov