LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-22-2009, 11:39 AM   #1
Raymond C. Glassford
Member
 
Registered: Mar 2007
Location: USA
Distribution: Slitaz 4.0
Posts: 30

Rep: Reputation: 16
Audacious, MPlayer, ASF Streaming Audio


Is a plugin available for "Audacious" that will enable it to handle ASF, ASX streaming audio? The "Audacious" website seems to say "no", but Googling seems to say "maybe", as a non-free plugin. If a packaged plugin is available, where can I find it? I like using "Audacious" because it permits listening and saving OGG streams simultaneously, plus MP3 streams as well. I would like to do the same with ASF, ASX streams. MPlayer handles ASF, ASX streaming audio, but does not permit listening and saving (recording) simultaneously.

Using the following command-line in Konsole (as an example):

mplayer -cache 256 -dumpaudio -dumpfile stream.asf -msglevel all=-1 -nojoystick -nolirc mms://rx-wes-sea154.rbn.com/farm/pull/tx-rbn-sea003:1459/wmtencoder/wcpe/wcpeint/wmlive/wcpewin.asf

I can save (record) an ASF stream. Once I have done that, is there a way to convert the ASF file to WAV format, so that I can make an audio disc, or use other software to do further conversion?

I am using Mandriva 2007.0, kernel 2.6.17-5mdv.
 
Old 03-31-2009, 09:45 AM   #2
Raymond C. Glassford
Member
 
Registered: Mar 2007
Location: USA
Distribution: Slitaz 4.0
Posts: 30

Original Poster
Rep: Reputation: 16
I did a considerable amount of additional Googling and I discovered that I have all the necessary tools to convert recorded ASF streams to WAV or other formats, particularly after adding "mencoder" to my installed packages. Finding the appropriate stream to record was also a major factor contributing to success. All ASF streams do not seem to be created equal. As an example, use the following command-line in Konsole to capture the "SKY.fm - Mostly Classical" ASF audio stream:

mplayer -cache 128 -dumpstream -msglevel all=-1 -nojoystick -nolirc mms://wstream5d.di.fm/classical_low/

This is a 20 kbps (low-bit rate) stream that works fine with a dial-up modem. The stream will be saved with the filename "stream.dump". Use the "-dumpfile" option to save with the filename of your choice. See "man mplayer" for more details. Note that win32-codecs must be installed to handle ASF streams. Also note that audio will not be heard as it is recorded, so it is helpful to choose streams originating from sites that post playlists. On my system, running Mandriva 2007.0, pressing "q" does not stop "mplayer" recording; I must open another desktop, open "Process Table", and kill "mplayer". Pressing "q" does stop "mplayer" when listening only.

The following command-lines can then be used to convert the ASF audio file to WAV, then MP3 format (if "lame" is installed to handle MP3 conversion).

mplayer -msglevel all=-1 -nojoystick -nolirc input.asf -vc null -vo null -ao pcm:waveheader:file=output.wav

lame -h -m s input.wav output.mp3

The above procedure works fine for me, and it can be streamlined considerably by those who enjoy writing bash scripts. I do not do much stream recording, so I will leave the script writing to someone else.

The following ASF stream (32 kbps) can be captured, but I am unable to play the file, or convert it to another format.

mplayer -cache 128 -dumpstream -msglevel all=-1 -nojoystick -nolirc mms://rx-wes-sea154.rbn.com/farm/pull/tx-rbn-sea003:1459/wmtencoder/wcpe/wcpeint/wmlive/wcpewin.asf

"MPlayer" gives the error message "encrypted VOB file". So, do not be surprised if you find some cases such as this one. Remove the "-msglevel all=-1" option to see all warning and error messages.

I also want to mention that "vsound" can be used to listen and record RM audio streams simultaneously, while "Audacious" can be used similarly for OGG and MP3 audio streams. Be advised that I use the OSS audio driver (i810_audio) only. Your results might vary.
 
  


Reply



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
Audio Streaming - Mplayer Adriann Mandriva 4 06-12-2008 01:01 AM
streaming audio sometimes repeats in mplayer lothario Linux - Software 0 02-08-2006 09:42 PM
mplayer streaming audio simple Linux - Software 2 05-19-2005 02:55 PM
mplayer cannot play audio (asf) and wmv in firefox caneforever97 Linux - Newbie 8 04-23-2004 11:45 AM
mplayer asf streaming Incanus Linux - Software 0 10-01-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:06 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
Open Source Consulting | Domain Registration