Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: WMA and XMMS, WMA codecs needed for DSL< Next Oldest | Next Newest >
reid_geo Offline





Group: Members
Posts: 20
Joined: Sep. 2004
Posted: Aug. 25 2006,03:54 QUOTE

Is anyone aware of a package that will add WMA playback capability to XMMS running under DSL 3.0.1?

I've fumbled through this with earlier versions of DSL, but am looking for a simple Synaptic or dpkg install.

As an aside, why does Linux in general shun WMA support?  I believe WMA is superior to MP3 in audio fidelity (although of course not as good as Ogg..)  Maybe its a licensing thing, but I wonder if it isn't just misplaced anti-Micro$oft sentiment.  That's kind of a cut-off-nose-to-spite-face thing, and it certainly alienates potential Linux/DSL users.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 25 2006,04:13 QUOTE

I think it's mostly because the continued support of proprietary closed file formats is counterproductive in an increasingly open source world.

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
reid_geo Offline





Group: Members
Posts: 20
Joined: Sep. 2004
Posted: Aug. 31 2006,05:18 QUOTE

Here is a way to remaster DSL 3.0.1 to include WMA support for XMMS.  I did this largely for my own edification.  Yes, I know there are other more elegant ways to accomplish this, (even though it is not politically correct in the linux community.)  No, I do not wish to convert thousands of wma files to ogg vorbis etc.

Thanks to all those who posted remastering HOWTOs on these forums and elsewhere.

Remastering Damn Small Linux 3.0.1 with XMMS Support for WMA
Using a Bootable CD and USB Drive

This is adapted from Phil Greenwood's great work here: http://www.pcc.com/staff/phil/remasterdsl.txt as well as a few other places including the DSL forums.  Here is a quote from Phil Greenwood's instructions: "Give credit where credit is due (Meo in the DSL forum and John Andrews and Robert Shingledecker at the DSL Organization)!"

Why a method that uses a bootable CD and USB key?  Because you can do this on a Windows PC.  All you need is to borrow a little HD space for a minute.

Be sure you have backed up any and all data you care about on both the computer and USB drive used in these instructions.

You will want to download an xmms-wma rpm before you start.  I put the RPM in C:\temp.  What worked for me was xmms-wma-1.0.5-1.1.fc3.rf.i386.rpm .

Requirements:
- bootable CD copy of DSL 3.0.1 (probably works with other versions)
- 512 MB of RAM.
- a USB drive with 256MB of available storage.  These instructions assume you have one and only one USB drive installed.
- a CD-RW (if you want to create a bootable CD)

Lines starting with the prompts “%” and “#” are commands you type in the terminal window, (but don't type the comments in parenthesis)

Start:
Insert the USB drive in a port.
Boot DSL from the CD, using the “dsl toram” option at the “boot:” prompt.
Open an ATerminal window, and become root:
%sudo  su

Create and mount an ext2 file system on the USB drive (wipes out all data):
#mkfs.ext2  /dev/sda1
#mount -rw  /dev/sda1  /mnt/sda1

Mount the CDROM:
- use the Desktop tool, or
#mount /dev/cdrom  /mnt/cdrom     (your device may vary, can't go into that here.  Use the Desktop tool if you can.)

Change directories to the USB file system:
# cd  /mnt/sda1

Make the directories needed:

#mkdir  source
#mkdir  newcd
#mkdir  newcd/KNOPPIX

Copy necessary files to directory /newcd:

#cp  -Rp  /mnt/cdrom/boot  newcd
#cp  -Rp  /mnt/cdrom/lost+found  newcd
#cp  -Rp  /mnt/cdrom/index.html  newcd

Copy the sources to the right directory (don't second-guess here, these paths are correct):

#cp  -Rp  /KNOPPIX/*  source
#cp  -Rp  /KNOPPIX/.bash_profile  source       (note period before “bash..”)

Add the xmms-wma library to the source directory on the USB drive.  (You did download the RPM onto the HD before you started didn't you?):

Mount the HD:
Use the Desktop tool, or
#mount  /dev/hda1  /mnt/hda1    (your device may vary, can't go into that here.  Use the Desktop tool if you can.)

Copy the RPM to the USB drive:
#cd  /mnt/sda1
#cp  /mnt/hda1/temp/xmms-wma-1.0.5-1.1.fc3.rf.i386.rpm .    (type this exactly, including the space and period at the end)
#rpm2cpio xmms* | cpio -i -d
This should extract libwma.so to usr/lib/xmms/Input on the USB drive.

Unmount the HD:
Use the Desktop tool or,
#umount /mnt/hda1

Copy the file to the source folder on the USB drive:
#cd source/usr/lib/xmms/Input
#cp /mnt/sda1/usr/lib/xmms/Input/libwma.so .  (type this exactly, including the space and period at the end)

Now you are ready to build your custom compressed image file:

From /mnt/sda1 type this (as one line of text):
#mkisofs -R source | create_compressed_fs - 65536 > newcd/KNOPPIX/KNOPPIX

Then change directories:
#cd /mnt/sda1/newcd

Create the iso you're going to burn to CD as follows. (the command is one long command line):

#mkisofs  -no-pad  -l  -r  -J  -no-emul-boot  -boot-load-size  4  -boot-info-table  -b boot/isolinux/isolinux.bin  -c boot/isolinux/boot.cat  -hide-rr-moved  -o mydsl.iso ../newcd          

If necessary copy the iso-file to somewhere so you can burn the newly built iso.
I just burned it directly from where I built it (/mnt/sda1/newcd).  Assuming your CD-RW is the same CD you booted DSL from, you will need to unmount the CDROM and remove it, and insert a blank CDR.

Use Desktop tool to unmount cdrom, or
#umount  /mnt/cdrom                  (again your device may vary)

#cd /mnt/sda1/newcd
#cdrecord -v -dummy -pad speed=8 dev=0,0,0 blank=fast  (this line might be optional)
#cdrecord -v speed=8 dev=0,0,0 mydsl.iso

The resulting bootable CD should be DSL 3.01, with WMA playing capability in xmms.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Aug. 31 2006,14:11 QUOTE

Quote
This is adapted from Phil Greenwood's great work here
I think you mean Meo's great work =o)


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
reid_geo Offline





Group: Members
Posts: 20
Joined: Sep. 2004
Posted: Sep. 01 2006,02:50 QUOTE

Quite right.  Here is a quote from Phil Greenwood's instructions, which I borrowed heavily from:  "Give credit where credit is due (Meo in the DSL forum and John Andrews and Robert Shingledecker at the DSL Organization)!"
Back to top
Profile PM 
7 replies since Aug. 25 2006,03:54 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: WMA and XMMS

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code