Re: [expert] Recording Net-Radio Broadcasts (Chpt 1)
On Tue, 2002-06-25 at 11:21, Randy Kramer wrote: Lyvim: I've taken the liberty of starting a WikiLearn page to address this subject, and I've included links to these posts in the Mandrake archives. If you'd actually like to put the content of your posts on that WikiLearn page (or a few WikiLearn pages), please feel free to do so. If you have any comments, suggestions, or objections to what I've done, please let me know, or, edit the page yourself, as it is a wiki. regards, Randy Kramer I'd be honored; thanks, Randy! LX -- °°° Kernel 2.4.18-6mdk Mandrake Linux 8.2 Enlightenment 0.16.5-11mdkEvolution 1.0.2-5mdk Registered Linux User #268899 http://counter.li.org/ °°° Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Recording Net-Radio Broadcasts (Chpt 1)
Lyvim Xaphir wrote: I'd be honored; thanks, Randy! Your welcome, thank you! Randy Kramer Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Recording Net-Radio Broadcasts (Chpt 1)
dfox wrote: Randy Kramer wrote: Oops! http://twiki.org/cgi-bin/view/Wikilearn/RecordingNetRadioBroadcasts glad to see my name up in there :) Anyway, I got to the page, and it actually works, although I used other sources for testing because the Dallas TX radio station was just silence when I tried it. Hope I'm not confusing anyone. Just to set the record straight, the WikiLearn page contains only a link to the post by Lyvim in the archives. Perhaps at some time in the future that will change. And, I'm confused, don't think I see dfox on the WikiLearn page -- should it be there? regards, Randy Kramer Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Recording Net-Radio Broadcasts (Chpt 1)
Lyvim: I've taken the liberty of starting a WikiLearn page to address this subject, and I've included links to these posts in the Mandrake archives. If you'd actually like to put the content of your posts on that WikiLearn page (or a few WikiLearn pages), please feel free to do so. If you have any comments, suggestions, or objections to what I've done, please let me know, or, edit the page yourself, as it is a wiki. regards, Randy Kramer Lyvim Xaphir wrote: This is what it takes to record broadcasts off the net in ogg format. Using Sox (which is the best sound util ever made) you can also record just about anything that your soundcard puts out; VERBATIM. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Recording Net-Radio Broadcasts (Chpt 1)
On Tuesday 25 June 2002 11:21, Randy Kramer wrote: I've taken the liberty of starting a WikiLearn page URL? -- Hoyt http://www.maximumhoyt.com Fix it until it breaks. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Recording Net-Radio Broadcasts (Chpt 1)
Hoyt wrote: On Tuesday 25 June 2002 11:21, Randy Kramer wrote: I've taken the liberty of starting a WikiLearn page URL? Oops! http://twiki.org/cgi-bin/view/Wikilearn/RecordingNetRadioBroadcasts Randy Kramer Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[expert] Recording Net-Radio Broadcasts (Chpt 1)
I promised this a while back and got sidetracked by RL. ;) So here it is. This is what it takes to record broadcasts off the net in ogg format. Using Sox (which is the best sound util ever made) you can also record just about anything that your soundcard puts out; VERBATIM. Sox is a deceptively innocuous utility that endows the user with a huge amount of power and flexibility with sound streams that are routed thru the soundcard. By trade and public presentation, Sox was originally touted as a file format conversion utility. However Sox's real power comes in it's ability to snatch an audio stream from /dev/dsp and convert it into the file format of your choice. In this case, our choice will be Ogg Vorbis. There are fully 24 file formats listed in the Sox man page. You can encode to or convert between all of them. Oddly enough, Ogg Vorbis is not amongst them; at least in the LM82 version of the Sox man pages. The first wrinkle that we encounter is the fact that Sox as installed from the Mandrake LM81/82 CD's does NOT encode Ogg capability. Ogg Vorbis encoding/conversion is indeed supported under Sox, however you need to read the source documentation to catch this clue. To his credit, the current maintainer of Sox Chris Bagwell does give Ogg an honorable mention on his website. Which is: http://home.sprynet.com/~cbagwell/sox.html In order to get Ogg capability we must compile it in. Unfortunately, running rpm --rebuild on sox-12.17.1-3mdk.src.rpm will not do this; it will not detect installed oggvorbis libraries, and you will be forced to do two things. One is to recompile the source code. The other is that you must have the ogg vorbis libraries installed. The next time somebody redoes the sox source rpm it would be nice if their configure routine checks for Ogg Vorbis libs.(HINT HINT nudge nudge) The devels may not be needed, I haven't checked. But this is what I have installed according to Rpmdrake: libogg0 libogg0-devel libvorbis0 libvorbis0-devel If you don't have those, do a search for them using rpmdrake and get them installed off of your installation cd's. Next, make sure that you have the rpm version of Sox installed. Yes I know I just said that the rpm binary version of Sox does not support Ogg; however we need to maintain some semblance of order with regard to the RPM database and in order to do that we are going to cheat a little, since we must deal with a direct source to binary install. Make sure you have the Sox rpm installed. Now we go to CVS and download the latest Sox code. That's right, if we've got to go pure source we might as well go to thewell, the source. Hehe. Go to your home or main /tmp directory and enter the following as a non-root user in a terminal command line: cvs -d :pserver:[EMAIL PROTECTED]:/cvsroot/sox login (when prompted for a password here hit enter) cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvsroot/sox co sox And after the last line you should see a sox directory created and the CVS download will commence. After you have the entire CVS tree, su to root. Make sure you su to root. Descend into the sox directory and enter the following two commands: ./configure make After that we need to edit the Makefile that we just made. Do vi Makefile If you are not a member of the one true vi faith, you may be able to scrape by with another of the lesser heretic faiths. I personally don't recommend it, however. In any case, at the beginning of the Makefile you will see the following: __ # Makefile.in # # Processed by configure into a Makefile. We assume the environment in # which we are running is a POSIX'y environment. Thus, all of the standard # POSIX tools are available. # # Paths srcdir = . prefix = /usr/local exec_prefix = ${prefix} bindir = ${exec_prefix}/bin libdir = ${exec_prefix}/lib mandir = ${prefix}/man includedir = ${prefix}/include *snip** Change prefix = /usr/local to prefix = /usr. That's all. Save and exit. Now from the sox CVS dir do make install And you will see stuff happen. You should be root as you do make install. Now do sox -h and you should see the following: _ [elx@tamriel elx]$ sox -h sox: Version 12.17.3 Usage: [ gopts ] [ fopts ] ifile [ fopts ] ofile [ effect [ effopts ] ] gopts: -e -h -p -v volume -V fopts: -r rate -c channels -s/-u/-U/-A/-a/-i/-g/-f -b/-w/-l/-d -x effect: avg band bandpass bandreject chorus compand copy dcshift deemph earwax echo echos fade filter flanger highp highpass lowp lowpass map mask pan phaser pitch polyphase rate resample reverb reverse silence speed stat stretch swap synth trim vibro vol effopts: depends on effect Supported file formats: aiff al alsa au auto avr cdr cvs dat vms gsm hcom la lu maud nul ossdsp prc raw sb sf sl smp sndt sph 8svx sw txw ub ul uw voc vorbis wav wve
Re: [expert] Recording Net-Radio Broadcasts (Chpt 1)
This is what it takes to record broadcasts off the net in ogg format.=20 Using Sox (which is the best sound util ever made) you can also record just about anything that your soundcard puts out; VERBATIM.=20 Lyvim - this is way cool - keep it coming. I am a bit skeptical that it would work, since xmms is playing the file in the background but hell, it's going to be worth a try. :) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Recording Net-Radio Broadcasts (Chpt 1)
dfox wrote on Mon, Jun 24, 2002 at 08:30:49PM -0700 : There is a wrinkle - first you can issue ./configure --prefix=/usr instead of editing the Makefile, but that's a pretty minor issue. Sox's idea of where the manual pages differs from where Makdrake puts them,though. If you do a 'man sox' after you do an install, you'll think the old version is still there :(. ./configure --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib \ --sysconfdir=/etc This comes from the macro that is used to build rpms. -- Todd Lyons -- MandrakeSoft, Inc. http://www.mandrakesoft.com/ UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn Cooker Version mandrake-release-8.3-0.2mdk Kernel 2.4.18-20mdk msg55700/pgp0.pgp Description: PGP signature
Re: [expert] Recording Net-Radio Broadcasts (Chpt 1)
Lyvim - this is way cool - keep it coming. I am a bit skeptical that it would work, since xmms is playing the file in the background but hell, it's going to be worth a try. :) Following up: There is a wrinkle - first you can issue ./configure --prefix=/usr instead of editing the Makefile, but that's a pretty minor issue. Sox's idea of where the manual pages differs from where Makdrake puts them,though. If you do a 'man sox' after you do an install, you'll think the old version is still there :(. So we need to clean up: sox puts the man pages in /usr/man/man1 instead of /usr/share/man/man1. By default, they are not compressed, and Mandtrake compresses its manpages using bzip2 compression. So as root, you'll need to cd into /usr/share/man1 and move the sox manpages to /usr/share/man/man1: cd /usr/man/man1 mv sox.1 soxmix.1 play.1 /usr/share/man/man1 Then compress sox.1: cd /usr/share/man/man1 rm -f sox.1.bz2 bzip2 sox.1 rm -f play.1.bz2 bzip2 play.1 # play is pretty short, so bzip2 is optional, but you don't want to carry two copies of the same manpage... Since 'rec' is a link to the play manpage, you'll need to re-establish the right links. 'soxmix' is also a link to the 'sox' manpage. rm -f soxmix.1* rec.1* ln -sf sox.1.bz2 soxmix.1.bz2 ln -sf play.1.bz2 rec.1.bz2 Now you should have updated manual pages in the rigth place. One other slight thing - your original post has a buch of =20 characters at ends of lines. This may cause it to be harder to read (ex 'login' becomes 'login=20'.) Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [expert] Recording Net-Radio Broadcasts (Chpt 1)
On Mon, 2002-06-24 at 23:30, dfox wrote: Lyvim - this is way cool - keep it coming. I am a bit skeptical that it would work, since xmms is playing the file in the background but hell, it's going to be worth a try. :) Following up: There is a wrinkle - first you can issue ./configure --prefix=/usr instead of editing the Makefile, but that's a pretty minor issue. Sox's idea of where the manual pages differs from where Makdrake puts them,though. If you do a 'man sox' after you do an install, you'll think the old version is still there :(. You know, I had recompiled the latest sox srpm, which matches the latest CVS download, and installed the resultant rpm. Thus I was seeing man pages with the same version as the CVS sox. And I wasn't watching when sox installed it's man pages, so I completely missed all this. I've been depending on the source documentation moreso than the man pages; since you caught this things should be much better. So we need to clean up: sox puts the man pages in /usr/man/man1 instead of /usr/share/man/man1. By default, they are not compressed, and Mandtrake compresses its manpages using bzip2 compression. So as root, you'll need to cd into /usr/share/man1 and move the sox manpages to /usr/share/man/man1: cd /usr/man/man1 mv sox.1 soxmix.1 play.1 /usr/share/man/man1 Then compress sox.1: cd /usr/share/man/man1 rm -f sox.1.bz2 bzip2 sox.1 rm -f play.1.bz2 bzip2 play.1 # play is pretty short, so bzip2 is optional, but you don't want to carry two copies of the same manpage... Since 'rec' is a link to the play manpage, you'll need to re-establish the right links. 'soxmix' is also a link to the 'sox' manpage. rm -f soxmix.1* rec.1* ln -sf sox.1.bz2 soxmix.1.bz2 ln -sf play.1.bz2 rec.1.bz2 Excellent and competent help, dfox. Some extra points here you might want to know about... soxexam.1.bz2 is still in /usr/share/man/man1 and needs to be deleted soxexam.1 is in /usr/man/man1 and needs to be moved and compressed; thus: cd /usr/share/man/man1 rm soxexam.1.bz2 mv /usr/man/man1/soxexam.1 . (Everyone else; don't forget or miss the last space-dot on this move command line) bzip2 soxexam.1 And finally: cd /usr rm -rf man Deleting what the source to binary install put in place, since we are finished. Now you should have updated manual pages in the right place. One other slight thing - your original post has a bunch of =20 characters at ends of lines. This may cause it to be harder to read (ex 'login' becomes 'login=20'.) Major yeechhh!! I will have to be careful how I paste into the Evolution windows in the future; thanks for letting me know. I thought I was broadcasting straight text. I'll check the settings; this Evolution install is just a little over a week and 1/2 old. BTW, I followed your instructions (and added mine), and guess what; the man pages now reflect an entire section on Ogg Vorbis. Very primo cool. Thanks, dfox. :) LX -- °°° Kernel 2.4.18-6mdk Mandrake Linux 8.2 Enlightenment 0.16.5-11mdkEvolution 1.0.2-5mdk Registered Linux User #268899 http://counter.li.org/ °°° Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com