LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-29-2004, 07:48 PM   #1
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Rep: Reputation: 31
Can't play wave files (XMMS, Kaffeine, etc.)


I have a device that records .wav files at 8000 Hz with a sample size of 4 bits (I believe mono). Is there any plugin for xmms or any other piece of software I can use to playback these files?
 
Old 12-30-2004, 12:29 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
xmms should be able to play them. check your audio i/o plugins to see if you have libwav.so

what version of xmms are you running? all i know is that for my version, wave player (libwav.so) is provided by installing xmms.
 
Old 12-30-2004, 12:39 AM   #3
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Original Poster
Rep: Reputation: 31
Standard wave files play on xmms. I'm playing a wave file from one of Windows sound themes (chimes.wav) which is PCM, 22050 Hz, 16 bits, stereo.

I know there's a lot of different .wav files, aside from the sampling rate and size. Apparently, this thing I'm playing isn't compatible.
 
Old 12-30-2004, 12:43 AM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
okay. i understand. there are some of them windows wav files that i had to convert to mp3's and convert back to wav files because they just won't play.

you'll probably have to do the same thing. use lame if you have it installed.

lame -q 0 -b 128 some_win_file.wav some_win_file.mp3

lame --decode some_win_file.mp3 some_win_file1.wav

you should be able to play some_win_file1.wav now.
 
Old 12-30-2004, 01:06 AM   #5
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by megaspaz
okay. i understand. there are some of them windows wav files that i had to convert to mp3's and convert back to wav files because they just won't play.

you'll probably have to do the same thing. use lame if you have it installed.

lame -q 0 -b 128 some_win_file.wav some_win_file.mp3

lame --decode some_win_file.mp3 some_win_file1.wav

you should be able to play some_win_file1.wav now.
Thanks.

Actually, I had been aware of that just from using windows. Often, I'd have a wave file that just wouldn't work, so I had to open it with something like CoolEdit and then save it into a "normal" wav. But this wav file (which I had recorded from my Palm) would usually play under Winamp, which surprised me when it didn't play under xmms (with the two being so similar).

I probably would've done a wav->mp3->wav conversion if I were desparate. There has to be a better way. Nonetheless, thanks for showing me how to do it in the command prompt--that hadn't occurred to me and seems much faster.
 
Old 12-30-2004, 03:17 AM   #6
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Original Poster
Rep: Reputation: 31
I installed lame and used it for wav->mp3->wav. The resulting wave file was just static.

However, I managed to get kaffeine (but not xmms) to play the file. I did this by installing the lib2lame and w32codec-all packages. Not sure which one was the one that did the trick, but I'm guessing the latter. Now if only xmms would play it...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kaffeine, won't play a DVD but will play individual VOB files? GameGuru Linux - Newbie 12 07-08-2005 01:33 AM
Play AAC files with XMMS? Kenji Miyamoto Linux - Software 3 01-02-2005 11:40 PM
XMMS won't play MP3 files NickC Mandriva 8 07-27-2004 12:38 AM
XMMS issue - Can't play files GloVe Linux - Software 9 10-16-2003 09:26 PM
cant get xmms to convert to wave randogrulz Linux - Software 2 04-18-2003 05:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration