Writing OGG produces an empty file · Issue #130 · bastibe/python-soundfile (original) (raw)

I don't know if I'm doing something wrong, but this produces an OGG file with zero frames:

import soundfile as sf import numpy as np a = np.empty(100000) sf.write(a, 'delme.ogg', 44100)

This doesn't seem to depend on my libsndfile binary, since the same error happens both on Debian Linux and on Windows XP 32bit.
To be sure, I compiled a little test program in C, which correctly writes a non-empty OGG file (this I tried only on Linux), so it cannot really be related to my installed version of libsndfile, or can it?

Any ideas what's wrong?

Can anybody write OGG files with PySoundFile?

Reading OGGs works perfectly, BTW ...
Writing other formats, too ...