Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Other discussions > Linux and software for Linux
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 04-19-2010, 12:54 AM
Stream Recorder
 
Posts: n/a
Default

Install PyGame and PyMedia in Ubuntu 9.10 Karmic Koala


Code:
sudo apt-get install python-dev libmp3lame-dev libogg-dev libvorbis-dev libfaad-dev libasound2-dev python-pygame
Download pymedia and extract it.

I downloaded and extracted pymedia-1.3.7.3.tar.gz. Then edited
audio/acodec/acodec.c file and on line 31 inserted the following
Code:
#define HAVE_LRINTF
So that you I had
Code:
#include <libavcodec/avcodec.h>
#define HAVE_LRINTF
#include "libavcodec/dsputil.h"
#include "version.h"
But when I was trying to build PyMedia, I was getting the following error:
Code:
In file included from audio/acodec/acodec.c:31:
audio/libavcodec/dsputil.h:484: error: static declaration of ‘lrintf’ follows non-static declaration
So I commented out the code in audio/libavcodec/dsputil.h
Code:
//#ifndef HAVE_LRINTF
/* XXX: add ISOC specific test to avoid specific BSD testing. */
/* better than nothing implementation. */
/* btw, rintf() is existing on fbsd too — alex */
//static inline long int lrintf(float x)
//{
//#ifdef CONFIG_WIN32
// /* XXX: incorrect, but make it compile */
// return (int)(x);
//#else
// return (int)(rint(x));
//#endif
//}
//#endif
Note sure whether this is critical or not, but at least I was able to compile.

After that I didn't have any problem building PyMedia
Code:
python setup.py build
Then install PyMedia:
Code:
sudo apt-get install checkinstall
sudo checkinstall python setup.py install
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:43 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons