# Tiny_MP3_Tunes - Shell Script to produce tiny MP3 itunes. Useful for Ipods. # # Operating System - (Slackware) Linux - Get DVD at http://store.slackware.com # # ...useful supplements: http://www.xiph.org/cdparanoia/down.html # http://www.mplayer.hu # # Step 0, under Hand control, get the (latest) shell script "Tiny_MP3_Tunes" # # wget members.shaw.ca/yehudi2/Tiny_MP3_Tunes # to get this batch file # chmod 755 Tiny_MP3_Tunes # make batch file executable # su # become SuperUser (optional) # ./Tiny_MP3_Tunes # this builds pseudo-MP3 generator # # Step 1, Set the Version # version="lame-3.99.3" # # Step 2, Extract the Source Archive. # wget members.shaw.ca/yehudi2/$version.tar.bz2 -O $version.tar.bz2 # # Step 3, extract the (directory) tree from the Bzip2 tar archive # tar -jxvf $version.tar.bz2 # # Step 4, enter the tree at the correct node (version independant) # cd $version # # Step 5, build the Makefile (relatively independant of Linux distribution) # ./configure --disable-shared --enable-static # # Step 6, make LAME psueo-MP3 encoder but do not install it yet # make # # Step 7, strip LAME of debug and traceback info to make it smaller # strip frontend/lame # # Step 8, install LAME in directory(s) (User if non-root, else System) # if test "$UID" = "0"; then make install else cp -p frontend/lame ~ fi # # Step 9, build "tiny" command file # if test "$UID" = "0"; then prefix1="" prefix2="/usr/local/bin" else prefix1="~/" prefix2=~ fi # echo \# This script file makes MP3 file \"myItune.mp3\" tiny >tmp1$$ echo \# \ \ \ tiny \"myItune.mp3\" >tmp2$$ echo if test \"\$1\" = \"\"\; then echo \\ \\ \\ tiny \\\"myItune.mp3\\\"\; else >tmp3$$ echo \ cp -p -v \$1 \$1.bak >tmp4$$ echo \ "$prefix1"lame --decode \$1 tmp\$\$.wav >tmp5$$ echo \ "$prefix1"lame -b 32 -o -q 2 -t --ta Digitally\\ Remastered\\ O/S\\ Linux --tc Where\\ \\ --\\\>\\ www.yaakov.ca --tg Ethnic --tl Script\\ --\\\>\\ Tiny_MP3_Tunes --tt \$1 --ty 1984 tmp\$\$.wav \$1 >tmp6$$ echo \ rm -f tmp\$\$.wav >tmp7$$ echo fi >tmp8$$ # cat tmp1$$ tmp2$$ tmp3$$ tmp4$$ tmp5$$ tmp6$$ tmp7$$ tmp8$$ >$prefix2/tiny # chmod 755 $prefix2/tiny # rm tmp1$$ tmp2$$ tmp3$$ tmp4$$ tmp5$$ tmp6$$ tmp7$$ tmp8$$ echo echo To make mp3 file \"myItune.mp3\" tiny, execute the following echo echo \ \ \ tiny \"myItune.mp3\" echo # # Step 9, exit - all done # exit # # To change (usually reduce) bit rates of an MP3 (Itune) file "myItune.mp3" # # lame --decode myfile.mp3 love.wav # # lame -b XX love.wav myItune.mp3 # # where # # XX is your new Bitrate <24,32,48,56,80,96,112,128, etc.> # # For more options, such as altering encoding or Signatures (tags) of MP3 files # # lame --longhelp|less # # To make a really tiny Itune, execute shell script "tiny" as follows # # tiny myItune.mp3 # # Have fun, boys and girls...