pymedia-users Mailing List for PyMedia
Status: Beta
Brought to you by:
jbors
You can subscribe to this list here.
2004 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(8) |
Jun
(15) |
Jul
(10) |
Aug
(5) |
Sep
(15) |
Oct
(20) |
Nov
(46) |
Dec
(18) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(14) |
Mar
(34) |
Apr
(28) |
May
(12) |
Jun
(14) |
Jul
(17) |
Aug
(33) |
Sep
(17) |
Oct
(31) |
Nov
(30) |
Dec
(10) |
2006 |
Jan
(53) |
Feb
(26) |
Mar
(19) |
Apr
(22) |
May
(12) |
Jun
(4) |
Jul
(40) |
Aug
(6) |
Sep
(14) |
Oct
(24) |
Nov
(19) |
Dec
(54) |
2007 |
Jan
(12) |
Feb
(3) |
Mar
(4) |
Apr
(3) |
May
(6) |
Jun
(16) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(3) |
Nov
(5) |
Dec
(3) |
2008 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(2) |
Oct
|
Nov
|
Dec
|
From: Elf <tu...@el...> - 2010-09-09 06:20:24
|
Aha. It was very nice years before and still has no adequate alternatives. You can try it, if you have enough luck. Last time I was trying it - it was impossible to build it with gcc 4x and some recent version of media libraries. 2010/9/9 Alec Bennett <wry...@gm...>: >> Pymedia is dead > > Really? Sorry to hear it if so. > > Any tips on what may have replaced it, especially for video playback? > > > > > -- ---------------- Best regards Alexey Loshkarev mailto:el...@gm... |
From: Elf <tu...@el...> - 2010-09-05 13:28:27
|
Pymedia is dead :-( 2010/8/30 Mac <su...@em...>: > Hi, > > New to pymedia and I need to make an app that can fade videos in/out and fade > from one to another. > > I'm looking for examples or links to that might help me figure out how to > accomplish this. > > Is this something that I can even do with pymedia? > > Thanks, > Mac > > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > Pymedia-users mailing list > Pym...@li... > https://lists.sourceforge.net/lists/listinfo/pymedia-users > -- ---------------- Best regards Alexey Loshkarev mailto:el...@gm... |
From: Mac <su...@em...> - 2010-08-30 17:35:25
|
Hi, New to pymedia and I need to make an app that can fade videos in/out and fade from one to another. I'm looking for examples or links to that might help me figure out how to accomplish this. Is this something that I can even do with pymedia? Thanks, Mac |
From: Amit M. <ami...@gm...> - 2008-08-17 10:51:12
|
Hi (this is my first post here ... bit excited), I was wondering if anybody knows how can I get the header, adaption and payload fields (and the corresponding data underling them) out of an Mpeg2 stream using PyMedia ? I saw that PyMedia uses some sort of ffmpeg libraries, so if that is the path to go, the question is how does PyMedia interact with those libraries ? Cheers, Amit |
From: Fred W. <ili...@ho...> - 2008-08-10 17:02:22
|
Hello- I've not been able to install PyMedia in ubuntu 8.04. I've tried following about 6 different guides/solutions, none which work. I continually get: error: command 'gcc' failed with exit status 1 Can someone: A. post a step-by-step install guide(Even though I've tried several) B. Create a DEB file for PyMedia 3.7. Thanks, F. Warren _________________________________________________________________ Get Windows Live and get whatever you need, wherever you are. Start here. http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home_082008 |
From: Jason Norwood-Y. <ja...@fr...> - 2008-07-08 08:49:07
|
Hi guys I'm new to PyMedia (and kinda new to Python and sound programming too) so please bare with me. I'm trying to make a proper visualisation for a PHP Ming MP3 player. At the moment I first put the MP3 through a PyMedia script to get eight bands, which then gets picked up by my PHP app and dumped as an array into ActionScript. Now I need to sync up the current time playing (in seconds) in the ActionScript with the data in the array. Ideally, I'd like to know how much time each tuple I get out of asBands represents. For example, I get 9409 records from a 878sec long MP3 with a bitrate of 238kbps, and 3945 records from a 164sec MP3 with bitrate of 192kbps. So for the first MP3 I'm getting about 10.7 records per second, and for the second I'm getting about 24 records per second. The script for outputting the data is pretty much: filename = sys.argv[1] f = open(filename, 'rb') s=f.read() spa = pymedia.audio.sound.SpectrAnalyzer(1, 500, 256) bands= spa.asBands(8, s) for band in bands: print band Thanks! Jason |
From: anuj m. <i00...@ya...> - 2008-06-26 15:32:28
|
hi i installed pymedia and it was successful but cant import pymedia the folling error is reported >>> import pymedia Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.4/site-packages/pymedia/__init__.py", line 26, in ? import muxer, audio, video, removable File "/usr/lib/python2.4/site-packages/pymedia/audio/__init__.py", line 26, in ? import acodec, sound ImportError: /usr/lib/python2.4/site-packages/pymedia/audio/acodec.so: undefined symbol: NeAACDecOpen someone plz help() --------------------------------- Explore your hobbies and interests. Click here to begin. |
From: <ke...@ug...> - 2008-02-28 18:57:58
|
What I want to do: Build a web interface which can be used to control a media player built out of the pymedia library and last.fm proxy. So, user clicks a button on the web interface, it starts or stops a song or last.fm in the background. The problem: Can I use the pymedia library to access the last.fm proxy and play sound from the last.fm stream? How...? Hints? Thanks! - Keith (pymedia newbie!) |
From: DDaniel <da...@ga...> - 2008-02-18 12:26:36
|
Hi, I'm using pymedia to build a movie from pictures. I use a modified version of the standard example given everywhere, with python2.4 and pymedia 1.3.7.3 The issue is that I can't choose the size of my movie. When I use a resolution of 640x480, it actually build a movie, but tend to cut some part of my pictures(as they are 800x600). If I try to build a 800x600 movie, it at first seems to build something, but when I launch it, the player closes as soon as it opens without playing the movie. I get my encoder by calling e = getEncoder("mpeg2video", 480, 640) with: def getEncoder(outCodec, height, width): if outCodec== 'mpeg1video': bitrate= 2700000 else : bitrate= 9800000 #== params= { \ 'type': 0, 'gop_size': 12, 'frame_rate_base': 125, 'max_b_frames': 0, 'height': height, 'width': width, 'frame_rate': 2997, 'deinterlace': 0, 'bitrate': bitrate, 'id': vcodec.getCodecID( outCodec ) } return vcodec.Encoder( params ) then use this method: def joinFrames(file_list, frame_size, encoder, file_dest): t= time.time() for img in file_list: add_one_frame(img, frame_size, encoder, file_dest) nb = len(file_list) print '%d frames written in %.2f secs( %.2f fps )' % ( nb, time.time()- t, float( nb )/ ( time.time()- t ) ) return file_dest to eventually finish with this: def add_one_frame(img, (h, w), encoder, file_dest): # print img assert h%2==0 , "height must be a multiple of 2" assert w%2==0 , "width must be a multiple of 2" s = pygame.image.load(img) ss = pygame.image.tostring(s, "RGB") # print "pygame stuff done" bmpFrame = vcodec.VFrame( vcodec.formats.PIX_FMT_RGB24, (w, h), (ss,None,None)) # print "bmpframe created" yuvFrame = bmpFrame.convert( vcodec.formats.PIX_FMT_YUV420P, (640,480) ) # print "yuvframe created" d = encoder.encode( yuvFrame ) file_dest.write( d.data ) The issue seems to be here. If I understand well, Vframe.convert should get the frame at the right size. It never does, yuvframe always keeps having the size of bmpFrame. And this way, a part of my picture is cut. I would prefer to use another size for the movie, but when I change the size for the encoder and the convert function, the movie doesn't work. I haven't been able to find a solution to my problem, so I thought I could maybe ask some help. -- View this message in context: http://www.nabble.com/video-resolution-issue-tp15542917p15542917.html Sent from the pymedia-users mailing list archive at Nabble.com. |
From: patrick <pur...@11...> - 2008-01-30 17:36:04
|
hi, i am running python 2.5 on linux and the last version pymedia (nice piece of software guys). i am not an expert of codec stuff, so maybe i don't need pymedia to split a big AVI into smaller parts. right now i am using avisplit from transcode, but if it was possible i would like to use pymedia. let me know. pat |
From: Alec B. <wry...@gm...> - 2007-12-19 10:47:03
|
I'm trying to detect pitch with pymedia. From searching the archives and google I see a few other people trying to do this. It seems we're all stuck trying to interpret the output of SpectAnalyzer. Can anyone offer any clues here? |
From: Brad M. <br...@br...> - 2007-12-09 17:30:32
|
Hi All, I'm new to PyMedia and I'm trying to understand the correct way to use SpectrAnalyzer. Does anyone know of a good tutorial, or some more examples on how to use it? (I've looked at the sound_viz.py example and I've read the docs online) My background in DSP is fairly limited so please forgive me if this is a stupid question. I'm curious as to the appropriate way to create a SpectrAnalyzer object based on the correct number of samples. I'm creating an analyzer object like so: analyzer= sound.SpectrAnalyzer( CHANNELS, SAMPLES, NUM_FREQS ) If I want to analyze 1 second of sound sampled at 44100, shouldn't I have 44100 samples? I've read that Number of samples should be > 32 and < 576... Is this measured in 1000's samples per second (should I use 44 here?) Also, is there a "good value" for the number of frequencies? I'm playing with some beat-detection algorithms, and I'm curious if a lower number here just gives me information for a larger "slice" of frequency values. I hope this all makes sense. Thanks! Brad |
From: Reckoner <rec...@gm...> - 2007-12-03 17:34:17
|
I am working with the recode_audio example but I'm getting a core dump in the encoder wave module. I have pymedia 1.3.7.0/python 2.4 on Windows XP. Little help? |
From: David M. <dav...@ho...> - 2007-11-26 04:10:58
|
Hi, =20 I am new to pyMedia. I installed it. All of the required packages are inst= alled. =20 When i do "import py,edia" I get this error. What does this mean and hwo do= I fix it? =20 Thanks =20 Traceback (most recent call last): File "/home/davidmontgom/workspace/ad_m= anagement/sql_test.py", line 160, in <module> import pymedia File "/u= sr/lib/python2.5/site-packages/pymedia/__init__.py", line 26, in <module> = import muxer, audio, video, removableImportError: /usr/lib/python2.5/site= -packages/pymedia/muxer.so: cannot restore segment prot after reloc: Permis= sion denied = |
From: Frank P. <fep...@bu...> - 2007-11-16 18:01:37
|
Hello Apologies for submitting a similar post. I realized some aspects that were wrong in my previous posting. The fact is that the parsing of the demuxer does not find any frames although the full binary string is 5899 characters long. I have verified this. Could anyone suggest a possible reason for the result? Thanks Frank |
From: <hi...@on...> - 2007-11-15 11:10:10
|
Elf wrote: > I'm using pymedia 1.3.7.3 (latest available at sf.net). > Using example (recode_audio.py) from pymedia.org i'll try to recode > mp3 to ogg. > Ogg file is produced, but noone player can't play it. > I tried number of files and bitrates with same result. > > Ogg decoding works fine. I had the same problems. There are actually to issues in pymedia: 1) the generated frames by the encoder are pushed into the muxer and then written to the file. This somehow adds additional bytes to the frames which corrupt the ogg stream (from recode_audio.py): enc_frames = enc.encode( r.data ) if enc_frames: for efr in enc_frames: ss = mx.write(stId, efr) if ss: print "writing %d bytes (%d)" % (len(ss), len(efr)) fw.write(ss) if the frames are directly written to the files, the resulting ogg file stream is correct except at the end (see 2): enc_frames = enc.encode( r.data ) if enc_frames: for efr in enc_frames: fw.write(efr) 2) the EOS marker is missing at the end of the stream. This is because there is still encoded data in the encoder once the last inframes have been written to the encoder. There is currently no way in pymedia to inform the encoder about the end of the input so that it can flush out the remaining encoded frames (only the write method supplies a buffer where the encoder can put the encoded frames into). Unfortunately the call from the internal encode method of pymedia to the encode method of the format's encoder always assumes a fixed amount of samples, so there is no way of signaling the end of data to the format's encoder. Oggvorbis needs this information to flush out the final bytes and set the EOS flag. I've modified pymedia's avcodec.c to accept an empty string in its ACodec_Encode(...) method an call the format's encoder with NULL for the data so that the oggvorbis.c encoder can detect the end and flush out the remaining bytes. So at the end of encoding in recode_audio.py I issue a final enc.encode("") and write out what I get back from the encoder and the resulting file/stream is correct: enc_frames = enc.encode("") if enc_frames: for efr in enc_frames: fw.write(efr) f.close() But before I supply a patch, I'd like to know about the Muxer issue: Why does the muxer add additional bytes that corrupt the ogg stream? Is it the fault of the muxer or should there be no muxer involved when encoding to ogg? I don't currently understand the purpose. |
From: Frank P. <fep...@bu...> - 2007-11-15 01:18:51
|
Hello I have resolved my previous problem by adding a header line involving a user-agent to the request of urlopen. I now have a problem with the binary code that is returned which is part of a wma file. I have verified with an HTML sniffer that the binary code is in fact that of the start of the wma file. The problem is that although the length of the binary string is 5589 characters, parsing this binary string on the demuxer does not return any frames. An ancillary fact that may bare explanation on this is that if I print the binary string it ends after 3 characters with the "STX" character and any attempt to print characters after this results in no printout at all. If anyone could shed any light on the matter I would be extremely grateful. Thanks Frank |
From: Frank P. <fep...@bu...> - 2007-11-14 21:33:30
|
Hello I am trying to store a wma file from the Internet via streaming to my local drive. I have tried using pymedia and looked at the examples. What I noticed was that they were geared for files on local drives. I adapted the aplayer.py program to use the urllib2 module with urlopen instead of the standard file open command. I was unable to read the bit stream for the following url even though pasting into the browser works by running an embedded windows media audio program. The url is : url = http://quartet.naxos.com/udmn@nml64k/atm/q02946_101_full_wm_064.wm When I issue f=urlopen(url).read() it only gives a text file listing two url's in python. Could anyone help me? Thanks Frank |
From: Stani's P. E. <spe...@gm...> - 2007-10-31 21:12:16
|
Hi, I've posted a howto build pymedia on Ubuntu Gutsy on my blog: http://pythonide.stani.be (Dmitry feel free to link to it.) Are there any differences in features between the latest cvs and 1.3.7? Stani -- http://photobatch.stani.be |
From: Carlos L. <ca...@gm...> - 2007-10-30 17:09:43
|
Thanks a lot benjameim, I want to believe that the freq power is in Db. but ok. But these frequencies, is not the exact value right ? There is something in the docs, talk about a range of frequencies, depending of the octaves. Do you know how I calculate that! The frequencie range (band) from x to Y for instance... 190.283203125;0.244085595012 MEANS freqs from x up to 190.283 with power 0.24408 ???? how to calculate X or the up and low limit of this band? Thanks again On Oct 30, 2007 12:32 PM, Benjamin Bruheim <gr...@gm...> wrote: > Hi, > > The tuples are [(right-frequency, right-power), ..., (left-frequency, > left-power), ...]. The frequency is in Hz, but I am not sure what unit > power is in. > > > On 10/30/07, Carlos Leite <ca...@gm...> wrote: > > Hi there, > > please I tried other lists, and nothing. I just need to know how to > > interpret the tuples that the asBands method return to me. > > > > A cant understand what the asBands() really gave to me. > > The Docs, say that asBands() return a List of tupples grouped by > > frequency, and the first two values are frequency limits. But I cant > > see the frequency limits, not even the frequencies . > > > > IF anyone, has any information about it, even to say "its not working". hehe > > > > THis is part of my output to an audio file of 2 seconds and a 1000Hz frequency > > And the code is below > > But I read a lot, search .. and I still cant understand what this > > tuples really means. > > > > Thanks in advance > > > > 190.283203125;0.244085595012 > > 211.42578125;1.08019864559 > > 253.7109375;3.9267279307 > > 317.138671875;9.92583847046 > > 359.423828125;30.9667332967 > > 422.8515625;2023.64868164 > > 507.421875;1721.98303223 > > 591.9921875;45.5271911621 > > 697.705078125;6.53225898743 > > 824.560546875;2.08980056218 > > 972.55859375;0.794676959515 > > 1141.69921875;0.362428373761 > > 1331.98242188;0.29334748875 > > 1564.55078125;0.218693238038 > > 1839.40429688;0.278315830231 > > 2156.54296875;0.146333972613 > > 2537.109375;0.26632910683 > > 2981.10351563;0.496793937683 > > 3509.66796875;0.742335747028 > > 4122.80273438;0.619799894445 > > 4841.65039063;0.941718482971 > > 5687.35351563;0.703689981014 > > 6681.0546875;1.38942857222 > > 7843.89648438;1.78449742244 > > 9218.1640625;3.77672335976 > > 190.283203125;0.194098889828 > > 211.42578125;1.05994915962 > > 253.7109375;3.90520095825 > > 317.138671875;10.0715675354 > > 359.423828125;31.0263417562 > > 422.8515625;2023.83581543 > > 507.421875;1721.99328613 > > 591.9921875;45.4988830566 > > 697.705078125;6.51365725199 > > 824.560546875;2.10594912938 > > 972.55859375;0.806965708733 > > 1141.69921875;0.369390010834 > > 1331.98242188;0.381403446198 > > 1564.55078125;0.279652008644 > > 1839.40429688;0.307544994354 > > 2156.54296875;0.252535131243 > > 2537.109375;0.34709642047 > > 2981.10351563;0.604796524048 > > 3509.66796875;0.553077500442 > > 4122.80273438;1.07670492284 > > 4841.65039063;1.21294984818 > > 5687.35351563;1.33566446507 > > 6681.0546875;1.47083462802 > > 7843.89648438;2.5437119704 > > 9218.1640625;4.14210630718 > > import pymedia.audio.sound as sound > > import pymedia.audio.acodec as acodec > > import sys > > > > freqs='' > > def playFile(file_name): > > #Leitura do arquivo > > file_extension = file_name.split('.' )[ -1 ].lower() > > parms = {'id': acodec.getCodecID(file_extension), 'ext': file_extension} > > decoder = acodec.Decoder(parms) > > f = open(file_name, 'rb') > > s = f.read(8192) > > r = decoder.decode(s) > > sampleFreqs= [] > > #snd = sound.Output(r.sample_rate, r.channels, sound.AFMT_S16_LE) > > SAMPLES= 500 > > NUM_FREQS= 12 > > BANDS= 25 > > resampler= sound.Resampler( (r.sample_rate,r.channels), (r.sample_rate,1) ) > > analyzer= sound.SpectrAnalyzer( 1, SAMPLES, 512 ) > > arqb = open('saida_bands.txt' , 'w') > > arqf = open('saida_freqs.txt', 'w') > > arqb.write('%s \n' %(f.name)) > > contador = 0 > > while len(s)> 0: > > contador = contador + 1 > > if r: > > #snd.play(r.data) > > s = f.read(512) > > r = decoder.decode(s) > > > > snd= sound.Output( r.sample_rate, r.channels, sound.AFMT_S16_LE ) > > s1= resampler.resample( r.data ) > > bTmp= analyzer.asBands( BANDS, s1 ) > > sampleFreqs.append( ( snd.getPosition()+ snd.getLeft(), bTmp ) ) > > fTmp= analyzer.asFrequencies(r.data) > > #print (bTmp ) > > for k in bTmp: > > for l in k: > > #print l > > arqb.write('%s;%s \n' % (l[0].__str__(),l[1].__str__(),)) > > > > arqb.write('Frame: %s \n' % (contador.__str__())) > > arqf.write ('Leitura: %s \n ' % (contador.__str__())) > > arqf.write ('Freq: %s \n ' % (fTmp.__str__())) > > arqb.write('LOOPS: %s \n' % (contador.__str__())) > > arqb.close() > > arqf.close() > > if __name__ == "__main__": > > file_name = sys.argv[1] > > playFile(file_name) > > > > -- > > Carlos Leite > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Pymedia-users mailing list > > Pym...@li... > > https://lists.sourceforge.net/lists/listinfo/pymedia-users > > > -- Carlos Leite www.znc.com.br |
From: Carlos L. <ca...@gm...> - 2007-10-30 13:44:39
|
Hi there, please I tried other lists, and nothing. I just need to know how to interpret the tuples that the asBands method return to me. A cant understand what the asBands() really gave to me. The Docs, say that asBands() return a List of tupples grouped by frequency, and the first two values are frequency limits. But I cant see the frequency limits, not even the frequencies . IF anyone, has any information about it, even to say "its not working". hehe THis is part of my output to an audio file of 2 seconds and a 1000Hz frequency And the code is below But I read a lot, search .. and I still cant understand what this tuples really means. Thanks in advance 190.283203125;0.244085595012 211.42578125;1.08019864559 253.7109375;3.9267279307 317.138671875;9.92583847046 359.423828125;30.9667332967 422.8515625;2023.64868164 507.421875;1721.98303223 591.9921875;45.5271911621 697.705078125;6.53225898743 824.560546875;2.08980056218 972.55859375;0.794676959515 1141.69921875;0.362428373761 1331.98242188;0.29334748875 1564.55078125;0.218693238038 1839.40429688;0.278315830231 2156.54296875;0.146333972613 2537.109375;0.26632910683 2981.10351563;0.496793937683 3509.66796875;0.742335747028 4122.80273438;0.619799894445 4841.65039063;0.941718482971 5687.35351563;0.703689981014 6681.0546875;1.38942857222 7843.89648438;1.78449742244 9218.1640625;3.77672335976 190.283203125;0.194098889828 211.42578125;1.05994915962 253.7109375;3.90520095825 317.138671875;10.0715675354 359.423828125;31.0263417562 422.8515625;2023.83581543 507.421875;1721.99328613 591.9921875;45.4988830566 697.705078125;6.51365725199 824.560546875;2.10594912938 972.55859375;0.806965708733 1141.69921875;0.369390010834 1331.98242188;0.381403446198 1564.55078125;0.279652008644 1839.40429688;0.307544994354 2156.54296875;0.252535131243 2537.109375;0.34709642047 2981.10351563;0.604796524048 3509.66796875;0.553077500442 4122.80273438;1.07670492284 4841.65039063;1.21294984818 5687.35351563;1.33566446507 6681.0546875;1.47083462802 7843.89648438;2.5437119704 9218.1640625;4.14210630718 import pymedia.audio.sound as sound import pymedia.audio.acodec as acodec import sys freqs='' def playFile(file_name): #Leitura do arquivo file_extension = file_name.split('.' )[ -1 ].lower() parms = {'id': acodec.getCodecID(file_extension), 'ext': file_extension} decoder = acodec.Decoder(parms) f = open(file_name, 'rb') s = f.read(8192) r = decoder.decode(s) sampleFreqs= [] #snd = sound.Output(r.sample_rate, r.channels, sound.AFMT_S16_LE) SAMPLES= 500 NUM_FREQS= 12 BANDS= 25 resampler= sound.Resampler( (r.sample_rate,r.channels), (r.sample_rate,1) ) analyzer= sound.SpectrAnalyzer( 1, SAMPLES, 512 ) arqb = open('saida_bands.txt' , 'w') arqf = open('saida_freqs.txt', 'w') arqb.write('%s \n' %(f.name)) contador = 0 while len(s)> 0: contador = contador + 1 if r: #snd.play(r.data) s = f.read(512) r = decoder.decode(s) snd= sound.Output( r.sample_rate, r.channels, sound.AFMT_S16_LE ) s1= resampler.resample( r.data ) bTmp= analyzer.asBands( BANDS, s1 ) sampleFreqs.append( ( snd.getPosition()+ snd.getLeft(), bTmp ) ) fTmp= analyzer.asFrequencies(r.data) #print (bTmp ) for k in bTmp: for l in k: #print l arqb.write('%s;%s \n' % (l[0].__str__(),l[1].__str__(),)) arqb.write('Frame: %s \n' % (contador.__str__())) arqf.write ('Leitura: %s \n ' % (contador.__str__())) arqf.write ('Freq: %s \n ' % (fTmp.__str__())) arqb.write('LOOPS: %s \n' % (contador.__str__())) arqb.close() arqf.close() if __name__ == "__main__": file_name = sys.argv[1] playFile(file_name) -- Carlos Leite |
From: Edgar M. <don...@gm...> - 2007-09-28 20:32:25
|
Hello, I'm trying to get pymedia to work for recording sound from soundcard, I've tested this with arecord so I know it works, however when I try to run the example program for voice recording (with slight modifications to make the Encoder params work), I get this error: ALSA lib pcm_hw.c:1207:(_snd_pcm_hw_open) Invalid value for card Segmentation fault what can be causing this? thanks Edgar Merino |
From: Reckoner <rec...@gm...> - 2007-09-11 23:15:29
|
can someone get me started w/ concatenating a set of mp3's and then splitting the resultant into 5 min mp3's. This is probably easy, but I need a bit of help getting started. thanks in advance. |
From: Elf <tu...@el...> - 2007-08-29 00:18:01
|
I'm using pymedia 1.3.7.3 (latest available at sf.net). Using example (recode_audio.py) from pymedia.org i'll try to recode mp3 to ogg. Ogg file is produced, but noone player can't play it. I tried number of files and bitrates with same result. Ogg decoding works fine. -- ---------------- Best regards Elf mailto:el...@gm... |
From:
<jos...@gm...> - 2007-06-27 16:04:01
|
Things go better, but keeps on failing. It would be nice to modify the CVS after these testings. So evryone could compile without having to change the source code. Thanks in avance for your help. =3D=3D=3D=3D=3D=3D=3D=3D=3D jose@localhost ~/CVS/pymedia $ python setup.py build Using UNIX configuration... OGG : found VORBIS : found FAAD : found MP3LAME : found VORBISENC : found ALSA : found Continue building pymedia ? [Y,n]:Y running build running build_py running build_ext building 'pymedia.audio.acodec' extension i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/acodec/acodec.c -o build/temp.linux- i686-2.4/audio/acodec/acodec.o audio/acodec/acodec.c:249: warning: initialization from incompatible pointe= r typ e i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/mem.c -o build/temp.linux-i686-2.4 /audio/mem.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/utils.c -o build/temp.linux- i686-2.4/audio/libavcodec/u tils.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/wmadec.c -o build/temp.linux- i686-2.4/audio/libavcodec/ wmadec.o audio/libavcodec/wmadec.c:1328: warning: initialization from incompatible pointe r type audio/libavcodec/wmadec.c:1345: warning: initialization from incompatible pointe r type i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/a52dec.c -o build/temp.linux- i686-2.4/audio/libavcodec/ a52dec.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/liba52/bit_allocate.c -o build/temp.linux-i686-2.4/audi o/libavcodec/liba52/bit_allocate.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/liba52/bitstream.c -o build/temp.linux-i686-2.4/audio/l ibavcodec/liba52/bitstream.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/liba52/downmix.c -o build/temp.linux-i686-2.4/audio/lib avcodec/liba52/downmix.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/liba52/imdct.c -o build/temp.linux-i686-2.4/audio/libav codec/liba52/imdct.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/liba52/parse.c -o build/temp.linux-i686-2.4/audio/libav codec/liba52/parse.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/liba52/crc.c -o build/temp.linux-i686-2.4/audio/libavco dec/liba52/crc.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/faad.c -o build/temp.linux- i686-2.4/audio/libavcodec/fa ad.o audio/libavcodec/faad.c: In function 'faac_decode_init': audio/libavcodec/faad.c:241: warning: assignment from incompatible pointer type audio/libavcodec/faad.c:243: warning: assignment from incompatible pointer type audio/libavcodec/faad.c:246: warning: assignment from incompatible pointer type audio/libavcodec/faad.c:248: warning: assignment from incompatible pointer type i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/oggvorbis.c -o build/temp.linux-i686-2.4/audio/libavcod ec/oggvorbis.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/common.c -o build/temp.linux- i686-2.4/audio/libavcodec/ common.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/mpegaudiodec.c -o build/temp.linux-i686-2.4/audio/libav codec/mpegaudiodec.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/mpegaudio.c -o build/temp.linux-i686-2.4/audio/libavcod ec/mpegaudio.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/mp3lameaudio.c -o build/temp.linux-i686-2.4/audio/libav codec/mp3lameaudio.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/fft.c -o build/temp.linux- i686-2.4/audio/libavcodec/fft .o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/pcm.c -o build/temp.linux- i686-2.4/audio/libavcodec/pcm .o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/mdct.c -o build/temp.linux- i686-2.4/audio/libavcodec/md ct.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/ac3enc.c -o build/temp.linux- i686-2.4/audio/libavcodec/ ac3enc.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/flac.c -o build/temp.linux- i686-2.4/audio/libavcodec/fl ac.o i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1681 -D PATH_DEV_DSP=3D"/dev/dsp" -DPATH_DEV_MIXER=3D"/dev/mi= xer" -D_FILE_OFFSET_BITS=3D64 -DA CCEL_DETECT=3D1 -DHAVE_MMX=3D1 -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM _H=3D1 -DCONFIG_VOR= BIS -DCONFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VOR BIS -DCONFIG_ALSA -DHAVE_AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone -I/us= r/i nclude/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ -I/usr/include/pytho n2.4 -c audio/libavcodec/adpcm.c -o build/temp.linux- i686-2.4/audio/libavcodec/a dpcm.o i686-pc-linux-gnu-gcc -pthread -shared build/temp.linux-i686-2.4/audio/acodec/ac odec.o build/temp.linux-i686-2.4/audio/mem.o build/temp.linux-i686-2.4/audio/lib avcodec/utils.o build/temp.linux-i686-2.4/audio/libavcodec/wmadec.o build/temp.l inux-i686-2.4/audio/libavcodec/a52dec.o build/temp.linux- i686-2.4/audio/libavcod ec/liba52/bit_allocate.o build/temp.linux-i686-2.4/audio/libavcodec/liba52/bitst ream.o build/temp.linux-i686-2.4/audio/libavcodec/liba52/downmix.o build/temp.li nux-i686-2.4/audio/libavcodec/liba52/imdct.o build/temp.linux= - i686-2.4/audio/lib avcodec/liba52/parse.o build/temp.linux-i686-2.4/audio/libavcodec/liba52/crc.o b uild/temp.linux-i686-2.4/audio/libavcodec/faad.o build/temp.linux-i686-2.4/audio /libavcodec/oggvorbis.o build/temp.linux-i686-2.4/audio/libavcodec/common.o buil d/temp.linux-i686-2.4/audio/libavcodec/mpegaudiodec.o build/temp.linux= - i686-2.4/ audio/libavcodec/mpegaudio.o build/temp.linux-i686-2.4/audio/libavcodec/mp3lamea udio.o build/temp.linux-i686-2.4/audio/libavcodec/fft.o build/temp.linux-i686-2. 4/audio/libavcodec/pcm.o build/temp.linux-i686-2.4/audio/libavcodec/mdct.o build /temp.linux-i686-2.4/audio/libavcodec/ac3enc.o build/temp.linux- i686-2.4/audio/l ibavcodec/flac.o build/temp.linux-i686-2.4/audio/libavcodec/adpcm.o -L/usr/lib - L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -logg -lvorbis -lfaad -lmp 3lame -lvorbisenc -lasound -o build/lib.linux-i686-2.4 /pymedia/audio/acodec.so build/temp.linux-i686-2.4/audio/libavcodec/utils.o: In function `lrintf': utils.c:(.text+0x0): multiple definition of `lrintf' build/temp.linux-i686-2.4/audio/acodec/acodec.o:acodec.c:(.text+0x0): first defi ned here build/temp.linux-i686-2.4/audio/libavcodec/wmadec.o: In function `lrintf': wmadec.c:(.text+0x0): multiple definition of `lrintf' build/temp.linux-i686-2.4/audio/acodec/acodec.o:acodec.c:(.text+0x0): first defi ned here build/temp.linux-i686-2.4/audio/libavcodec/mpegaudiodec.o: In function `lrintf': mpegaudiodec.c:(.text+0x0): multiple definition of `lrintf' build/temp.linux-i686-2.4/audio/acodec/acodec.o:acodec.c:(.text+0x0): first defi ned here build/temp.linux-i686-2.4/audio/libavcodec/fft.o: In function `lrintf': fft.c:(.text+0x0): multiple definition of `lrintf' build/temp.linux-i686-2.4/audio/acodec/acodec.o:acodec.c:(.text+0x0): first defi ned here build/temp.linux-i686-2.4/audio/libavcodec/mdct.o: In function `lrintf': mdct.c:(.text+0x0): multiple definition of `lrintf' build/temp.linux-i686-2.4/audio/acodec/acodec.o:acodec.c:(.text+0x0): first defi ned here /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: warni ng: creating a DT_TEXTREL in object. collect2: ld returned 1 exit status error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 =3D=3D=3D=3D=3D=3D=3D=3D 2007/6/26, Dmitry Borisov <jb...@ma...>: > > Try to remove static in the audio/libavcodec/dsputil.h:485 > Should work. > Dmitry/ > > ----- Original Message ----- > From: "Robert Hassing" <ro...@ca...> > To: <pym...@li...> > Sent: Tuesday, June 26, 2007 1:07 PM > Subject: Re: [Pymedia-users] Problems compiling > > > Hi > > I'm confused about the gcc32 command error. > > There is NO gcc32 command available under Unix/Linux. So my guess is that > you are using the windows version > > Grtz > Robert > > -----Oorspronkelijk bericht----- > Van: pym...@li... > [mailto:pym...@li...] Namens Jos=E9 Mar=ED= a > Garc=EDa P=E9rez > Verzonden: dinsdag 26 juni 2007 19:09 > Aan: Dmitry Borisov > CC: pym...@li... > Onderwerp: Re: [Pymedia-users] Problems compiling > > Hi Dmitry. This is what I get. > > It's a pitty having to wait until the end of the year. I don't find any > alternative for PyMedia. > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > jose@localhost ~/CVS/pymedia $ python setup.py build > Using UNIX configuration... > > OGG : found > VORBIS : found > FAAD : found > MP3LAME : found > VORBISENC : found > ALSA : found > Continue building pymedia ? [Y,n]:Y > running build > running build_py > creating build > creating build/lib.linux-i686-2.4 > creating build/lib.linux-i686-2.4/pymedia > copying inst_lib/__init__.py -> build/lib.linux-i686-2.4/pymedia > copying inst_lib/meta.py -> build/lib.linux-i686-2.4/pymedia > copying inst_lib/player.py -> build/lib.linux-i686-2.4/pymedia > creating build/lib.linux-i686-2.4/pymedia/audio > copying inst_lib/audio/__init__.py -> build/lib.linux-i686-2.4 > /pymedia/audio > creating build/lib.linux-i686-2.4/pymedia/video > copying inst_lib/video/__init__.py -> build/lib.linux-i686-2.4 > /pymedia/video > creating build/lib.linux-i686-2.4/pymedia/video/ext_codecs > copying inst_lib/video/ext_codecs/__init__.py -> > build/lib.linux-i686-2.4/pymedi > a/video/ext_codecs > creating build/lib.linux-i686-2.4/pymedia/removable > copying inst_lib/removable/__init__.py -> > build/lib.linux-i686-2.4/pymedia/remov > able > running build_ext > building 'pymedia.audio.sound' extension > creating build/temp.linux-i686-2.4 > creating build/temp.linux-i686-2.4/sound > gcc32 -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1677 > -DPATH_DEV_DSP=3D"/dev/dsp" - DPATH_DEV_MIXER=3D"/dev/mixer" > -D_FILE_OFFSET_BITS=3D64 -DACCEL_DETECT=3D1 -DHAVE_MMX=3D 1 > -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM_H=3D1 -DCONFIG_VO= RBIS > -DCO NFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VORBIS > -DCONFIG_ALSA -DHAVE_ AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone > -I/usr/include/lame -INone -INone -I/home/jose/CVS/pymedia -Isound/ > -I/usr/include/python2.4 -c sound/sound.cpp - o build/temp.linux-i686-2.4 > /sound/sound.o > gcc32 -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1677 > -DPATH_DEV_DSP=3D"/dev/dsp" - DPATH_DEV_MIXER=3D"/dev/mixer" > -D_FILE_OFFSET_BITS=3D64 -DACCEL_DETECT=3D1 -DHAVE_MMX=3D 1 > -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM_H=3D1 -DCONFIG_VO= RBIS > -DCO NFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VORBIS > -DCONFIG_ALSA -DHAVE_ AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone > -I/usr/include/lame -INone -INone -I/home/jose/CVS/pymedia -Isound/ > -I/usr/include/python2.4 -c sound/resample.c -o build/temp.linux-i686-2.4 > /sound/resample.o > gcc32 -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1677 > -DPATH_DEV_DSP=3D"/dev/dsp" - DPATH_DEV_MIXER=3D"/dev/mixer" > -D_FILE_OFFSET_BITS=3D64 -DACCEL_DETECT=3D1 -DHAVE_MMX=3D 1 > -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM_H=3D1 -DCONFIG_VO= RBIS > -DCO NFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VORBIS > -DCONFIG_ALSA -DHAVE_ AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone > -I/usr/include/lame -INone -INone -I/home/jose/CVS/pymedia -Isound/ > -I/usr/include/python2.4 -c sound/fft.cpp -o build/temp.linux-i686-2.4 > /sound/fft.o > i686-pc-linux-gnu-g++ -pthread -shared > build/temp.linux-i686-2.4/sound/sound.o > b uild/temp.linux-i686-2.4/sound/resample.o > build/temp.linux-i686-2.4/sound/fft.o > -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -L/usr/lib -logg > -lvorbis -lfaad -lmp3lame -lvorbisenc -lasound -o > build/lib.linux-i686-2.4/pymedia/audio > /sound.so > /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld= : > warni ng: creating a DT_TEXTREL in object. > building 'pymedia.audio.acodec' extension > creating build/temp.linux-i686-2.4/audio > creating build/temp.linux-i686-2.4/audio/acodec > creating build/temp.linux-i686-2.4/audio/libavcodec > creating build/temp.linux-i686-2.4/audio/libavcodec/liba52 > gcc32 -fno-strict-aliasing -DNDEBUG -DBUILD_NUM=3D1677 > -DPATH_DEV_DSP=3D"/dev/dsp" - DPATH_DEV_MIXER=3D"/dev/mixer" > -D_FILE_OFFSET_BITS=3D64 -DACCEL_DETECT=3D1 -DHAVE_MMX=3D 1 > -DHAVE_LINUX_DVD_STRUCT=3D1 -DDVD_STRUCT_IN_LINUX_CDROM_H=3D1 -DCONFIG_VO= RBIS > -DCO NFIG_VORBIS -DCONFIG_FAAD -DCONFIG_MP3LAME -DCONFIG_VORBIS > -DCONFIG_ALSA -DHAVE_ AV_CONFIG_H -DUDF_CACHE=3D1 -INone -INone -INone > -I/usr/include/lame -INone -INone -I/home/jose/CVS/pymedia -Iaudio/ > -I/usr/include/python2.4 -c audio/acodec/acod ec.c -o build/temp.linux- > i686-2.4/audio/acodec/acodec.o > In file included from audio/acodec/acodec.c:31: > audio/libavcodec/dsputil.h:485: error: static declaration of 'lrintf' > follows no n-static declaration > audio/acodec/acodec.c:249: warning: initialization from incompatible > pointer > typ e > error: command 'gcc32' failed with exit status 1 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > 2007/6/26, Dmitry Borisov <jb...@ma...>: > > > > Hi Jose, > > What error did it give you ? > > The project is on hold till I start a new project which this will be > used > > for. I think be end of the year I will rebuild it. > > Dmitry/ > > > > ----- Original Message ----- > > From: "Jos=E9 Mar=EDa Garc=EDa P=E9rez" <jos...@gm...> > > To: <pym...@li...> > > Sent: Tuesday, June 26, 2007 6:04 AM > > Subject: [Pymedia-users] Problems compiling > > > > > > I tried to compile yesterday PyMedia. I made: > > $ python setup.py biuld > > > > But it gives an error. > > > > I=B4m a Gentoo user. I have installed last versions of libavcodec and > > ffmpeg. > > > > Besides, I see there are no more releases since 2006. Is this project > > discontinued? > > > > Regards, > > Jose M. > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Pymedia-users mailing list > > Pym...@li... > > https://lists.sourceforge.net/lists/listinfo/pymedia-users > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Pymedia-users mailing list > > Pym...@li... > > https://lists.sourceforge.net/lists/listinfo/pymedia-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Pymedia-users mailing list > Pym...@li... > https://lists.sourceforge.net/lists/listinfo/pymedia-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Pymedia-users mailing list > Pym...@li... > https://lists.sourceforge.net/lists/listinfo/pymedia-users > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Pymedia-users mailing list > Pym...@li... > https://lists.sourceforge.net/lists/listinfo/pymedia-users > |