Yepp, vlc and mplayer plays the WAV file perfectly. Also conversion in ffmpeg works fine.
On Monday, July 29, 2013 1:45:56 AM UTC+2, Richard Jones wrote: > > Have you confirmed that the WAV file is playable by anything else? > > On 27 July 2013 07:45, Lord Anton Hvornum <[email protected]<javascript:>> > wrote: > > I have no idea why i get this error, and the documentation/threads about > > this is a but fuzzy on the topic. > > > > Got a *.wav file @22050Hz ~8sec long which was converted from a original > > .mp3 file via ffmpeg -i sound_check.mp3 -ar 22050 sound_check.wav > > > > I've also made the following change at the top of my project: > > pyglet.options['audio'] = ('alsa', 'openal', 'silent') > > > > For some reason, having AVBin installed produces silence and nothing > else. > > So i uninstalled it since pyglet has native wav support anyway and now > i'm > > stuck with this error message: > > > > Traceback (most recent call last): > > File "x.py", line 173, in render > > self.player.queue(pyglet.media.load('sound_check.wav')) > > File "/usr/lib/python2.7/site-packages/pyglet/media/__init__.py", line > > 1386, in load > > source = _source_class(filename, file) > > File "/usr/lib/python2.7/site-packages/pyglet/media/riff.py", line > 194, in > > __init__ > > format = wave_form.get_format_chunk() > > File "/usr/lib/python2.7/site-packages/pyglet/media/riff.py", line > 174, in > > get_format_chunk > > for chunk in self.get_chunks(): > > File "/usr/lib/python2.7/site-packages/pyglet/media/riff.py", line > 110, in > > get_chunks > > chunk = cls(self.file, name, length, offset) > > File "/usr/lib/python2.7/site-packages/pyglet/media/riff.py", line > 155, in > > __init__ > > raise RIFFFormatException('Size of format chunk is incorrect.') > > pyglet.media.riff.RIFFFormatException: Size of format chunk is > incorrect. > > > > Do i need to encode the wav in a particular way? > > Here's the output stream: Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / > > 0x0001), 22050 Hz, stereo, s16, 705 kb/s > > And here's the input: Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, > 192 > > kb/s > > > > Any ideas? > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "pyglet-users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to [email protected] <javascript:>. > > To post to this group, send email to > > [email protected]<javascript:>. > > > Visit this group at http://groups.google.com/group/pyglet-users. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/groups/opt_out.
