Ask questionsValueError: frames must be specified for non-seekable files

Preprocessing voxceleb2 VoxCeleb2: Preprocessing data for 5994 speakers. VoxCeleb2: 0%| | 0/5994 [00:00<?, ?speakers/s]Traceback (most recent call last): File "", line 61, in <module> preprocess_funcdataset File "/NASdata/yangyg/Real-Time-Voice-Cloning/encoder/", line 175, in preprocess_voxceleb2 skip_existing, logger) File "/NASdata/yangyg/Real-Time-Voice-Cloning/encoder/", line 116, in _preprocess_speaker_dirs unit="speakers")) File "/home/yyg/anaconda3/envs/RealTime/lib/python3.6/site-packages/tqdm/", line 1017, in iter for obj in iterable: File "/home/yyg/anaconda3/envs/RealTime/lib/python3.6/site-packages/multiprocess/", line 735, in next raise value File "/home/yyg/anaconda3/envs/RealTime/lib/python3.6/site-packages/multiprocess/", line 119, in worker result = (True, func(*args, **kwds)) File "/NASdata/yangyg/Real-Time-Voice-Cloning/encoder/", line 97, in preprocess_speaker wav = audio.preprocess_wav(in_fpath) File "/NASdata/yangyg/Real-Time-Voice-Cloning/encoder/", line 28, in preprocess_wav wav, source_sr = librosa.load(fpath_or_wav, sr=None) File "/home/yyg/anaconda3/envs/RealTime/lib/python3.6/site-packages/librosa/core/", line 138, in load y =, dtype=dtype, always_2d=False).T File "/home/yyg/anaconda3/envs/RealTime/lib/python3.6/site-packages/", line 860, in read frames = self._check_frames(frames, fill_value) File "/home/yyg/anaconda3/envs/RealTime/lib/python3.6/site-packages/", line 1268, in _check_frames raise ValueError("frames must be specified for non-seekable files") ValueError: frames must be specified for non-seekable files

now ,what can I do to solve it. thanks.


Answer questions sberryman

@yyggithub I ran into that as well and I found two ways around it.

  1. You can change the thread pool size to 1 (from 8) Honestly I'm not sure why this worked.
  2. You can convert every m4v file to wav. This was the route I went, just wrote a simple batch script and used ffmpeg (probably faster ways) to do the conversion.
Github User Rank List