Taperssection.com

Gear / Technical Help => Ask The Tapers => Topic started by: 1westkc3 on September 22, 2006, 12:34:45 AM

Title: FLAC Seek Table Help
Post by: 1westkc3 on September 22, 2006, 12:34:45 AM
Some time ago in the Rockbox forum there was a thread regarding the absence of seek tables in files converted to FLAC from dBpowerAMP as well as other tools.  The thread provided some detail regarding modification to the metafile string to establish the seek table and gain the ability to FF and RW with FLAC and Rockbox.  It's also my understanding this is the reason upon start-up, replay reverts to the beginning of the track which was playing when the player was stopped.

I have grown sufficiently annoyed with listening to a track 3/4 of the way thru in the car, stopping for gas, drink or other quick task getting back into the car and starting the track from the beginning again (yes, I could extend the idle off time and just pause rather than turn the recorder off and have done that, but that's not ideal to me and I now want a perm solution).  So I'm looking for some specific and detailed instructions on how exactly to go about making the fix.

I emphasize specific and detailed as I am in no manner a programmer and therefore would need these instructions in a way that (as Denzel said in Philadelphia) a six year old could understand.  To illustrate my naiveté, I don't have a clue as to how I would even access the metafile code in order to begin.

So, if some kind sole out there has the knowledge and patience to detail this process, I would greatly appreciate it.  Or, if there's another fix of lesser complexity, that would be great.
Title: Re: FLAC Seek Table Help
Post by: pigiron on September 22, 2006, 10:50:31 PM

http://www.hydrogenaudio.org/forums/lofiversion/index.php/t47524.html (http://www.hydrogenaudio.org/forums/lofiversion/index.php/t47524.html)
Title: Re: FLAC Seek Table Help
Post by: 1westkc3 on September 23, 2006, 01:50:16 AM
Thanks for the link.  As I mentioned, I know nothing so when the instructions say "change the path to metaflac.exe" in the dtring below,  where  exactly is the path in the code?  Lokks to me like it is already "meteflac.exe".

set metaflac="C:\Program Files\flac-1.1.2-win\bin\metaflac.exe"
for /r "." %%d in (.) do (cd %%d & for %%f in (*.flac) do %metaflac% --add-seekpoint=5s "%%f")
Title: Re: FLAC Seek Table Help
Post by: pigiron on September 23, 2006, 09:58:57 PM
1) Download and install the flac program from http://flac.sourceforge.net/download.html (http://flac.sourceforge.net/download.html) paying attention to which folder it's installed into... or if it's already installed, then use Start -> Search to find where the metaflac.exe file is installed on your hard drive.

2) Using a text editor, modify the set metaflac="C:\Program Files\flac-1.1.2-win\bin\metaflac.exe"  line of the script so that it matches where the metaflac.exe file exists on your hard drive.

Example: If the metaflac.exe file is installed in the C:\foo\bin folder, then edit the first line in the script to be:  set metaflac="C:\foo\bin\metaflac.exe"

When you run the script, if you get a 'metaflac.exe' is not recognized as an internal or external command, operable program or batch file message... then go to step 1 ;D
Title: Re: FLAC Seek Table Help
Post by: live2496 on September 23, 2006, 10:13:36 PM
If you don't mind reconverting your tracks you can also use flac.exe.

To generate a seekpoint every 5 seconds while encoding...

flac.exe filename --seekpoint=5s

It might be better to use metaflac on existing tracks and use my suggestion on new ones.

Gordon
Title: Re: FLAC Seek Table Help
Post by: 1westkc3 on September 24, 2006, 12:00:11 AM
Got it.  My problems seemes to stem from a missing cab file.  Once I tried another text editor, the process worked like a charm.  Thanks all for the assistance and petience...TSers are the best.
Title: Re: FLAC Seek Table Help
Post by: pigiron on September 24, 2006, 02:21:32 AM
It might be better to use metaflac on existing tracks and use my suggestion on new ones.

Gordon is right... only the source code knows what will happen if you try to add a seek table to a flac file that already has one ???