LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Flash Audio command line player? (https://www.linuxquestions.org/questions/linux-software-2/flash-audio-command-line-player-465413/)

ncsuapex 07-19-2006 01:48 AM

Flash Audio command line player?
 
I am running Slackware 2.6.13 and I am looking for a command line audio player that will play streaming audio that uses Flash as the interface. I am familar with Sox, Audacity, Xine, XMMS and so on.. But I need to be able to play the audio strickly from the command line. Is it possible to pull the Flash audio stream and pipe it through /dev/dsp or /dev/audio so that I can use shoutcast or something else to rebroadcast it so I can listen to it from another workstation.

Hopefully I explained what I'm trying to do accurately...

Mirag3 07-19-2006 07:14 PM

Frankly, I don't think thats possible without direct editing of the program thats pulling the stream. However, if it is you might want to look into Mplayer. I know that it runs from a terminal, but I don't know if it will work in text mode. I also don't know if it plays the flash audio format, although im sure you can look it up. Good luck

ncsuapex 07-20-2006 03:23 AM

I figured it out. Using this script. Seems to work for wav files only


mplayer -playlist playlist.asx -ao pcm:file=mystream_`date +%b%d_%H%M_%Y`.wav -vc dummy -vo null ;

the entire script is one line


the playlist.asx is the name of the stream. I did a wget on the url and just used the filename it DL'ed as my playlist.asx. I also added variables to name the file with month/date/hour/minute/year.


All times are GMT -5. The time now is 09:29 AM.