View Single Post
Old 07-07-2007, 11:30 AM   #2 (permalink)
rivviepop
BlackBerry Extraordinaire
 
rivviepop's Avatar
 
Join Date: Dec 2006
Location: san francisco
Model: 8320
PIN: n/a
Carrier: t-mobile
Posts: 2,166
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by erroneus View Post
Just this morning I was attempting to play some very tightly encoded MP3s and it completely crashed my Blackberry.
What are your MP3 details? It would take only a few moments to sit here and start with your crashing format and gently increase (decrease?) the LAME encoding params upwards and test them all out.

Code:
#!/bin/sh

FREQ="8 11.025 12 16 22.05 24 32 44.1 48"
BITS="8 16 24 32"
MODE="s j f d m"

INFILE="input.wav"
OUTFILE="output"
LAME="/usr/bin/lame"

for ii in ${FREQ}; do
  for jj in ${BITS}; do
    for zz in ${MODE}; do
      $LAME -s $ii -b $jj -m $zz $INFILE $OUTFILE_${ii}_${jj}_${zz}.mp3
    done
  done
done

exit 0
Run that code and you get 180 MP3 files to slap on your device and test it out.
__________________
[ Linux & BlackBerry ] http://www.blackberryforums.com/linux-users-corner/
Offline