LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-14-2006, 09:47 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
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.
 
Old 04-14-2006, 10:06 PM   #2
rickh
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: Reputation: 62
Audacity frequency adjustment is right on the front page.
 
Old 04-14-2006, 10:23 PM   #3
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
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?
 
Old 04-17-2006, 11:41 AM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
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 11:45 AM.
 
Old 04-17-2006, 05:36 PM   #5
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
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?
 
Old 04-18-2006, 05:36 AM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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
 
Old 04-18-2006, 07:46 AM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
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"
 
Old 04-18-2006, 07:55 AM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Frequency Out of Range. pagalbilal Red Hat 5 03-19-2006 10:22 AM
frequency? Azeroth Linux - Software 1 06-27-2005 09:55 AM
Monitor Frequency manuagri Linux - Hardware 3 02-28-2005 05:11 AM
Frequency Range ViPeRDeSiGnZ Linux - Newbie 11 01-24-2004 12:23 PM
rippers, mp3s and mp3s.... (?) bxb32001 Linux - General 0 07-14-2001 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration