Sepero
11-25-2004, 04:12 PM
Converting your wma files to ogg format is the preferred way because ogg is an open format and you will never have to worry about patents. Although mp3 is not an open format, at the time of this writting, it is still very popular, so I have included instructions on converting to mp3 format as well.
The programs you must have installed are:
Bash
MPlayer and Microsoft codecs
oggenc ( for creating ogg's )
lame ( for creating mp3's )
1. Download the script wma2mp3_or_ogg.sh
2. Copy or Move the file(s) you want to convert to WRITABLE folders. If the files you want to convert are on a Microsoft NTFS drive, read the instructions at the bottom of this page. The script will convert wma files in the directory that they are at, AND will save the new ogg or mp3 file in the same place.
3. Notice: The script will convert wma files Recursively. That means it will convert wma files in the directory specified, and Every continuing directory.
4. Change the permissions on the script so that you may execute it.
$ chmod 744 wma2mp3_or_ogg.sh
5. To run the script, put the conversion after it, then your music directory. Example:
$ ./wma2mp3_or_ogg.sh -ogg /home/freddy/music_folder/
OR
$ ./wma2mp3_or_ogg.sh -mp3 /home/freddy/music_folder/
Dealing with an NTFS drive:
You will need to copy the files to a writable drive. You can copy them to your Linux drive or to a FAT32 drive. If you copy them to a Linux drive, you will want to make sure the permissions are set correctly after being copied. Example:
# copy the directory from ntfs drive to linux drive
cp /mnt/ntfs_drive/my_music/* /home/freddy/music_folder/
# change to the copied directory and set the permissions
cd /home/freddy/music_folder/
chmod 644 *
The programs you must have installed are:
Bash
MPlayer and Microsoft codecs
oggenc ( for creating ogg's )
lame ( for creating mp3's )
1. Download the script wma2mp3_or_ogg.sh
2. Copy or Move the file(s) you want to convert to WRITABLE folders. If the files you want to convert are on a Microsoft NTFS drive, read the instructions at the bottom of this page. The script will convert wma files in the directory that they are at, AND will save the new ogg or mp3 file in the same place.
3. Notice: The script will convert wma files Recursively. That means it will convert wma files in the directory specified, and Every continuing directory.
4. Change the permissions on the script so that you may execute it.
$ chmod 744 wma2mp3_or_ogg.sh
5. To run the script, put the conversion after it, then your music directory. Example:
$ ./wma2mp3_or_ogg.sh -ogg /home/freddy/music_folder/
OR
$ ./wma2mp3_or_ogg.sh -mp3 /home/freddy/music_folder/
Dealing with an NTFS drive:
You will need to copy the files to a writable drive. You can copy them to your Linux drive or to a FAT32 drive. If you copy them to a Linux drive, you will want to make sure the permissions are set correctly after being copied. Example:
# copy the directory from ntfs drive to linux drive
cp /mnt/ntfs_drive/my_music/* /home/freddy/music_folder/
# change to the copied directory and set the permissions
cd /home/freddy/music_folder/
chmod 644 *