Showing posts with label FOSS. Show all posts
Showing posts with label FOSS. Show all posts

Monday, October 18, 2010

How to convert *.rm to mp3 on Ubuntu

This is yet another HOW to on converting Real Media files in *.rm format to mp3 format.

Step 1: copy and paste this text in a file and save it as 'rm2mp3' w/o the quotes 
---------------------
#!/bin/sh
inputfile=$1
inputfilename=`basename $1 rm`
ext='mp3'
outputfilename=$inputfilename$ext

echo 'CONVERTING TO WAV FORMAT'
mplayer $inputfile -ao pcm

echo 'CONVERTING WAV FORMAT TO MP3'
lame -h -b 256 audiodump.wav $outputfilename

rm -f audiodump.wav

echo 'DONE...!'
----------------------------------------------

Step 2: Change permissions to execute the file. Do the command :
$chmod 777 rm2mp3

Step 3: Then execute the script with the command:
$./rm2mp3 filename.rm

Where filename.rm is the input file.

Step 4: The folder that had the *.rm file has the converted mp3 file.
Step 5: Enjoy listening!

Happy Hacking!

PS: This Tutorial was found here. Thanks a lot! That helped me a lot!

Tuesday, September 7, 2010

How to convert wma files to mp3 on Ubuntu

Do you sync your iPod/iPhone with Rhythmbox/Amarok on Ubuntu and grouse about the lack of auto conversion capability of Windows media audio(*.wma) files to mp3 in Rhythmbox?
Then here is a simple hack, but not completely automatic like in iTunes.

Step 1: Install LAME {Lame is ain't a mp3 encoder}
from the Synaptic package manager by doing so:

System->Administration->Synaptic Package manager

Type lame in the search box. Then install the package(Fig 1).


Fig 1: Install LAME

Step 2: Install Nautilus Audio converter script
After installing LAME, install 'nautilus audio converter script'.

Type 'nautilus audio' in the search box. Then install the package(Fig 2)

Fig 2: Install 'nautilus audio converter script'


Step 3: Choose file to convert to mp3
After you're done with the installing, choose the file you wish to convert, by right clicking on the desired file. Then hoover over 'scripts' which has the audio converter script installed. Choose 'Audio files converter'(Fig 3).


Fig 3: Choose files to convert

Step 4: Choose extension
As in this case its mp3(Fig 4)


Fig 4: Choose Extension

Step 5: Select quality
By Default it would be 'extreme' and its recommended.

Fig 5: Choose quality

Step 6: Enter meta-tags
If you wish to do so, work around with this, else just click OK.

Fig 6: Enter meta-tags

Step 7: Voila! your files are converted!
Make sure you have the files in /home/XXX/music folder, so that Rhythmbox populates your play-list automatically.

Hope this worked for you, leave a comment any ways!

Happy Hacking!

Thursday, November 12, 2009

Grub error 15 on a 2 HDD box[solved]

Do you get Error 15(file not found) while loading Grub on your 2 HDD box?
Then here is the solution.

Grub Error 15 is commonly found when Grub is unable to find vmlinuz(the kernel image). In such a case just boot from a live cd and do the following

$sudo grub

this command enters grub,once that is done,enter

find /boot/grub/stage1

This will return the location of the root ex: (hd0,4)

Now you need to edit the Grub's menu.lst
if running through a Ubuntu Live cd then the command:

$sudo gedit /media/disk/boot/grub/menu.lst

menu.lst may look like this:

title Ubuntu 9.04, kernel 2.6.28-11-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.28-11-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic


if this is the case then ,just replace the (hdx,y) with device UUID.

to get the UUID:

$blkid

will give you the uuid of all the partitions on the disk.

search for the partition with ext3/4 and copy it(in my case (hd0,4) /dev/sda5 uuid=.....)

now replace the line in menu.lst where (hdx,y) appears

ex: root (hd0,4)

the entry in menu.lst should look like this after the edit

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid ee9fd0b7-29c5-42a4-a606-9342fae9523a
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=ee9fd0b7-29c5-42a4-a606-9342fae9523a ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic


observe that even the line with 'kernel' has been replaced with the respective uuid.

now save it and reboot.

and voila! tell me what happens!