Hottest Free Downloads - DownloadPipe.com Over 197,000 downloads! Bookmark Now!
DownloadPipe.com - New Downloads Every Minute
 SEARCH:
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Recording streaming audio and deviding it to 15min files

 
   Linux (Home) -> Genreal Discussions RSS
Next:  Linux for Commodore 64/128  
Author Message
Ralph

External


Since: Dec 23, 2006
Posts: 14



(Msg. 1) Posted: Sat Dec 23, 2006 7:11 am
Post subject: Recording streaming audio and deviding it to 15min files
Archived from groups: alt>linux (more info?)

Hi

I'm using mplayer to record my streaming audio using command like this:

mplayer -ao pcm:file=mystream.wav -vc dummy -vo null -cache 100 http://URL

What I would like to do:

1. record directly to mp3
2. record automatically dividing stream to lets say 15 minutes files (mp3 or wav).

Is it possible to do it with mplayer or any other program?

Thank you
--

Ralph
Back to top
Login to vote
noi

External


Since: Sep 10, 2005
Posts: 180



(Msg. 2) Posted: Sat Dec 23, 2006 7:44 am
Post subject: Re: Recording streaming audio and deviding it to 15min files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, 23 Dec 2006 07:11:26 +0000, Ralph wrote this:

> Hi
>
> I'm using mplayer to record my streaming audio using command like this:
>
> mplayer -ao pcm:file=mystream.wav -vc dummy -vo null -cache 100 http://URL
>
> What I would like to do:
>
> 1. record directly to mp3
> 2. record automatically dividing stream to lets say 15 minutes files (mp3
> or wav).
>
> Is it possible to do it with mplayer or any other program?
>
> Thank you

make the following into script then setup start/stop cronjobs for 15
minute intervals. Or maybe the mplayer -endpos option can be used to
limit the stream to 15min chunks. Of course you'll need Lame


FIFO=/tmp/converter-fifo.`date +%s`
LAME_OPTS="-b 128"
OUTPUT="somefile.mp3"

URL="http://stream_source"

mkfifo $FIFO
mplayer -really-quiet -vo null -vc dummy -ao pcm -aofile -channels 2 $FIFO -playlist $URL < /dev/null &
lame $LAME_OPTS $FIFO $OUTPUT
rm $FIFO
Back to top
Login to vote
Ralph

External


Since: Dec 23, 2006
Posts: 14



(Msg. 3) Posted: Sat Dec 23, 2006 8:26 pm
Post subject: Re: Recording streaming audio and deviding it to 15min files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

noi wrote:
> On Sat, 23 Dec 2006 07:11:26 +0000, Ralph wrote this:
>
>> Hi
>>
>> I'm using mplayer to record my streaming audio using command like this:
>>
>> mplayer -ao pcm:file=mystream.wav -vc dummy -vo null -cache 100 http://URL
>>
>> What I would like to do:
>>
>> 1. record directly to mp3
>> 2. record automatically dividing stream to lets say 15 minutes files (mp3
>> or wav).
>>
>> Is it possible to do it with mplayer or any other program?
>>
>> Thank you
>
> make the following into script then setup start/stop cronjobs for 15
> minute intervals. Or maybe the mplayer -endpos option can be used to
> limit the stream to 15min chunks. Of course you'll need Lame
>
>
> FIFO=/tmp/converter-fifo.`date +%s`
> LAME_OPTS="-b 128"
> OUTPUT="somefile.mp3"
>
> URL="http://stream_source"
>
> mkfifo $FIFO
> mplayer -really-quiet -vo null -vc dummy -ao pcm -aofile -channels 2 $FIFO -playlist $URL < /dev/null &
> lame $LAME_OPTS $FIFO $OUTPUT
> rm $FIFO
>
>
>
Will that create gaps between the audio files? The perfect solution would be the program that dumps
audio file and is cutting while dumping. Is ther a program like that? Or maybe I can do that with
mplayer with some function i don't know about.

--

Ralph
Back to top
Login to vote
J.O. Aho

External


Since: Sep 03, 2006
Posts: 618



