Spam: Re: [OT] MP3: Compressioni
Vito wrote:
> Marco Casavecchia Morganti wrote:
>
>
>>Prova con una variante del genere ale righe 5 e 6:
>>
>>[ $ID_AUDIO_BITRATE -ge 128000 ] && cd $(dirname $file) && \
>>lame -m s -b 128 $(basename $file)
>>
>
> Nada sempre setsso errore però stavolta è -ge :D
>
Che stupido! ;O)
..Non mi ero accorto che in quello script ID_AUDIO_BITRATE non viene
impostato.. per quello ti da errore... :OP
Dunque, riprova così:
find mp3_dir -iname '*.mp3' | while read file
do
ID_AUDIO_BITRATE=$(echo quit | mplayer -slave -identify \
-ao null -vo null -nosound -novideo $file 2>/dev/null | \
grep ID_AUDIO_BITRATE)
[ $ID_AUDIO_BITRATE -ge 128000 ] && cd $(dirname $file) && \
lame -m s -b 128 $(basename $file)
done
NOTA: Non posso provarlo sul mio sistema.. quindi scusa in anticipo
eventuali castronerie.. :O)
--
Saluti By MCM.
<< Unix is the most user friendly system I know, the point is that it is
really selective about who is indeed its friend. >>
Reply to: