Comment 9 for bug 162470

Revision history for this message
Loïc Martin (loic-martin3) wrote :

http://amarok.kde.org/forum/index.php/topic,13977.msg22328.html#msg22328

[quote]#!/bin/sh

if [ ! "$1" ]
then
  find . -name "*.flac" -exec $0 {} \;
else
  metaflac --list --block-type=SEEKTABLE "$1" | grep -q SEEKTABLE

  if [ $? -ne 0 ]
  then
    echo "No SEEKTABLE in $1, generating..."
    metaflac --preserve-modtime --add-seekpoint=1s "$1"
  else
    echo "$1 has a SEEKTABLE. No action required."
  fi
fi

Run this bad boy at the top of a tree with a bunch of FLACs and you're on your way.[/quote]

I just modified the seek points to be every 1s (the post advises every 10s) because I didn't notice any slowdown and the file size is more or less the same (didn't notice a difference on a 10Go directory).