This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Can't Fast-Forward FLAC on Linux

Tags: None
(comma "," separated)
michiel
Registered Member
Posts
3
Karma
0

Can't Fast-Forward FLAC on Linux

Sun Apr 22, 2007 9:11 pm
I can't fast-forward/search FLAC files on Linux. Is that normal? MPlayer can do it, it says it uses ALSA and FFmpeg FLAC Audio Decoder. Amarok uses ALSA and xine, that's all I know.
vladsinger
Registered Member
Posts
1
Karma
0
I have the same problem with Amarok 1.4.5 on KDE 3.5.6-9.fc7 (Fedora). When I try to use the slider bar, the marker jumps back to a few seconds after the original position in the song. The sound also cuts out until the track is stopped and started again from the beginning. It's a little annoying, when I'm trying to find a particular spot
in a 16 minute piece. This happens under the xine engine, I don't think I have any others installed.  :confused:
nikosapi
Registered Member
Posts
1
Karma
0
Same here, I recently ripped all my music to flac and I can't seek in those tracks.
I'm using OpenSuse 10.2, amarok-1.4.4-47.1, amarok-xine-1.4.4-47.1
CompactDestruction
Registered Member
Posts
2
Karma
0
Hi I have this same problem is there a solution?

I am on Ubuntu 7.04 using xine, all other players can seek through the same files.
JasonD
Registered Member
Posts
2
Karma
0
I've found Amarok won't seek if the file doesn't have any seek points.

If metaflac --list --block-type=SEEKTABLE file.flac doesn't return anything, metaflac --add-seekpoint=10s file.flac should fix it.
CompactDestruction
Registered Member
Posts
2
Karma
0
If all other players can seek through them doesn't that mean the files already have seektables?
JasonD
Registered Member
Posts
2
Karma
0
No, it is possible to seek without a seek table, just quite a lot slower as I understand it. I do agree that it should be capable of seeking without one, as other players do. Adding a seek table works for now.
neuromancer
Registered Member
Posts
8
Karma
0
What would the command be to batch add seek tables to a directory structure?
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS
IIRC correctly this is due to an old xine bug thats been fixed for a while.

Thanks for finding the work around.


Amarok Developer
Corwin
Registered Member
Posts
5
Karma
0
neuromancer wrote:What would the command be to batch add seek tables to a directory structure?

You could always use find to blow away all your seek points and then use it again to create them:

find . -name *flac -exec metaflac --remove --block-type=SEEKTABLE {} \;
find . -name *flac -exec metaflac --add-seekpoint=10s {} \;
_saiko
Registered Member
Posts
2
Karma
0
Ian Monroe wrote:IIRC correctly this is due to an old xine bug thats been fixed for a while.

Thanks for finding the work around.


been fixed as in.. it's supposedly already fixed or it still has to be fixed?
what about amarok 2.0 ?

and yes thanks for the workaround :))
nivex
Registered Member
Posts
1
Karma
0
Corwin wrote:
neuromancer wrote:What would the command be to batch add seek tables to a directory structure?

You could always use find to blow away all your seek points and then use it again to create them:

find . -name *flac -exec metaflac --remove --block-type=SEEKTABLE {} \;
find . -name *flac -exec metaflac --add-seekpoint=10s {} \;


Ahh, but why destroy seek points if you already have them.  To save processor time, you only want to write seek points for files that don't have them.  And I thought I'd never find a use for recursion! :)


#!/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=10s "$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.
teratomata
Registered Member
Posts
1
Karma
0
I tried this and can't get either command to work. I get a 'cannot execute binary file' for every flac in the folder, for example:

c: ./Animal Collective 2007.09.10 Strawberry Jam flac/Animal Collective [06] #1.flac: cannot execute binary file

What should I do now?
daho
Registered Member
Posts
1
Karma
0

Re: Can't Fast-Forward FLAC on Linux

Mon Jul 14, 2008 12:41 am
teratomata wrote:I tried this and can't get either command to work. I get a 'cannot execute binary file' for every flac in the folder, for example:

c: ./Animal Collective 2007.09.10 Strawberry Jam flac/Animal Collective [06] #1.flac: cannot execute binary file

What should I do now?


Could it be that you are running Windows? If so, you need to install a unix shell enviroment for Windows in order to run a shell script...
gulogulo
Registered Member
Posts
1
Karma
0
have the same problem as daho . runnig amarok on ubuntu box hardy


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kde-naveen, Sogou [Bot], Yahoo [Bot]