Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-14-2006, 10:47 PM
|
#1
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
|
frequency encoding on mp3s
I am having mplayer dump audio streams into a wav file. These files are 1 hour talks with no music. These are updates to the same subject and in the past these files were encoded to mp3s that have a frequency of 16 kHz and 24 bits. Using lame I type:
lame -s 16 -b 24 file.wav file.mp3
This produces a file with a frequency of only 8 kHz and 24 bits. The audio quality is poor and there is a lot of popping.
What am I doing wrong? Is there a GUI for lame that lets you adjust the frequency? Audacity seems to only let you adjust the bit rate.
|
|
|
04-14-2006, 11:06 PM
|
#2
|
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250
Rep:
|
Audacity frequency adjustment is right on the front page.
|
|
|
04-14-2006, 11:23 PM
|
#3
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
Left bottom corner. I see. I changed it to 16000 and set the preferences to encode at 24 bits and then exported as an mp3. When I played it in xmms I heard a lot of popping sounds and saw that it recorded at 8 kHz and 24 bits. Maybe I need to strip the headers off this wav file so it won't equate 8 kHz with 24 bits? How?
|
|
|
04-17-2006, 12:41 PM
|
#4
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
If you are making a PCM recording of speech, it's dramatic overkill. Why not record natively in MP3? When converting to other formats, the sampling rate should be 44.1KHZ to avoid problems.
8KHz bandwidth for speech is probably not enough unless you can tolerate a lot of pumping and other artifacts. You should be fine with 16KHz and probably not go higher unless you like wasting media.
Bandwidth and bit rate are related but not identical concepts. If you are trying to save the file at a certain bit rate, 20kbps should be fine for speech.
Last edited by Randux; 04-17-2006 at 12:45 PM.
|
|
|
04-17-2006, 06:36 PM
|
#5
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
I'm actually downloading mp3 streams like this:
mms://media1.ccphilly.org/Teaching/Audio/B06_Joshua/SPM20164.mp3
I know the actual mp3 files exist, I just cannot find the download location on the web. What I do is dump this stream to a wav file with mplayer. This produces a huge file which I convert back to an mp3 with lame and tag with Easy Tag (the lame -t switches don't seem to work). Then I delete the wav files from my harddrive and put the mp3s on my mp3 server for streaming or download.
Long process, and if I could find the download location of the mp3 I'd be grateful-any ideas?
|
|
|
04-18-2006, 06:36 AM
|
#6
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
Bit offtopic:
They are using fasttrack on their server, so you may find these media on p2p. Look here: http://www.slyck.com/ft.php
|
|
|
04-18-2006, 08:46 AM
|
#7
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
Quote:
Originally Posted by linuxhippy
I'm actually downloading mp3 streams like this:
mms://media1.ccphilly.org/Teaching/Audio/B06_Joshua/SPM20164.mp3
I know the actual mp3 files exist, I just cannot find the download location on the web. What I do is dump this stream to a wav file with mplayer. This produces a huge file which I convert back to an mp3 with lame and tag with Easy Tag (the lame -t switches don't seem to work). Then I delete the wav files from my harddrive and put the mp3s on my mp3 server for streaming or download.
Long process, and if I could find the download location of the mp3 I'd be grateful-any ideas?
|
I don't understand why you don't just save the mp3. Your link shows that you know the location. Why are you using mplayer if you know the url? Just type the link in a browser and "Save As"
|
|
|
04-18-2006, 08:55 AM
|
#8
|
Senior Member
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247
Rep:
|
I think save as does not work for these type of files. MMSH (mms encapsulated in http) protocol is being used, which is a product of Microsoft.
|
|
|
All times are GMT -5. The time now is 10:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|