Robin Bowes;225030 Wrote:
>
> VERSION=$( metaflac --show-vendor "$1" | awk '{ print $3 }' );
> if [ "${VERSION}" \< "1.1.4" ] ; then
> echo "Processing $1"
> flac --best -V --force --silent "$1"
> else
> echo "Skipping $1"
> fi
> # -------------- end of script ------------------------
> -
> It *doesn't* check if "--best" or "-8" were used if the file was
> created
> with v1.1.4 or later, and it barfs if there are any id3 tags in the
> file
> (there shouldn't be, but it can happen, depending on how you tag your
> files).
>
> R.
Nice script. :)
I'm not sure I like the use of a string comparison for version number
checking, but I guess it works.
I wonder how you could check what flags are used to encode a FLAC file
in the first place.
--
SuperQ
------------------------------------------------------------------------
SuperQ's Profile: http://forums.slimdevices.com/member.php?userid=2139
View this thread: http://forums.slimdevices.com/showthread.php?t=38160
_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/ripping