Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
is there any package to record audio streams ?[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Wed Apr 26, 2006 4:45 pm    Post subject: is there any package to record audio streams ?[solved] Reply with quote

i use MP3myMP3.exe for recording radiostations ' audiostreams.
is there a package in linux for equivalent function.
audacity and krecord dont work for this purpose.
any suggestions ?
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)


Last edited by padoor on Thu May 04, 2006 4:35 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Wed Apr 26, 2006 5:32 pm    Post subject: Reply with quote

padoor,

vsouund is a 'wrapper' for capturing everything sent to /dev/dsp as a wav file.
Is that the sort of thing ?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Teetante
Guru
Guru


Joined: 02 Mar 2004
Posts: 515
Location: Oldenburg/Germany

PostPosted: Wed Apr 26, 2006 5:36 pm    Post subject: Reply with quote

* media-sound/streamripper
Latest version available: 1.61.17
Latest version installed: [ Not Installed ]
Size of downloaded files: 1,158 kB
Homepage: http://streamripper.sourceforge.net/
Description: Extracts and records individual MP3 file tracks from shoutcast streams
License: GPL-2

Works really good. There are frontends called kstreamripper and gstreamripper. Shoud do pretty much exactly what you want.
_________________
ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."-
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Wed Apr 26, 2006 6:38 pm    Post subject: Reply with quote

i dont know exactly what mp3mymp3 does in windows.it makes basically wav files of the sounds coming out of the audio out put and records as a continuous file which can be saved as .wav or .mp3 file. later it can be played back by any mp3 player like Xmms mplayer xine or audacity amarok and any number of audio players winamp in windows
and the radio can be listened offline or any time we want.
i dont know vsound , i will give it a try.

stream ripper looks like what i need.
i will try emerging both and post results here.
essentially it records anything that goes through the dsp
thanks for a fast reply
see u back soon like tomorrow
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
tutaepaki
Apprentice
Apprentice


Joined: 11 Nov 2003
Posts: 279
Location: New Zealand

PostPosted: Wed Apr 26, 2006 11:26 pm    Post subject: Reply with quote

you can also do this with just mplayer...
Code:
mplayer -vo null -vc dummy -ao pcm:file=yourfilename.wav url
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu Apr 27, 2006 1:39 am    Post subject: Reply with quote

tutaepaki wrote:
you can also do this with just mplayer...
Code:
mplayer -vo null -vc dummy -ao pcm:file=yourfilename.wav url


interesting

the file ext of radios from audiostream.com is .drm
the other streams are shoutcast,streamtheworld (flashplayer player),eonstreams ,live365
these r the streams i use daily for listening
now i have to boot up in windows XP / win2k just for this recording of thse dtreams,
the output file is very large . a 40minutes rec will be about 800mb.
the above code is expected to write a .wav file of the url play back?
i will try to do this .
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
tutaepaki
Apprentice
Apprentice


Joined: 11 Nov 2003
Posts: 279
Location: New Zealand

PostPosted: Thu Apr 27, 2006 2:27 am    Post subject: Reply with quote

Yeah, mplayer will write a wav file of the audio, and yes, it will be big. (use lame to convert the wav to mp3)
Whether it will work depends if mplayer has codecs for those formats.

A universal method would be vsound as neddyseagoon suggests. As long as you can find a linux app to listen, vsound can capture the audio stream. (again, to a .wav)
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu Apr 27, 2006 2:51 am    Post subject: Reply with quote

yes i have installed win32codecs also have vlc mplayer xmms kaffiene .and gxine
among them i can listen to any of the streams.
flashplayer has problems in mozilla and firefox no sound.
surprisingly konqueror works with flash player sound also.
if this can work i can now do with only gentoo.
:D
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu Apr 27, 2006 3:50 am    Post subject: Reply with quote

the mplayer code i tried it cannot find the stream from the url
the kde crshed and not able to login to kde-3.5.2
this crash i can solve i think
loged in kde-3.4.3
vsound i emerged it gives the following error
the correct usage of vsound code i dont know
#vsound -f test
About to start the application. The output will not be available
until the application exits.
Missing file ./vsound10586.au.
This means that the libvsound wrapper did not work correctlty.
Here are some the possible reasons :
- You are trying to record a stream (RTSP or PNM protocol) from
the internet. You will need to use the --timing option.
- The program you are trying to run is setuid. You will need to
run vsound as root.
- Vsound was not properly installed and hence won't work at all.
i need some help here.
i have atrted playing the radio in mozilla mplayer kclr.com
the sound is going on.
how file missing comes up?


there is no man page for vsound?

localhost ~ # vsound -h
vsound - digitally record output of an OSS audio program

vsound [options] program arguments

