Monday, November 9, 2009

Installing Xine Player in fedora 11

 Xine is an Open source supporting multimedia player.Its really an excellent and efficient player.Xine has broad range of exciting new features while Windows based players dont have.Its quality of picture and sound is really impressive. It plays back CDs, DVDs, and VCDs. It also decodes multimedia files like AVI, MOV, WMV, and MP3 from local disk drives, and displays multimedia streamed over the Internet. It interprets many of the most common multimedia formats available - and some of the most uncommon formats, too.U would be surprized seeing the number of media types it plays back smoothly.

For many days i have been trying how to install it very easily.But it appears not to be so easy coz, while i download its rpms and try to install from the rpms it simply makes me bored.Those rpms demand installing dependencies etc . etc. etc.......... that was so much disgusting.Sometimes it also happens in installing from tarball package.Recently i configured xine in my fedora 11 very easily.So , i want to share it with others ,so that people just dont get into troubles.

First install the xine-lib-1.1.3.tar.bz2.u can get it by googling.After u have had it on ur directory extract it , open a Konsole and go to the uncompressed folder.Now be the Super user and type the following


[root@localhost firaz]#./configure
-------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------
[root@localhost firaz]#make
[root@localhost firaz]#make install



It will install the Xine library i,e, its engine .But if u have to use Xine fully we have to install Xine-gui (user interface).Download xine-ui-0.99.4.tar.gz and then install it in the above procedure.

If everything goes well u should now be able to use Xine.But if it shows the messege something like this"xine engine error ......... xine has no demuxer to handle this media" , then we have to do some additional jobs.

Open a Konsole and type :

[root@localhost firaz]# gedit /etc/yum.repos.d/livna.repo

 It will open the Livna.repository configuration window.it looks like :





Do modifiy and make the highlighted lines as exactly shown in the picture.
Now save and exit.

Now type the following :

[root@localhost firaz]# rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY

error: http://rpm.livna.org/RPM-LIVNA-GPG-KEY: import failed.

[root@localhost firaz]# yum install k3b-mp3 xine-skins mplayer
Loaded plugins: protectbase, refresh-packagekit
livna-stable                           |              951B                                  00:00
livna-stable/primary             |              84 kB                                00:11
livna-stable 215/215
0 packages excluded due to repository protections
Setting up Install Process
Package xine-skins is obsoleted by xine-ui-skins, trying to install xine-ui-skins-0.99.5-16.fc11.noarch instead
Package mplayer-1.0-0.110.20090329svn.fc11.i586 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package k3b-extras-freeworld.i586 0:1.0.5-6.fc11 set to be updated
--> Processing Dependency: libavformat.so.52 for package: k3b-extras-freeworld
--> Processing Dependency: libavcodec.so.52 for package: k3b-extras-freeworld
--> Processing Dependency: libmad.so.0 for package: k3b-extras-freeworld
---> Package xine-ui-skins.noarch 0:0.99.5-16.fc11 set to be updated
--> Running transaction check
---> Package ffmpeg-libs.i586 0:0.5-3.fc11 set to be updated
--> Processing Dependency: libopenjpeg.so.2 for package: ffmpeg-libs
--> Processing Dependency: libdc1394.so.22 for package: ffmpeg-libs
--> Processing Dependency: libschroedinger-1.0.so.0 for package: ffmpeg-libs
--> Processing Dependency: libdirac_encoder.so.0 for package: ffmpeg-libs
--> Processing Dependency: libImlib2.so.1 for package: ffmpeg-libs
---> Package libmad.i586 0:0.15.1b-13.fc11 set to be updated
--> Running transaction check
---> Package dirac-libs.i586 0:1.0.2-2.fc11 set to be updated
---> Package imlib2.i586 0:1.4.2-4.fc11 set to be updated
---> Package libdc1394.i586 0:2.1.2-1.fc11 set to be updated
---> Package openjpeg-libs.i586 0:1.3-5.fc11 set to be updated
---> Package schroedinger.i586 0:1.0.7-1.fc11 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package                       Arch            Version            Repository                   Size
================================================================================
Installing:
k3b-extras-freeworld i586         1.0.5-6.fc11             rpmfusion-free           64 k
xine-ui-skins noarch                   0.99.5-16.fc11           updates                   4.9 M
Installing for dependencies:
dirac-libs                    i586         1.0.2-2.fc11                fedora                    407 k
ffmpeg-libs                 i586        0.5-3.fc11        rpmfusion-free-updates   4.8 M
imlib2                          i586       1.4.2-4.fc11                 fedora                     219 k
libdc1394                    i586      2.1.2-1.fc11                  updates                  129 k
libmad                         i586    0.15.1b-13.fc11     rpmfusion-free-updates   84 k
openjpeg-libs             i586        1.3-5.fc11                    updates                    63 k
schroedinger              i586     1.0.7-1.fc11                    updates                  225 k