(Msg. 4) Posted: Sat Dec 23, 2006 9:34 pm
Post subject: Re: Recording streaming audio and deviding it to 15min files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ralph wrote:
> noi wrote:

>> make the following into script then setup start/stop cronjobs for 15
>> minute intervals. Or maybe the mplayer -endpos option can be used to
>> limit the stream to 15min chunks. Of course you'll need Lame
>>
>> FIFO=/tmp/converter-fifo.`date +%s`
>> LAME_OPTS="-b 128"
>> OUTPUT="somefile.mp3"
>>
>> URL="http://stream_source"
>>
>> mkfifo $FIFO
>> mplayer -really-quiet -vo null -vc dummy -ao pcm -aofile -channels 2
>> $FIFO -playlist $URL < /dev/null &
>> lame $LAME_OPTS $FIFO $OUTPUT
>> rm $FIFO
>>
>>
>>
> Will that create gaps between the audio files?

If you are using cron to start and stop it with 15 min intervals, yes it would
get a gap between the two streams.

> The perfect solution
> would be the program that dumps audio file and is cutting while dumping.

I think transcode can split up streams, you would need to feed the stream (via
a socket I guess) to transcode the whole time and set a limitation on size and
it should spit out files in the format you want to have them.
I suggest you study the man page for transcode and visit the homepage and see
on the examples.


--

//Aho
Back to top
Login to vote
noi

External


Since: Sep 10, 2005
Posts: 180



(Msg. 5) Posted: Sun Dec 24, 2006 7:44 am
Post subject: Re: Recording streaming audio and deviding it to 15min files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sat, 23 Dec 2006 20:26:52 +0000, Ralph wrote this:

> noi wrote:
>> On Sat, 23 Dec 2006 07:11:26 +0000, Ralph wrote this:
>>
>>> Hi
>>>
>>> I'm using mplayer to record my streaming audio using command like this:
>>>
>>> mplayer -ao pcm:file=mystream.wav -vc dummy -vo null -cache 100
>>> http://URL
>>>
>>> What I would like to do:
>>>
>>> 1. record directly to mp3
>>> 2. record automatically dividing stream to lets say 15 minutes files
>>> (mp3 or wav).
>>>
>>> Is it possible to do it with mplayer or any other program?
>>>
>>> Thank you
>>
>> make the following into script then setup start/stop cronjobs for 15
>> minute intervals. Or maybe the mplayer -endpos option can be used to
>> limit the stream to 15min chunks. Of course you'll need Lame
>>
>>
>> FIFO=/tmp/converter-fifo.`date +%s`
>> LAME_OPTS="-b 128"
>> OUTPUT="somefile.mp3"
>>
>> URL="http://stream_source"
>>
>> mkfifo $FIFO
>> mplayer -really-quiet -vo null -vc dummy -ao pcm -aofile -channels 2
>> $FIFO -playlist $URL < /dev/null & lame $LAME_OPTS $FIFO $OUTPUT
>> rm $FIFO
>>
>>
>>
> Will that create gaps between the audio files? The perfect solution would
> be the program that dumps audio file and is cutting while dumping. Is ther
> a program like that? Or maybe I can do that with mplayer with some
> function i don't know about.

You'll have to cut somewhere. You could just record 1 hr chunks then use
your favorite mp3 audio editor to make 15 minute chunks.

Don't understand your need for 15 minutes chunks. You could lower
bitrates for worse sound but smaller file sizes. Or use tar to split
large files into smaller files for email.
Back to top
Login to vote
Ralph

External


Since: Dec 23, 2006
Posts: 14



(Msg. 6) Posted: Sun Dec 24, 2006 9:17 am
Post subject: Re: Recording streaming audio and deviding it to 15min files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