options:
-f, --file=FILE output file name
-v, --verbose set to verbose output
-k, --keep-temps don't delete temporary files
-h, --help this help message
-V, --version show program version
-r, --resample resample the output file to the given sample rate
eg. vsound -r 44100 realplay file.rm
-d, --dspout enable simulateous output to /dev/dsp and file
(may be required for some programs)
-s, --stdout write the intermediate (Sun AU format) file to stdout
(no other output file is generated)
-n, --no-convert do not convert the AU file to WAV
-t, --timing add timing delays to allow recording of streaming data
-a, --autostop=SEC kill the player after 'SEC' seconds of inactivity.

i have alsa sound output.
i think it is command line code problem
i tried
localhost ~ # vsound -d -f -t300 test.wav
About to start the application. The output will not be available
until the application exits.
/usr/bin/vsound: line 177: test.wav: command not found
Missing file ./vsound8212.au.
This means that the libvsound wrapper did not work correctlty.
Here are some the possible reasons :
- You are trying to record a stream (RTSP or PNM protocol) from
the internet. You will need to use the --timing option.
- The program you are trying to run is setuid. You will need to
run vsound as root.
- Vsound was not properly installed and hence won't work at all.
it gives same kind of errors . after re emerging also
*******
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
jettjunker
Apprentice
Apprentice


Joined: 10 Sep 2005
Posts: 267

PostPosted: Thu Apr 27, 2006 5:00 am    Post subject: Reply with quote

Yo.

Just thought I would mention that if you use xmms-mpg123 decoder plugin you can go into it's configuration and set it to save a stream... the only downside is that it doesn't break it up into individual tracks. (besides, it is way better than the ultra buggy xmms-mad)

I'll be giving streamripper a try though; thanks for the info ;)
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu Apr 27, 2006 11:54 am    Post subject: Reply with quote

kaffeine has a stream record button and it works.
but it works for play.pls of live365.com streams only.
if only there is an interface like that for mplayer i could do for all audiostreams.!!
the other interesting part is a 2hrs stream is only 20mb file. we need not convert it to wav or mp3 or any format. the recorded stream is playable by xmms mplayer kaffeine,gxine and such.
vsound can record only realmedia files. the realplayer is not able to play the stream from the url
like kclr.com or live365.com.
so for the time being i have to be happy with kaffeine which does recrod streams.
i can try kaffine as plugin for mozilla and firefox to play other streams than live365.
more study is needed for further actions
if anybody has solution please let me know.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Bill Thompson
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2005
Posts: 139

PostPosted: Thu Apr 27, 2006 12:40 pm    Post subject: Reply with quote

VLC to record and listen (or watch) at the same time.
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu Apr 27, 2006 3:53 pm    Post subject: Reply with quote

Bill Thompson wrote:
VLC to record and listen (or watch) at the same time.


please elaborate on this.
my vlc does not have any rec button.
it will be very helpfull if u can tell me how to achieve that recording and listening.
codes
more emerge?
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Bill Thompson
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2005
Posts: 139

PostPosted: Thu Apr 27, 2006 8:28 pm    Post subject: Reply with quote

Try this.
In vlc, upper left corner: File
select: Open capture device
Button: http (or whatever)
enter http address, such as: http://8173.str.ovh.net:8173
Press button on bottom: Stream output, Then press: settings
Select: Play locally
File (and enter directory and filename where you wich to save)
Encapsulation method: Raw (if you wish to save in the same format being broadcast, or select another format.

You'll get it if you experiment. The above works for me -- You listen and record at the same time.
Back to top
View user's profile Send private message
tutaepaki
Apprentice
Apprentice


Joined: 11 Nov 2003
Posts: 279
Location: New Zealand

PostPosted: Thu Apr 27, 2006 9:52 pm    Post subject: Reply with quote

when using vsound, after your options, you need to specify a program to run which is going to actually play the sound. So instead of
Code:
localhost ~ # vsound -d -f -t300 test.wav

You need
Code:
localhost ~ # vsound -d -t300 -f test.wav mplayer url



All vsound does, is capture to sound output of any program you run inside vsound, so you've got to specify the application. It could be mozilla, konqueror, whatever. (I've also only ever had it work running as root)
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Fri Apr 28, 2006 3:18 am    Post subject: Reply with quote

vsound homepage says it can work only for real media files .rm
realplayer 10 does not play the stream from kclr.com
i have tried installing mediaplayer conectivity checker , it consistently select mplayer only for playing the audiostream from all streams from audiostream.com -many radio stations
so is eonstreams wsmonline.com
live365.com streams select kaffeine as player and i am able to recrd with its builtin rec button.

the vsound still says it is not installed correctly.
the portage has only latest version and esearch says it is installed.

vlc gui does not come up i will check the installation again
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Fri Apr 28, 2006 3:23 am    Post subject: Reply with quote

