Disabling touchpad tapping in Xubuntu Intrepid

I have reinstalled Xubuntu from the Xubuntu iso and it seems to be working fine.

The thing that bugged me the most though was that the touchpad on my vaio laptop was set up for “tapping” by default.

Tapping is something that people either love or hate, and I am in the latter category.

Gnome seems to have the ability to control the touchpad installed by default but Xubuntu uses Xfce rather than Gnome so there are a few tweaks needed to control the touchpad.

A good link is at https://help.ubuntu.com/community/SynapticsTouchpad

I followed the instructions to enable SHMConfig by typing:

gksudo mousepad /etc/hal/fdi/policy/shmconfig.fdi

I then pasted the following text into the file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
 <device>
  <match key="input.x11_driver" string="synaptics">
   <merge key="input.x11_options.SHMConfig" type="string">True</merge>
  </match>
 </device>
</deviceinfo>

Then I installed the qsynaptics package using the following command:

sudo aptitude install qsynaptics

After doing this I got a new icon showing in the xfce settings manager that gave me control of the touchpad settings.

Using Skype in Ubuntu Intrepid

I have been trying to get Skype set up on my Vaio Laptop running Ubuntu 8.10 and I thought it would be straightforward. I was a bit worried that the Skype download page offered Ubuntu 7.04-8.04 as I’m on 8.10!

Luckily this did not seem to matter as the “.deb” file seemed to install fine by double clicking it. The tricky bit was getting the microphone to work.

In the skype “audio settings” I used: Sound In:  HDA Intel (hw:Intel,0) Sound Out:  Pulse Ringing:  Pulse

I then ran gnome-volume-control and set it like this

screenshot-volume-control-hda-intel-alsa-mixer screenshot-volume-control-hda-intel-alsa-mixer-1 screenshot-volume-control-hda-intel-alsa-mixer-2 One thing I did notice was the input source dropdown list acted a bit odd as it would say “Mic” but that setting might not have registered properly so changing it to something else then changing it back to “Mic” again seemed to make it register.

Also the settings don’t seem to “stick” so that when I reboot I have to reselect “Mic” again!

H264 codec for web video

I have been trying to find out what is the best way to get a video clip onto the web and I have looked at the H264 codec. This seems to give much better video quality for a given bit rate compared with the older Sorenson codec I had tried.

I have used DVGrab to get the video from my camcorder to my pc and I have used DV Type 2 format as this will used with Avidemux to convert to H264 video format:

sudo dvgrab -format dv2 outputfilename

I will then open the dv2 file with Avidemux and select x264 video codec and AAC audio codec. AAC seems to be commonly used with H264 although I assume that MP3 could still be used, but AAC is I think more “advanced” as audio codecs go.

The “format” will be MP4 as this will make it compatible with the latest version of flash.

To actually embed the video in a page I have used Flowplayer which is an open source flash player and seems to work well. I have talked about Flowplayer in my previous blog post a few days ago.

One “glitch” I discovered with H264 in MP4 was that the video would not “stream” which means that the whole video had to download before it would start playing!

Luckily I discovered that there was a program called MP4Box which would tweak the file so that it would start playing while the file was downloading.  What this does is to move the “moov atom” (or “moov box”) from the end of the file to the start of the file.  I’m not sure if there is a way to get Avidemux to do this but MP4Box seems to do the trick!

The command I used to install MP4Box was:

sudo apt-get install gpac

and then the command to run MP4Box was:

MP4Box -add ‘filename.mp4′ ‘newfilename.mp4′

I think you need to add the file path unless you have the file in the current directory. I had my mp4 file in my home directory so I did not need to add a path. Remember that the MP4Box command is case sensitive so “mp4box” will not work as I discovered!

screenshot-7

Test Video done with X264 Codec

Click this link to view the test video done in X264 codec.

H264 playback is quite processor demanding so anyone with a very old PC might not get decent playback, but this seems to work fine with my laptop which I purchased over 3 years ago and uses about 70% CPU with no other tasks running. Also H264 only works with recent versions of flash, so if you are running an old version of flash it might be worth updating it.

Getting DV video from Camcorder to the Web

screenshot-4

This shows the files that need to be uploaded to your webspace in order to make the embedded video work

I have acquired a “legacy” camcorder (a 5 year old Panasonic NV-DS65B) which shoots basic standard definition video (720×576) so it seemed like a good idea to figure out how to get “embedded” in a website.

I have used Youtube and Vimeo, but getting material online this way has its drawbacks.

One very annoying thing is that they insist on re-processing files once they have been uploaded and I’m not convinced this is always a good thing as each time a file is re processed there is bound to be an extra level of deterioration in quality. The quality from a basic consumer camcorder will never be particularly good but I’d rather not make it any worse than it need be!

Another drawback is that Vimeo will shrink my video down to 512×416 which is presumably so that it will fit conveniently in their player. They give the option to download the original 720×576 file I uploaded but this is extra hassle.

screenshot-5

This shows the HTML code needed to make the flowplayer files work

Youtube is even worse in respect of shrinking my video as they reduce it to a tiny 450×360! It gets worse…..If I select “normal quality” in Youtube the file is reduced to a postage stamp sized 300×240.

An alternative to using a video hosting site is to use a free embedded player such as Flowplayer and to use the free webspace that often comes with a broadband package.  Flowplayer is open source rather than freeware which which to me at least is an added bonus.

Originally I thought that you could “embed” a video file in a webpage simply by linking to it, but I then realised that the player needs to be embedded in the page in order to play the video in the page “youtube style”.

