[Flac-dev] Error seeking with --skip

Michael Moore michael_moore at csnw.com
Sat Feb 3 08:45:37 PST 2001


<PRAISE>
First, thanks to everyone for their contributions to flac.  It is
obviously a significant piece
of work with very good performance.  For me, the open-source and
anti-copy-protection
principals of the project make it the best choice among lossless
compressors even if there
are closed-source projects with marginally better compression.  I firmly
believe that
the open-source process will further improve those comparisons as
development continues.
</PRAISE>
<REAL-CONTENT>

Unfortunately, my first contribution will be to ask about an error.  :-)

I am encoding files with "-8 -r 99" (e.g. flac -8 -r 99 1.wav 1.3.flac)
using version 0.6
under Linux.

On one of my flac files, however, I was not able to seek exactly 2 minutes
into the file due
to the following error:

$ flac --skip 5280000 -d 1.3.flac 1.1.wav
...
1.3.flac: ERROR seeking while skipping bytes

With a little experimentation, I was able to determine that I cannot seek
to samples
5278573  - 5280363.  Seeking to samples before and after that yield proper
results
and if I seek to before that range, the output contains correct
decompressed audio for the
range to which I cannot seek.

Obviously, the error only presents a problem when seeking to this .04
second and I could
write my script to recognize this error and advance by a few samples if it
gets this error,
but I thought it was worth a query.

I tried recompressing the file and got the same resulting flac file and
the same seeking
error for this range.

Am I missing something about my arguments to flac?  Is there something
curious about
this flac file? Is there a way to get some information about this tiny
part of this 30mb
flac file?

Thanks sincerely,

-Michael





More information about the Flac-dev mailing list