Hi Jan,
I'm trying to incorporate DR calculation into a FLAC file organisation & renaming script, and in a handful of occasions I'm getting this error:
File "/Volumes/Data/src/discogs/drmeter.py", line 120, in calc_drscore
curData = np.array(data.read(NblockLen), ndmin=2)
File "/opt/homebrew/lib/python3.10/site-packages/soundfile.py", line 867, in read
frames = self._array_io('read', out, frames)
File "/opt/homebrew/lib/python3.10/site-packages/soundfile.py", line 1312, in _array_io
return self._cdata_io(action, cdata, ctype, frames)
File "/opt/homebrew/lib/python3.10/site-packages/soundfile.py", line 1324, in _cdata_io
self.seek(curr + frames, SEEK_SET) # Update read & write position
File "/opt/homebrew/lib/python3.10/site-packages/soundfile.py", line 773, in seek
_error_check(self._errorcode)
File "/opt/homebrew/lib/python3.10/site-packages/soundfile.py", line 1357, in _error_check
raise RuntimeError(prefix + _ffi.string(err_str).decode('utf-8', 'replace'))
RuntimeError: Internal psf_fseek() failed.
The FLAC files are fine and are playing OK. Other tools like MAAT DROffline handle the files just fine.
Many thanks,
Frank.