Seeking in flac files

Mark Kretschmann kretschmann at kde.org
Wed Dec 9 07:20:13 UTC 2009


On Wed, Dec 9, 2009 at 5:15 AM, Maciej Mrozowski <reavertm at gmail.com> wrote:
> On Tuesday 08 of December 2009 23:58:51 Tycho Andersen wrote:
>> On Tue, 8 Dec 2009, Thomas Klausner wrote:
>> > 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...)

It's xine. Also: Alternatives (iow: A better Phonon backend) are in
the pipeline.

-- 
Mark Kretschmann
Amarok Developer
Fellow of the Free Software Foundation Europe
www.kde.org - amarok.kde.org - www.fsfe.org



More information about the Amarok mailing list