noi wrote:
> On Sat, 23 Dec 2006 20:26:52 +0000, Ralph wrote this:
>
>> noi wrote:
>>> On Sat, 23 Dec 2006 07:11:26 +0000, Ralph wrote this:
>>>
>>>> Hi
>>>>
>>>> I'm using mplayer to record my streaming audio using command like this:
>>>>
>>>> mplayer -ao pcm:file=mystream.wav -vc dummy -vo null -cache 100
>>>> http://URL
>>>>
>>>> What I would like to do:
>>>>
>>>> 1. record directly to mp3
>>>> 2. record automatically dividing stream to lets say 15 minutes files
>>>> (mp3 or wav).
>>>>
>>>> Is it possible to do it with mplayer or any other program?
>>>>
>>>> Thank you
>>> make the following into script then setup start/stop cronjobs for 15
>>> minute intervals. Or maybe the mplayer -endpos option can be used to
>>> limit the stream to 15min chunks. Of course you'll need Lame
>>>
>>>
>>> FIFO=/tmp/converter-fifo.`date +%s`
>>> LAME_OPTS="-b 128"
>>> OUTPUT="somefile.mp3"
>>>
>>> URL="http://stream_source"
>>>
>>> mkfifo $FIFO
>>> mplayer -really-quiet -vo null -vc dummy -ao pcm -aofile -channels 2
>>> $FIFO -playlist $URL < /dev/null & lame $LAME_OPTS $FIFO $OUTPUT
>>> rm $FIFO
>>>
>>>
>>>
>> Will that create gaps between the audio files? The perfect solution would
>> be the program that dumps audio file and is cutting while dumping. Is ther
>> a program like that? Or maybe I can do that with mplayer with some
>> function i don't know about.
>
> You'll have to cut somewhere. You could just record 1 hr chunks then use
> your favorite mp3 audio editor to make 15 minute chunks.
>
> Don't understand your need for 15 minutes chunks. You could lower
> bitrates for worse sound but smaller file sizes. Or use tar to split
> large files into smaller files for email.
>
Everything needs to be done automatically. 15 minutes is to make files small for downloads.
I found a way to record and make mp3 files. You can find it here:

http://walkingtowel.org/2006/03/03/record-streaming-audio-with-linux-part-ii/

right now i need a tool to make few things to the wav or mp3 files.

I need to be able to cut arbitrary number of seconds form beginning or end of the file and merge two
audio files together. What would be the best tool to do that?

Thanks

--

Ralph
Back to top
Login to vote
J.O. Aho

External


Since: Sep 03, 2006
Posts: 618



(Msg. 7) Posted: Sun Dec 24, 2006 10:44 am
Post subject: Re: Recording streaming audio and deviding it to 15min files [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ralph wrote:

> I need to be able to cut arbitrary number of seconds form beginning or
> end of the file and merge two audio files together. What would be the
> best tool to do that?

transcode

--

//Aho
Back to top
Login to vote
Display posts from previous:   
Related Topics:
audio recording - Is it possible to record from the sound card while it's playing something? I mean dump to a file whatever it's playing. If so, how? Running FC4.

Script for Recording an Audio Stream - Here is a simple script to record an audio stream being served over the web. It works for me, but YMMV. It only does simple error checking. This script can be combined with "at" to "tivo" the audio stream. For example, to record some...

linux audio recording software? - Hi, Are there any native Linux recording/audio-midi recording programs out yet? I am used to Cubase SX (very professional results) in a Windows platform, so am looking for something comparable to that. My soundcard (Echo Mia) doesn't state any Linux..

Audio recording and skip silent period - I am trying to capture the audio output from a radio scanner. This seems straightforward with 'rec' and 'sox', but I have not found a way to skip over the silent periods. The output from the radio is silent most of the time, so it is not very useful to....

recording stream files/programmable digital media recorder? - Does anyone know of an app under linux that will allow me to schedule the recording of digital media streaming off a website? What I'm picturing would basically work as a VCR for digital streaming media. I want to record some internet radio shows that..
       Linux (Home) -> Genreal Discussions All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows Forums
 Game Forums
  Linux Forums
 Mac Forums
 PDA Forums
 Mobile Forums
  Top  |  Store  |  RSS Feeds RSS  |  Data Feeds  |  Advertise  |  Submit  |  Bookmark  |  Newsletter  |  Contact