jolaf / radiochronicle

Tool for automatic logging of radio channel activity
3 stars 1 forks source link

Audio library should probably be changed #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
PyAudio library (http://people.csail.mit.edu/hubert/pyaudio/) we currently use 
is rather limited in functionality and badly tested - quoting the authors: 
"PyAudio is still super-duper alpha quality. It has run on GNU/Linux 2.6, 
Microsoft Windows 7/XP, and Apple Mac OS X 10.5+ — but it could use more 
testing."

Probably another, more developed library could be used instead, e. g. PyMedia 
(http://pymedia.org).

PyMedia could be particularly useful, as it includes video processing 
functionality that could be useful for recording processing module (see Issue 
#2).

Changing the audio library should not be a complex process, as we only use very 
limited and simple functionality.

Original issue reported on code.google.com by vmzakhar@gmail.com on 6 Nov 2010 at 10:23

GoogleCodeExporter commented 9 years ago

Original comment by vmzakhar@gmail.com on 6 Nov 2010 at 10:46

GoogleCodeExporter commented 9 years ago
Unfortunately, PyMedia is not being actively developed. The latest version is 
1.3.7.3 from 2006-06-20. Version 1.3.7.2 even has a Win32 build, but only for 
Python 2.4, and it doesn't work with Python 2.6.

Original comment by vmzakhar@gmail.com on 6 Nov 2010 at 10:46

GoogleCodeExporter commented 9 years ago

Original comment by vmzakhar@gmail.com on 6 Nov 2010 at 10:53

GoogleCodeExporter commented 9 years ago

Original comment by vmzakhar@gmail.com on 6 Nov 2010 at 10:54

GoogleCodeExporter commented 9 years ago
When trying to build the latest PyMedia 1.3.7.3 on Windows, I experienced the 
following problem:

c1 : fatal error C1083: Cannot open source file: 'video\libavcodec\fdctref.c': 
No such file or directory 

Googling produced the following fix for that: 
http://indashpc.org/vbullettin/viewtopic.php?t=348
- Comment out line 52 in setup.py
- Copy fft.c and mdct.c from audio/libavcodec video/libavcodec

After that, build seems to complete ok.

Original comment by vmzakhar@gmail.com on 6 Nov 2010 at 11:17

JMIdeaMaker commented 8 years ago

Googling produced the following fix for that: http://indashpc.org/vbullettin/viewtopic.php?t=348

  • Comment out line 52 in setup.py
  • Copy fft.c and mdct.c from audio/libavcodec [to] video/libavcodec

This worked for me, successful pymedia install