When you download flowplayer it will give you an example HTML page which you can then edit as you wish.
I have a added a screenshot of my html file. Please note that I have had to change the bit of HTLM which defines the size of the embedded player so that it displays at the correct size:

style=”display:block;width:720px;height:600px”

My camcorder file is 720×576 but I have had to allow an extra 24 pixels to allow for the Flowplayer control bar. Originally I used 576px in the HTML code but this had the effect of squashing my video by 24 pixels.

I was initially worried that I would need to install something on my ISP’s webserver, but luckily this is not required and you can just upload the flowplayer files to a folder and they will work fine.

What I have not yet figured out is how to embed the file in wordpress so here is a screenshot that links to the webpage:

screenshot-6

Example embedded video - click to go to web page

The only bit that I have not yet described is converting the DV file from the camcorder to a format that will play on flowplayer. Flash video seems to be the “standard” for embedded video and a good program that will convert DV to FLV (flash video) is Avidemux. Please note that I used Kino to capture the DV file from my camcorder and I am running Ubuntu Intrepid.

One thing to note when using Kino is that it will need to be run as root to capture as normal users will not have access to the firewire port so hit Alt F2 and run gksudo kino. Also note that Kino will try and save the capture file in root’s home folder so choose a save location to somewhere else otherwise you will not be able to find the file as a normal user once you run avidemux!

Avidemux does not like “raw dv” or “type 1 dv” so choose “type 2″ dv in the capture settings. Once you have opened the captured AVI file in Avidemux you can save it using the AUTO > FLV settings, but it is well worth adding a deinterlace filter to remove those nasty horizontal lines that can spoil the look of the finished file. The “yadif” filter seems to work well.

Xubuntu session problem

Just had a blank screen after starting an xfce session which is a bit annoying. Luckily I could still Alt-F2 to start firefox from terminal.

This handy hint by xerodeth seemed to solve it:

” Re: Xfce Session won’t start
so not sure if anyone still needs help with this… but this is what works for me. in your home dir there should be a folder called .cache, go into that folder and delete the sessions folder and the xfce4. i removed both these folders and the desktop came back as well as wallpaper.”

Xubuntu

screenshot-1
I have been trying out the xubuntu-desktop package today, and I’m actually pretty impressed with it.

To install it in Ubuntu Intrepid the command is:
sudo apt-get install xubuntu-desktop

As I have got quite an old laptop I thought I’d give Xubuntu a go as it’s supposedly a good choice for running on “legacy” hardware such as my Sony Vaio FS-215Z laptop.

Yesterday I was looking at some HD videos on Vimeo http://vimeo.com/hd and while 1280×720 resolution is very impressive for video it takes its toll on system resources and would often max out my processor under Gnome. A normal DVD movie seems to be only 1024×576 in comparison.

Xubuntu uses xfce rather than gnome as it desktop manager and it’s a much “leaner” system as a result.
Sites like vimeo and youtube use flash video (flv) files and these get cached in the /tmp directory, and once the file has downloaded it can then be copied from /tmp to avoid being deleted and placed elsewhere.

My favourite player at the moment seems to be mplayer and it will now play these HD flash video files with cpu at only about 60% rather than 80-100% and the result is that there are much fewer dropped frames!

The only “annoyance” I have encountered so far has been that “tapping” on my touchpad cannot easily be disabled which was very frustrating! A temp workaround seems to be to set a startup command of gnome-mouse-properties which loads the gnome mouse manager which has the ability to disable tapping.

Ladder

ladder

Jacobs Ladder at Sidmouth

It was windy and bitterly cold at Sidmouth Beach today.   Jacobs ladder leads down to the beach from the Gardens at the top – the actual wooden ladder is quite impressive being at a guess a good 60 foot, perhaps even more.

The beach is about 1km and the cliffs look like they are made of mud rather than rock.  At the far end there looks like there has been a collapse of the cliff and there is a possible risk of being cut off by the tide.   It’s mainly rock pools at the far end rather than beach.

I’m starting to get the hang of using the Samsung G600 camera – it seems to work better when using the shutter button on the side of the phone rather than the round shutter button the keypad, but it’s quite fiddly to use.

Photo taken with Samsung G600 mobile phone.   Edited using GThumb editor (lossless rotate then risize only) under Ubuntu Intrepid.

Self Portrait

self-portrait

Self portrait at the Bristol Planetarium

This is a bit of a cliche’d shot and it’s been done by so many people, but it’s hard to resist!

Shot with a Holga Medium Format Camera.   Scanned from a 5×5 inch print on a Canon Lide60 scanner using GIMP and Xsane under Ubuntu Intrepid.

Mind’s Eye

minds-eye1

Mind's Eye at Cardiff University

This is quite an interesting bit of art on the wall of one of the buildings at Cardiff University.   The spots were a sort of terracotta, but all slightly different shades, so perhaps I should have shot this with colour film.

(Shot with a Holga medium format camera and scanned from a 5×5 inch print with the Canon Lide60 scanner using the Xsane plugin for Gimp)

Playing DVD movies with Ubuntu Intrepid

Intrepid comes with Totem as the default player but so far I have not had much luck getting it working (playing DVD movies) on Intrepid, but I think it worked on Hardy.   Totem comes with gstreamer by default and works with xine as well, but neither seemed to play the main movie, just the copyright bit at the start!

I seem to have had better luck with VLC and MPlayer.   I installed these using the add/remove menu.

This guide seems to have a solution that got both VLC and MPlayer working with DVD movies:

https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs

Commands used were as follows:

sudo apt-get install libdvdread3

then…

sudo /usr/share/doc/libdvdread3/install-css.sh

one thing that seemed to get things running ok after running these commands was to reboot the system before trying to play a DVD