LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-02-2011, 06:36 AM   #1
felix001
Member
 
Registered: Jan 2009
Posts: 101

Rep: Reputation: 15
Saving a Sound file with Bash


Ok heres the plan. I wanted to stream audio and save it into a file which I can then listen to at a later date.

Ive found a source that provides a m3u file. Example : http://tx.whatson.com/icecast.php?i=kiss100.mp3.m3u

Is there anyway which I can pipe / save this audio stream into another file using just a standard bash shell.

Many Thanks,
 
Old 02-02-2011, 06:42 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
The m3u file is a playlist, basically a list of URLs to mp3 file. You can easily download the mp3s by means of wget, reading the URLs from the playlist: first download the m3u file, then do
Code:
wget -i kiss100.mp3.m3u
Hope this helps.
 
Old 02-02-2011, 07:10 AM   #3
felix001
Member
 
Registered: Jan 2009
Posts: 101

Original Poster
Rep: Reputation: 15
Perfect... Thanks..
 
Old 02-02-2011, 08:01 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Mark the thread as solved.
 
  


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
[SOLVED] Evaluating bash script without saving - help! igadoter Programming 5 09-05-2010 05:32 PM
Opening and saving an image file in a bash script Dralnu Programming 5 06-16-2009 01:23 PM
SUSE10.1 : bash query : saving input to file linuxFNG Linux - Newbie 3 03-07-2008 12:23 PM
Bash: Saving and Variables morrolan Linux - Newbie 1 03-20-2006 11:03 AM
(Bash) Saving READ values in external .conf files spikylee Linux - Newbie 4 10-28-2003 06:46 AM

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

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