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!

Saturday, May 1, 2010

How to insert Single Landscape Sheets in OpenOffice.org

Although you can this info all around, I thought of blogging this Since I was doing my project report and thought it might help our VTU Studs or someone who needs it....
So here it is:

OpenOffice.org uses page styles to specify the orientation of the pages in a document. For example, to change the page orientation of one or more pages in a document from portrait to landscape in a document, you need to create a page style that uses the landscape orientation, and then apply the page style to the pages.
To Change the Page Orientation of a single sheet to Landscape or Portrait

1.Choose Format - Styles and Formatting.
2.Click the Page Styles icon.
3.Right-click, and choose New.
4.On the Organizer tab page, type a name for the page style in the Name box.
5.In the Next Style box, select the page style that you want to apply to the next page.
To only apply the new page style to a single page, select "Default".
To apply the new page style to all subsequent pages, select the name of the new page style.
6.Click the Page tab.
7.Under Paper format, select Portrait or Landscape.
8.Click OK.

To Use Landscape and Portrait Page Orientation in the Same Document
Before you begin, ensure that you have created a page style that uses landscape page orientation. See To Change the Page Orientation to Landscape or Portrait for details.
1.Click in front of the first character of the paragraph where you want to change the page orientation.
2.Choose Insert - Manual Break.
3.Select Page break.
4.In the Style box, select a page style that uses the landscape or portrait page orientation.



P.S: I found this help here , thanks a lot OO.o!