Portál AbcLinuxu, 21. prosince 2025 13:32
#! /bin/bash
for f in *.mp3; do
bitrate=`mp3info -p "%r" "$f"`
if [[ $bitrate != "128" ]]
then
title=`mp3info -p "%t" "$f"`
track=`mp3info -p "%n" "$f"`
artist=`mp3info -p "%a" "$f"`
album=`mp3info -p "%l" "$f"`
year=`mp3info -p "%y" "$f"`
genre=`mp3info -p "%g" "$f"`
lame --mp3input --tt "$title" --tn "$track" --ta "$artist" \
--tl "$album" --ty "$year" --tg "$genre" "$f" "$f.out"
mv -f "$f.out" "$f"
fi
done
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.