<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Mp3 on Michael’s Domain</title><link>https://jeltsch.org/en/tags/mp3/</link><description>Recent content in Mp3 on Michael’s Domain</description><generator>Hugo</generator><language>en-us</language><copyright>Copyright © 2002 - 2026 Michael Jeltsch.</copyright><lastBuildDate>Fri, 24 Jul 2026 00:18:18 +0300</lastBuildDate><atom:link href="https://jeltsch.org/en/tags/mp3/index.xml" rel="self" type="application/rss+xml"/><item><title>Changing sound volume or bitrate of mp3 files with lame</title><link>https://jeltsch.org/en/changing_sound_volume_or_bitrate_of_mp3_files_with_lame/</link><pubDate>Wed, 23 May 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/changing_sound_volume_or_bitrate_of_mp3_files_with_lame/</guid><description>&lt;p&gt;Sometimes the recording level of mp3 files is very low. If I do some jogging next to a busy road, I cannot hear anything even when the sound volume is on the max. Therefore I have to increase the volume of the mp3 file. Using lame you can do it with the following script: &lt;code&gt;#!/bin/bashwhile [ $# -ge 1 ]; doinfn=$1outfn=&amp;quot;${infn%%.mp3}_3x.mp3&amp;quot;echo $outfnlame --mp3input -v --scale=3 $infn $outfnshift 1done&lt;/code&gt;The only problem is that filnames with blank spaces make this script to collapse. Have to figure out something else. Also the bitrate can be modified in this way:&lt;code&gt;#!/bin/bashwhile [ $# -ge 1 ]; doinfn=$1outfn=&amp;quot;${infn%%.mp3}_LQ.mp3&amp;quot;echo $outfnlame --mp3input -V 9 $infn $outfnshift 1done&lt;/code&gt;-V 9 is the lowest bitrate/quality -V 0 is the highest.&lt;/p&gt;</description></item><item><title>Grip configuration (%) switches for file formats</title><link>https://jeltsch.org/en/grip_configuration_switches_for_file_formats/</link><pubDate>Wed, 04 Apr 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/grip_configuration_switches_for_file_formats/</guid><description>&lt;p&gt;Grip is a GTK-based CD-player and CD-ripper / MP3 encoder. Here is a list of the &amp;lsquo;%&amp;rsquo; switches used in command-lines.&lt;/p&gt;</description></item><item><title>Re-encoding mp3 files into smaller files with lame</title><link>https://jeltsch.org/en/re_encoding_mp3_files_into_smaller_files_with_lame/</link><pubDate>Tue, 06 Mar 2007 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/re_encoding_mp3_files_into_smaller_files_with_lame/</guid><description>&lt;p&gt;My old mp3 player broke quite a while ago and now I am using a very primitive one that has only 128 MB and which refused to play some mp3s. In order to fit more podcasts into the memory and to play back those unplayable mp3 files I re-encode them with lame:&lt;code&gt;lame --mp3input -V 3 --strictly-enforce-ISO --resample 12 original.mp3 reencoded.mp3&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Shell script to downsample podcasts</title><link>https://jeltsch.org/en/shell_script_to_downsample_podcasts/</link><pubDate>Sat, 23 Dec 2006 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/shell_script_to_downsample_podcasts/</guid><description>&lt;p&gt;I have a very basic mp3 player with only 128 MB memory. I mostly listen to podcasts which are automatically downloaded by Amarok into the folder ~/.kde/share/apps/amarok/podcasts/data. In order to fit many of them to the limited memory and to have them available from anywhere, I have been writing a script that automatically downsamples them as they arrive and puts them online to my web server. The script is executed hourly by the crontab. The two relevant files look like this:&lt;/p&gt;</description></item><item><title>Using lame to create mp3s from wavs</title><link>https://jeltsch.org/en/using_lame_to_create_mp3s_from_wavs/</link><pubDate>Tue, 24 Oct 2006 00:00:00 +0000</pubDate><guid>https://jeltsch.org/en/using_lame_to_create_mp3s_from_wavs/</guid><description>&lt;p&gt;Using 
 &lt;a href="http://audacity.sourceforge.net/" target="_blank" rel="noopener noreferrer nofollow"&gt;Audacity&amp;nbsp;






 
 
 
 &lt;svg class="svg-inline--fa fas fa-up-right-from-square fa-2xs" fill="currentColor" aria-hidden="true" role="img" viewBox="0 0 512 512" overflow="visible"&gt;&lt;use href="#fas-up-right-from-square"&gt;&lt;/use&gt;&lt;/svg&gt;&lt;/a&gt;
 I converted one of the ripped WAVs into an MP3. However there was no possibility to batch convert WAV files. Thus I started to use lame from the command line. I created a shell script (encode.sh):&lt;code&gt;while [ $ -ge 1 ]; do infn=$1 outfn=&amp;quot;${infn%%.wav}.mp3&amp;quot; echo $outfn lame -v $infn $outfn shift 1done&lt;/code&gt; It does the batch converting:&lt;code&gt;encode.sh *.wav&lt;/code&gt; The -v switch cause lame to encode using variable bitrate. -h would do fixed bitrate at 128, for other bitrates use e.g. -b 160. The -V 0 switch uses variable bitrate encoding with highest quality, while -V uses the lowest quality.&lt;/p&gt;</description></item></channel></rss>