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: (4) </ 1 2 [3] 4 >/

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

reply to topic new topic new poll
Topic: using play on the command line, cant use play from cmd line live from cd< Next Oldest | Next Newest >
wavetel Offline





Group: Members
Posts: 48
Joined: Mar. 2006
Posted: Oct. 04 2007,00:19 QUOTE

Ive not been able to play a wav file as yet with mpg123 mpg321 .. It says its decoding but nothing plays from the speakers.. The output device is libao by defualt but whats that ?? Too many ambigiuos arguments on the help texts to make any sense .. Why cant I just go with "mpg123 mywavfile.wav" ??

I need a light weight player from the command line that just plays wavs and finds the sound system by itself so it can be used in a DSL package that should run on most if not all systems..

I dont care for MP3s frankly in this case.. By the time a old system machine has managed to uncompress and play a MP3 file the reason for the sound event is lost or its killed the system with overheads and lame encoders..

Still can not figure out where the play binary has come from on the USB install .. Will have to look at that too .. This whole thing is rather interesting as well as solving a problem its become an education..
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Oct. 04 2007,02:08 QUOTE

mpg321 can write to a wav file, but that does not mean it can take a wav as input. I'm guessing that the wav output is available because a decompressed mp3 is essentially the same as a wav, so writing the decompressed data to a file is a trivial matter. Maybe adding the code to play a wav directly was more than the developers wanted to bother with?

sox is a pretty feature-rich application designed to play/modify/convert multiple formats, so I guess that would mean a relatively large size for a commandline program. If you want a tiny program that only plays wav files, I'd recommend wavplay, or bplay as curaga suggested.


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





Group: Members
Posts: 48
Joined: Mar. 2006
Posted: Oct. 06 2007,14:30 QUOTE

Quote (wavetel @ Oct. 03 2007,10:30)
Nope NO Extensions saved on the USB stick at all.. Try it .. Boot from a DSL CD and open a command line and type "play" .. Its not there anywhere ..

Now install to a USB stick and dont install any exts or anything extra .. Boot that USB stick up and open a console and type "play" again.. Hey now its there .. Ive done this with DSL v2 3 and 4 .. I thought a USB install was just a CD image across to a bootable USB stick but there is something else going on there.. I dont understand it as yet.. You will find play at /usr/bin/play on a USB install from memory.

Well Ive figured alot of things out.. First off I was dead wrong about the Play binary appearing on the USB install .. It did creep into the system via a DSL ext that I never expected it to be in. That explains that one. I looked deep into the ext and found it there. Just assuming you know everything thats in the ext is a trap.

I grabbed the deb file for bplay and made a bplay.dsl ext and that works well. Problem solved I guess. The bplay ext turns out to be about 9k as compared to the sox ext at 477k or so.

Thanks for your guidance and input folks.
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Oct. 06 2007,18:46 QUOTE

If you think the extension might help others, please consider submitting it to extensions@damnsmalllinux.org
All you need to do is to make a .md5 and .info
Back to top
Profile PM 
wavetel Offline





Group: Members
Posts: 48
Joined: Mar. 2006
Posted: Oct. 10 2007,13:15 QUOTE

Quote (^thehatsrule^ @ Oct. 06 2007,14:46)
If you think the extension might help others, please consider submitting it to extensions@damnsmalllinux.org
All you need to do is to make a .md5 and .info

I posted the extension off a couple of days ago but nothing as yet on the testing area. Made a md5 and info file up and posted them as 3 separate attachments. There isnt much info on exactly how they want it submitted so maybee they dont like it or just think its too insignificant. Who knows.
Back to top
Profile PM 
16 replies since Oct. 02 2007,20:56 < Next Oldest | Next Newest >

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

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: using play on the command line

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