And here's the secondpart. -------- Original Message -------- Subject: [newbie] Recording Net-Radio Broadcasts (Chpt 2) Date: 25 Jun 2002 03:39:17 -0400 From: Lyvim Xaphir <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: NewbieMandrake-List <[EMAIL PROTECTED]>
In the previous email to this one I demonstrated how you could bring the Sox sound utility up to speed with Ogg Vorbis encoding. Because of some very competent and excellent help I now know we need to amend the sox installation steps. Formerly it looked like this: __________________________________________________ ./configure make After that we need to edit the Makefile that we just made. Do vi Makefile __________________________________________________ Now it looks like: ./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib \ --sysconfdir=/etc make make install With no editing of the Makefile, and everything else remains the same. Much better approach; thanks Tom Lyons! However, as dfox pointed out, sox likes to put uncompressed man page files out there, so after Tom Lyon's ./configure addition above we still need to do the following: cd /usr/share/man/man1 (deleting the old originals) rm -f sox.1.bz2 rm -f play.1.bz2 rm -f soxexam.1.bz2 (compressing the newer and more up to date manpages) bzip2 sox.1 bzip2 play.1 bzip2 soxexam.1 There are symlinks in the man1 directory that point to the compressed man page filenames; we need not destroy or recreate those because they will become valid as we replace their targets with the proper files. (after the bzip2 process.) Now we will put Sox to work as we get Realplayer installed and functional. The Sox recompile has been and is the most complicated part of this (unless you are hunting Windows Media streams, but that's another time), so don't run yet. The rest is pretty straightforward stuff. Realplayer can be a little tricky to get ahold of if you haven't done it before. There are two ways I can think of for everyone here and neither one of them involve going to the Realplayer site for a download. I've heard fuzziness about the binaries on the Realplayer site, and haven't experienced them myself, but have listened intently to others. The number one way to get Realplayer is to be a member of the Mandrake Club. Like me, for instance. ;D In that case you can get it from the following link: http://www.mandrakeclub.com/modules.php?name=Downloads&d_op=search&query=realplayer This gets you RealPlayer-8.0-3mdk.i586.rpm; which is a newer and slicker rpm. Works better too, IMO. If you are NOT a Mandrake Club member, you can get the rpm from this link: ftp://speakeasy.rpmfind.net/linux/freshrpms/misc/RealPlayer-8.0-1.i386.rpm After you download the rpm from one of these, you go to the directory you put it in ( ~/tmp, perhaps) and issue the following: rpm -ivh RealPlayer-8.0-blah.rpm You also need to review at this point that your soundcard is fully functional, and also that you have Kmix installed. Kmix is a graphical util that controls all available aspects of your soundcard as it sees them; and usually it sees the most. If you don't have it pull up rpmdrake and do a search on your installation cd's for it. Now pull up Kmix from your menu or from an Eterm or terminal prompt. You will notice a bunch of sliders and alot of green lights, with one red light lit up across the bottom. The greens represent all sources that are sending to or have access to /dev/dsp. Turn them ALL OFF except for anything labeled with a RED right triangle across the top, and the master volume and PCM sliders. Of the Red right triangles, there are only two that seem to affect recording on my system: Ogain and Recmon. These need to have green lights. If you have these two sliders, leave them green and turn the other red triangles off. This is important. The controls vary from soundcard to soundcard, depending on it's features. You may need to experiment; but this section gives you the basic blueprint. Your soundcard may be different in the next step too, so again you may have to experiment. Notice that the Master and PCM sliders are almost to the top; they work just fine right there. Move your Gain sliders almost to the bottom; the same degree that the Master/PCM sliders are from the top. Know what I mean here? This is the proper degree of adjustment for my system; I assume here that it will work for you as well. Now let's deal with the red lights across the bottom. This represents your recording source; and There Will Only Be One. Yep, just like Highlander. Your One needs to be Master, so make sure that one is lit up under the Master slider, and all the other ones are dark. What am I doing and why, you ask? Well, noise is a real problem. By carefully targeting what channels are active and deactivating the majority of them, you are assured ( or given a higher probability of getting) a noise free recording. If a channel is not on, you can't get static from it. Now we prep Realplayer for testing. Open up an Eterm or terminal of your choice and type "realplay" at the command line. Go ahead and give it bogus information so it won't bug you anymore. Go into Preferences-Support and disable "Supply connection-quality data to RealServers", so unsolicited packets will not be sent out of your machine. Under "Sound Card Compatibility", make sure that 16 bit is not disabled (unless you need it to be). Under "Audio Driver Options" the best way to go is to run RealPlayer under Esd, or Esound support. This means that the Esd daemon should be running. If not, you can probably stay with the native drivers option and things will work; I just sometimes like doing several things at once, and Esd allows one to do that without locking the sound device. Stuff like playing a late nite game and listening to news, if you arent recording. Now close Realplayer; I think that's everything. OK, this is the acid test. Pull up konqueror and just for a test go to the following URL: http://mediaframe.yahoo.com/launch?lid=rna-14-p.924052&p=radio&c=affiliate&f=278153903&.abg=ffffff&.small=1&.ch_cursel=&.rst=a&.adw=http%3a//www.broadcast.com/radio/talk/wtaw/wtaw_dw.htm&.image=http%3a//us.i1.yimg.com/us.yimg.com/i/radio/st/WTAW.gif&a=0,30 Pick Realplayer and the 28.8 speed internet connection. After you accept settings, you will get a download dialog. Tell it to "open". When you get the "open with" dialog, type in "realplay" and hit OK. Now Realplayer should come up and you should be connected to WTAW radio out of College Station, Texas. You should be hearing sound out of your speakers now. If not, double check your Kmix settings. Now dfox is rubbing his hands together cause he knows it's going to get interesting. ;) OK, in your Eterm or fav terminal program, and also while you are in your ~/tmp dir or similar, you want to enter the following: sox -V -c2 -r 44100 -t ossdsp -w -s /dev/dsp test.ogg This should start (transparently) recording your net broadcast whilst you are simultaneously listening to it. If you want to terminate the recording to listen to the ogg file, hit cntrl-c and sox will properly terminate the file. Explanation of the above settings: -V tells you what Sox is doing as it does it. Otherwise you don't see too much. -c2 sets up the recording for two channels in stereo. -r 44100 samples the sound data from /dev/dsp at CD quality rate. -t ossdsp -w -s /dev/dsp is a system of qualifiers that tells sox what kind of device file it should be listening to and what to expect from the data type that's coming from it; i.e., your soundcard's digital data stream.2 test.ogg looks innocuous, but the suffix of the filename is telling sox what kind of file you want to record! That's right, there's no extra qualifier for the type of output file; it interprets what you want from the output file suffix. Thus, if you want wav, you put test.wav. And sox records that filetype. After you've recorded for a while, hit cntrl-c in the terminal window that you started sox in, and you'll get a command line. Now enter xmms test.ogg And listen to what you've got. Hopefully you've got an ogg that recorded at 370kbps or so. If you like, while xmms is running, you can run the sox command line above in a terminal window and make a recording of your recording as it plays back. Not that it's useful, it's just a demo of what's possible. Right now I'm working on editing the oggfiles to cut out unwanted segments; I'll cover that in the next chapter, unless someone has an editing procedure that they want to share. LX -- °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° Kernel 2.4.18-6mdk Mandrake Linux 8.2 Enlightenment 0.16.5-11mdk Evolution 1.0.2-5mdk Registered Linux User #268899 http://counter.li.org/ °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°° -- Graham Watkins For me, morning begins when I realize that the soft warm body curled up next to me is a cat. (Kinky Friedman - Frequent Flyer) Registered Linux user number 265254 http://counter.li.org
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com