Friday, May 28, 2010

Beagle Board with Ubuntu 10.04 Lucid

My aim is to experimenting with  Localization, Flash and support for Video hosting services on Beagle Board.

After basic setup with help of prebuilt image and steps mention at http://amitkarpe.com/prebuild-lucid-image-for-ubuntu-netbook
I had tested ( install ) following packages.
# Localization
sudo apt-get install language-pack-gnome-hi language-support-hi language-support-input-hi

Need to get 4,521kB of archives. After this operation, 15.4MB of additional disk space will be used.            
To enable support Hindi Localization.
Main Menu --> Preference --> Language Support
Install/ Remove language --> Select appropriate language ( In my case Hindi )
Select all components:
1. Translation: Translation for your desktop ( menu, messages )
2. Input Method: User can select input method to type in your language
3. Extra fonts: Additional fonts for various general interest

After "Applying Changes" search for "Hindi" and set it in first row. Then click on "Apply System wide", which will set all changes as System wide. ( Required root password.) This settings only affect the language your desktop & application displayed in. To changes/set ( language ) system environment like currency or date format settings,  we have to change "Text" tab settings. Select you language and "Apply System-Wide".
This changes locale setting file --> /etc/default/locale
From:
LANG=en_US.UTF-8
Into:
LANG=en_US.UTF-8                                                               
LANGUAGE="hi_IN:en_US:en"                                                      
{ After change "Text" tab changes will be }
LANG="hi_IN.utf8"                                                              
LANGUAGE="hi_IN:en_US:en"                                     

You have to logout and login to see the settings get affects system wide.

After Localization enabled. LXDE & Firefox in Hindi.

 

Now lets try for Flash on ARM :)
After lots searching here & there, now I am trying to demonstrate basic flash on ARM ( Beagle Board ). [ This Flash Demo can play only flash player 6 compatible files ]
# Flash and Video hosting service Player
sudo apt-get install  mozilla-plugin-gnash gstreamer0.10-ffmpeg gstreamer0.10-fluendo-mp3 gstreamer0.10-plugins-ugly abby

Need to get 9,029kB of archives.                                               
After this operation, 27.2MB of additional disk space will be used.  
I will recommend to install following package to support maximum number of codecs. ( 40 - 50 MB disk space)
gstreamer0.10-plugins-bad
gstreamer0.10-plugins-bad-multiverse
gstreamer0.10-plugins-base
gstreamer0.10-plugins-good
gstreamer0.10-plugins-ugly-multiverse

I had experience few error when there was big flash file running continuously:
[ 1234.220245] Out of memory: kill process 1234 (run-mozilld
[ 1234.228393] Killed process 1238 (firefox-bin)

Find below images to see flash content running with firefox plugin as well as gnash player. [ This have tracking control as well as sound plays very well. ]
Just to give idea I am putting file format details.

ubuntu@beagleboard:~/flash$ file *
ch11slide-1Flash6.swf:     Macromedia Flash data, version 6
Std9_Sci1_Ch1_player6.swf: Macromedia Flash data, version 6

I had tried flash 7 file which wont play as expected.
ubuntu@beagleboard:~/flash$ file Flash\ player\ 7.swf
Flash player 7.swf: Macromedia Flash data (compressed), version 7

So I can confidently say that gnah & mozilla-plugin-gnash 0.8.7 can play Flash Player 6 compatible files.

Now I want to try to play YouTube's flash video on my beagle board. I have 2 options
1. I can set YouTube to use only html5 videos --> http://www.youtube.com/html5
But as Firefox is not able to support current video formats. It will show error message. (Firefox 3.6 is not able recognize video format.)
Please check Firefox http://www.youtube.com/html5 (WebM enabled version coming soon)

Supported Browsers

We support browsers that support both the video tag in HTML5 and either the h.264 video codec or the WebM format (with VP8 codec). These include:

  • Firefox (WebM enabled version coming soon)
  • Google Chrome (h.264 supported now, WebM enabled version coming soon)

2. You can download those videos with "abby" or "clive" or "cclive" and then play with mplayer or any other player.
I had run abby and just added following url in it http://www.youtube.com/watch?v=HDsYuRjlM1I
Clive: video extraction utility for YouTube, Google Video and others. clive is a command line utility for extracting videos from Youtube and other  video sharing Web sites.
Cclive: is a lightweight command line video extraction tool for Youtube and other similar video websites. It is a rewrite of the clive software in C++ with lower system footprint and fewer dependencies.
Abby: is a front-end for cclive and clive used to download  videos from Youtube and other similar video hosts. Abby is written in C++ and depends on the Qt framework.

Posted via email from Amit Karpe

No comments: