I'd clean my apt source package and previous manual install and all seems to be ok now.
Config : Debian/Squeeze using default repository
For information,
#define LIBAVFORMAT_VERSION_MAJOR 52
#define LIBAVFORMAT_VERSION_MINOR 31
#define LIBAVFORMAT_VERSION_MICRO 0
An issue appear with cython :
PyBool_CheckExact not found
As explain in this thread [1] i replace bool by bint. Maybe it's a bug with cython [2]
and example work.
I correct example import oss and get_samplerate, see the patch.
1.
http://www.mail-archive.com/cytho...@codespeak.net/msg04003.html
2.
http://trac.cython.org/cython_trac/ticket/227Sébastien
Index: pyffmpegb.pyx
===================================================================
--- pyffmpegb.pyx (revision 12)
+++ pyffmpegb.pyx (working copy)
@@ -976,7 +976,7 @@
cdef AVPacket packetbufb
cdef int altpacket
#
- cdef bool observers_enabled
+ cdef bint observers_enabled
cdef AVFormatContext *FormatCtx
@@ -1701,7 +1701,7 @@
self.FormatCtx=NULL
cdef read_packet(self):
- cdef bool packet_processed=False
+ cdef bint packet_processed=False
while not packet_processed:
#ret = av_read_frame(self.FormatCtx,self.packet)
#if ret < 0:
Index: examples/example0.py
===================================================================
--- examples/example0.py (revision 12)
+++ examples/example0.py (working copy)
@@ -10,7 +10,7 @@
from PyQt4 import QtGui
import sys, numpy
-import ossaudiodev as oss
+import oss
try:
LazyDisplayQt__imgconvarray={
@@ -76,7 +76,7 @@
ao=oss.open_audio()
ao.stereo(1)
-ao.speed(tracks[1].get_sample_rate())
+ao.speed(tracks[1].get_samplerate())
ao.format(oss.AFMT_S16_LE)
tracks[1].set_observer(lambda x:ao.write(x[0].data))
tracks[0].seek_to_seconds(10)