Transaction Summary
================================================================================
Install 9 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total size: 11 M
Total download size: 64 k
Is this ok [y/N]: y
Downloading Packages:
k3b-extras-freeworld-1.0.5-6.fc11.i586.rpm |          64 kB              00:09
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xine-ui-skins                     1/9
Installing : dirac-libs                          2/9
Installing : imlib2                                3/9
Installing : libmad                               4/9
Installing : schroedinger                     5/9
Installing : libdc1394                          6/9
Installing : openjpeg-libs                    7/9
Installing : ffmpeg-libs                        8/9
Installing : k3b-extras-freeworld       9/9

Installed:
k3b-extras-freeworld.i586 0:1.0.5-6.fc11
xine-ui-skins.noarch 0:0.99.5-16.fc11

Dependency Installed:
dirac-libs.i586 0:1.0.2-2.fc11 ffmpeg-libs.i586 0:0.5-3.fc11
imlib2.i586 0:1.4.2-4.fc11 libdc1394.i586 0:2.1.2-1.fc11
libmad.i586 0:0.15.1b-13.fc11 openjpeg-libs.i586 0:1.3-5.fc11
schroedinger.i586 0:1.0.7-1.fc11

Complete!
[root@localhost firaz]# xine
This is xine (X11 gui) - a free video player v0.99.5.
(c) 2000-2007 The xine Team.

Wednesday, September 30, 2009

Using Facebook chat client in Pidgin

If you are a hardcore IM user, now you are able to chat with Facebook user directly from Pidgin! In addition to all of the IM emoticons, you can also “send & receive messages, add or remove friends, receive notifications, search for Facebook friends and set your Facebook status"

Just do this :

[firaz@localhost ~]$ su
Password:
[root@localhost firaz]#yum install purple-facebookchat

Using wvdial in fedora

Using Internet through modem in earlier versions of Fedora[core 11 automatically detects modem] was very painful.The pre-installed softwares KPPP dont detect your Mobile phone modems most of the times.So I 'Google'd and here's a simple solution I found for using modem manually.

First become super user.

[firaz@localhost ~]$ su
Password:

Then edit the wvdial.conf using the command:

[root@localhost firaz]# gedit wvdial.conf


now replace the existing all texts with the following lines :

[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"ip","gpinternet"
ISDN = 0
Modem Type = Analog Modem
Phone = *99***1#
Username = ABC
Password = XYZ
Stupid Mode = 1


After editing save the modified text and now get exited using this command:
[root@localhost firaz]#Ctrl+C

Now simply dial :
[root@localhost firaz]#wvdial


It should work.

Note that : APN is "gpinternet" for Bangladeh.Change it as per your service provider.Other parameters remain the same.Another notable things that Nokia, Samsung & Motorolla dont cause problems to be detected as modems when dialled.But Chinese modems [for example MobiData & Vodafone V715 made by Huwei] aren't dectected any responsed while dialled.

fedora 11 multimedia codec installation

It may be very painful when you start to use Fedora and you find that there is no pre-installed multimedia codecs.Many times you try to play a multimedia files and it show you a damn messege 'xyz.dat uses an unsupporte codec' or like 'There is no demuxer plugin available to handle xyz.mp3 .Usually this means that the file format was not recognized'.This type of messeges many times may got your brains in fire.

So, after many 'Googling' i found a simple way to solve all this rubbish messeges.Just follow the following steps.I hope it'd help most of u :


There is gnome-mplayer in the rpmfusion repos. It is a nice gtk2 interface for mplayer.

First, install RPM Fusion's free and nonfree YUM repositories. For detailed information about installing RPM Fusion, see: http://rpmfusion.org/Configuration

[firaz@localhost ~]$ su
Password:
[root@localhost firaz]# su -c "rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm"

[root@localhost firaz]# su -c "rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm"

Next, install MPlayer from RPMFusion.org.

[root@localhost firaz]# su -c "yum install mplayer gnome-mplayer gnome-mplayer-common mencoder"

Now, visit the MPlayer Codecs Directory and download the latest 'All' tarball.

[root@localhost firaz]# wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2

Next, prepare the codecs folder. MPlayer from RPMFusion.org will use /usr/lib/codecs.

[root@localhost firaz]# su -c "mkdir -p /usr/lib/codecs"

Other media players like Xine and avifile might use /usr/lib/win32, so create a symlink.

[root@localhost firaz]# su -c "ln -s /usr/lib/codecs /usr/lib/win32"
[root@localhost firaz]# ls -l /usr/lib/win32
lrwxrwxrwx 1 root root 15 2008-05-24 08:02 /usr/lib/win32 -> /usr/lib/codecs

Finally, extract the contents of the tarball and copy all files to /usr/lib/codecs.

[root@localhost firaz]# tar -xjvf all-20071007.tar.bz2
[root@localhost firaz]# su -c "cp -a all-20071007/* /usr/lib/codecs/"

See the MPlayer(1) man page for /usr/bin/mplayer usage.

[root@localhost firaz]# man 1 mplayer


Now Njoy GNOME player.It works like a charm :D