Seeking in flac files
Maciej Mrozowski
reavertm at gmail.com
Wed Dec 9 04:15:52 UTC 2009
On Tuesday 08 of December 2009 23:58:51 Tycho Andersen wrote:
> On Tue, 8 Dec 2009, Thomas Klausner wrote:
> > Hi!
> >
> > I just tried seeking to a different file location in a flac file in
> > amarok-2.2.1, and it wouldn't let me -- I could drag the position bar
> > there, but when I dropped it, playback would just stop and the
> > position bar would be back where it started from.
> >
> > Does anyone else see this?
>
> This happens because your flac files don't have seekpoints, which
> Amarok uses to seek around inside the track. You can add seekpoints to
> your flack files (assuming you have metaflac) like this:
>
> metaflac --add-seekpoint=1s *.flac
>
> Alternatively, if you have a directory structure full of flac files:
>
> find . -type f -regex '.*flac' -exec metaflac --add-seekpoint=1s '{}' \;
Apparently either xine-lib or phonon is weak link here as mplayer for instance
doesn't need explicitly defined seek points (but it doesn't use libFLAC for
encoding).
(And while being the best media player available, it's a shame it doesn't
provide any API...)
--
regards
MM
More information about the Amarok
mailing list