localhost ~ # mplayer -vo null -vc dummy -ao pcm:file=test2.wav mozilla
MPlayer dev-CVS-060415-04:02-3.3.6 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium 4/Celeron D Prescott; Xeon Nocona (Family: 15, Stepping: 4)
MMX supported but disabled
MMX2 supported but disabled
SSE supported but disabled
SSE2 supported but disabled
CPUflags: MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions:



91 audio & 208 video codecs
Playing mozilla.
File not found: 'mozilla'
Failed to open mozilla


Exiting... (End of file)
in mozilla mplayer is playing 96.9fm radio audiostream

any advice on the disabled supports???
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Sat Apr 29, 2006 2:53 pm    Post subject: Reply with quote

Bill Thompson wrote:
Try this.
In vlc, upper left corner: File
select: Open capture device
Button: http (or whatever)
enter http address, such as: http://8173.str.ovh.net:8173
Press button on bottom: Stream output, Then press: settings
Select: Play locally
File (and enter directory and filename where you wich to save)
Encapsulation method: Raw (if you wish to save in the same format being broadcast, or select another format.

You'll get it if you experiment. The above works for me -- You listen and record at the same time.


i have installed latest vertion of vlc and it plays nicely the stations i listen.
i could not set the capture device to listen http://krty.com 95.3-KRTY-FM
would u please tell me how i can set capture device for this stream.
the station can be listened by getting krty.com and listenlive button.
i dont have more details of the ip address of the stream server or port number etc.
i would appreaciate if u would guide to get the settings to save the stream.
thanks in advance
:?
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Bill Thompson
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2005
Posts: 139

PostPosted: Sat Apr 29, 2006 5:20 pm    Post subject: Reply with quote

For KRTY in either mplayer or vlc the correct address is:

mms://uni2.sa.streamaudio.com/KRTY_IR

The post is not clear because of the underlining. The capital letters at the end of the address are:KRTY_IR. The underscore was not apparent.
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Sun Apr 30, 2006 12:03 pm    Post subject: Reply with quote

Bill Thompson wrote:
For KRTY in either mplayer or vlc the correct address is:

mms://uni2.sa.streamaudio.com/KRTY_IR

The post is not clear because of the underlining. The capital letters at the end of the address are:KRTY_IR. The underscore was not apparent.


mplayer -vo null -vc dummy -ao pcm:file=/pubdata/krty.wav mms://uni2.sa.streamaudio.com/KRTY_IR
works cery well and the file is 120mb for a 40mnts play.
how did u find the mms: xxxxxx for krty how can i find the address for other streams
this is one of the station from streamaudio.com
the other streams i listen are eonstreams streamtheworld.com shoutcast live365.com etc.
if i learn how to find the address myself i dont have to ask u for every statios address i want to listen/record.
ur post has been very useful to me.
thanks in advance.
:D
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Bill Thompson
Tux's lil' helper
Tux's lil' helper


Joined: 21 Jan 2005
Posts: 139

PostPosted: Sun Apr 30, 2006 1:21 pm    Post subject: Reply with quote

http://live-radio.net will give you all the internet radio stations. If you have the mplayer-plugin installed, it will list the correct address as the program loads.
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Mon May 01, 2006 4:10 am    Post subject: Reply with quote

i tried to find the mms:// address of few stations
the address i need to ask mplayer to record the strem (save the stream)
the mplayer while connecting to server flashes the mms:// address but before i can take note if this address it vanishes and starts playing.
i tried to find connections from netstat
it gives process number and the http it is connected to. but no server names like mms://...
is there any netstat argument to show the servers.
netstat -h doesnt help much.
in windows i can open my outpost firewall to show connections but there it gives only the numerical ips of live connections only.
in the firefos cache i could find out the strem for flashplayer based streams and able to save the file in a diffrent folder as stresm only.
mplayer based steams i could not yet locate in the cache.
mplayer history i am searching now for the connections it made.history found . no url history there
will keep trying. somewhere it should be registered.
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
padoor
Advocate
Advocate


Joined: 30 Dec 2005
Posts: 4185
Location: india

PostPosted: Thu May 04, 2006 4:34 am    Post subject: Reply with quote

if the radiostation is opened with xine on the title bar the mms:// address is shown.
with that we can find the address of the mms: server for any radio that plays with xine
actually i found this out by playing a station in knoppix install in which no mplayer.
xine is the windows media player .
for flshplayer based radios like highwaycountry.com the cache has the file and we should copy it while the station is still playing.soon u stop play the cache removes that file.
it might help some body. this post i mean
:D :D :D :D :D
_________________
reach out a little bit more to catch it (DON'T BELIEVE the advocate part under my user name)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot 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