Recording audio with to a wav file with GStreamer generates a truncated file:
$ gst-launch alsasrc ! audioconvert ! wavenc ! filesink location=test.wav
sox warns about the truncated file:
sox test.wav prueba.wav
sox wav: Premature EOF on .wav input file
But the file is fine when recording to an ogg file:
$ gst-launch alsasrc ! audioconvert ! vorbisenc ! oggmux ! filesink
Is this a bug in wavenc or am I missing something?
Thanks for your help,
This bug tracker is for administrative requests.
Please file at http://bugzilla.gnome.org/ instead
(I think that the behaviour is correct; wavenc can't go back to the beginning of the file to rewrite the header)
Sorry, but I was wrong (and because of that I'm changing the resolution to NOTABUG). I'm a newbie in programming, but it was my fault.
The original question came from a Python GStreamer script that stopped the recording setting the player state to null instead of sending an EOS message to the player.
I knew that the GStreamer documentation warned about that, but I wasn't sure that this was the cause, since oggenc and lame are written fine. And I didn't know how to send an EOS event.
I asked twice in both the pyGTK and Python-es mailing lists. The only reply I received was that this might be a bug in GStreamer.
After that, trying again to combine both the GStreamer and Python GStreamer documentation, I was lucky to find the proper instruction.
Sorry for the inconveniences.