graphics? 2) I get clicks when playing sound while also doing graphics. Playback (using sfplay~) is fine if I'm not rendering graphics. I'm running RH9 (planetCCRMA) with an m-audio soundcard. I'm not using Jack just alsa.
The first question is in part a way to bypass problem 2 i.e. can I generate the graphics into a file and than mix it with the sound separately.
Thanks Oded
Oded Ben-Tal wrote:
- is there a way to generate a file (in whatever video format) from gem
graphics?
[pix_write] allows you to capture still-images (either jpeg or tiff) with [auto 1( it will capture each frame. it is slooow.
- I get clicks when playing sound while also doing graphics. Playback
(using sfplay~) is fine if I'm not rendering graphics. I'm running RH9 (planetCCRMA) with an m-audio soundcard. I'm not using Jack just alsa.
probably "-rt" (if you are using nvidia, make sure you have a kernel>=2.6.10 to prevent freezes) and/or "-buffersize" can help.
another possibility would be to run 2 seperate pd's on one machine (the audio-part with higher priority) and communicate via [netsend]/[netreceive]
mfg.asd.r IOhannes
In regards to part 2, have you tried either using the -rt flag for PD (may require sudo or root, depending on your config) or using JACK? The first solution (realtime) often fixes many click problems. Otherwise, you might also make sure your video card is properly set up. Type "glxinfo" and look for the line:
direct rendering: Yes
to see if OpenGL is properly set up for your graphics card. If it isn't then all your 3D is being rendered by the CPU, which takes a lot more cycles then if it is rendered on the card.
With this in mind, it might actually be easier on your system to render your OpenGL graphics at the same time as doing your sound, assuming your sound and video is properly configured, as video playback (espc decoding) requires much more CPU than OpenGL.
d.
Oded Ben-Tal wrote:
- is there a way to generate a file (in whatever video format) from gem
graphics? 2) I get clicks when playing sound while also doing graphics. Playback (using sfplay~) is fine if I'm not rendering graphics. I'm running RH9 (planetCCRMA) with an m-audio soundcard. I'm not using Jack just alsa.
The first question is in part a way to bypass problem 2 i.e. can I generate the graphics into a file and than mix it with the sound separately.
Hallo, derek holzer hat gesagt: // derek holzer wrote:
In regards to part 2, have you tried either using the -rt flag for PD (may require sudo or root, depending on your config) or using JACK?
Careful here: "-rt" and GEM combined is instant death on both my machines!
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41
Frank Barknecht wrote:
Hallo, derek holzer hat gesagt: // derek holzer wrote:
In regards to part 2, have you tried either using the -rt flag for PD (may require sudo or root, depending on your config) or using JACK?
Careful here: "-rt" and GEM combined is instant death on both my machines!
this is why i keep saying: you need a kernel>=2.6.10
or what do you mean by "instant death" ?
mfg.asd.r IOhannes
Ciao
Hallo, IOhannes m zmoelnig hat gesagt: // IOhannes m zmoelnig wrote:
this is why i keep saying: you need a kernel>=2.6.10
or what do you mean by "instant death" ?
I'm still running 2.6.9. A reason to upgrade...
Frank Barknecht _ ______footils.org__
_ __latest track: "scans" _ http://footils.org/cms/show/41
In regards to part 2, have you tried either using the -rt flag for PD (may require sudo or root, depending on your config) or using JACK? The first solution (realtime) often fixes many click problems. Otherwise, you might also make sure your video card is properly set up. Type "glxinfo" and look for the line:
direct rendering: Yes
to see if OpenGL is properly set up for your graphics card.
and -blocksize (up and down) and I still get frequent audio pops. 3) I haven't tried using 2 pds in parallel one for sound one for graphics. But the sound is only playback of an existing file (no processing) through [sfplay] so my intuition is that it doesn't make much sense in terms of computation load. 4) I don't work with Jack bacause I get x_run errors and added noise.
any other ideas?
thanks Oded
any other ideas?
i will not be able to help you very much... but when i was with planetccrma (redhat 9, kernel 2.4) i had the same problem. running 2 pd doesn't help at all. i've switched to gentoo, with ck-kernel 2.6.11, i'm using jack (of course), all in -R, -rt and now no more glitch when doing gem / pdp and sound. i'm using a nvidia by the way. i didn't try with an ati.
patrick
Ok, time to chime in.
I've presonally never been able to gem Gem to render without messing up audio. The way the render chain works DOES interfere with audio rendering, at least it did on linux 2-3 years ago when I last did audio and Gem at the same time.
For maximum flexibility you should run two instances of PD, one for Gem and one for Audio. They can communicate using local socket netsend,netreceive. To get even better performance put the audio on a different machine than the video.
Maybe someone with better knowledge of PDs scheduling could chime into why this happens and why some machines (patricks gentoo 2.6.11 (is that a low-latency kernel?) seems to work great.
B.
Oded Ben-Tal wrote:
In regards to part 2, have you tried either using the -rt flag for PD (may require sudo or root, depending on your config) or using JACK? The first solution (realtime) often fixes many click problems. Otherwise, you might also make sure your video card is properly set up. Type "glxinfo" and look for the line:
direct rendering: Yes
to see if OpenGL is properly set up for your graphics card.
- I checked and I have direct rendering: yes.
- I tried -rt and it makes no difference. I also tried changing -audiobuf
and -blocksize (up and down) and I still get frequent audio pops. 3) I haven't tried using 2 pds in parallel one for sound one for graphics. But the sound is only playback of an existing file (no processing) through [sfplay] so my intuition is that it doesn't make much sense in terms of computation load. 4) I don't work with Jack bacause I get x_run errors and added noise.
any other ideas?
thanks Oded
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
# we have an installation using two PD/Gem instances running in parallel on one machine. each one has a gemwin and one does sound at the same time. they communicate over OSC.
it works fine: old doco on:
new must come sooooooooonnnn
tm
On Apr 25, 2005, at 6:50 PM, derek holzer wrote:
In regards to part 2, have you tried either using the -rt flag for PD (may require sudo or root, depending on your config) or using JACK? The first solution (realtime) often fixes many click problems. Otherwise, you might also make sure your video card is properly set up. Type "glxinfo" and look for the line:
direct rendering: Yes
to see if OpenGL is properly set up for your graphics card. If it isn't then all your 3D is being rendered by the CPU, which takes a lot more cycles then if it is rendered on the card.
With this in mind, it might actually be easier on your system to render your OpenGL graphics at the same time as doing your sound, assuming your sound and video is properly configured, as video playback (espc decoding) requires much more CPU than OpenGL.
d.
Oded Ben-Tal wrote:
- is there a way to generate a file (in whatever video format) from
gem graphics? 2) I get clicks when playing sound while also doing graphics. Playback (using sfplay~) is fine if I'm not rendering graphics. I'm running RH9 (planetCCRMA) with an m-audio soundcard. I'm not using Jack just alsa. The first question is in part a way to bypass problem 2 i.e. can I generate the graphics into a file and than mix it with the sound separately.
-- derek holzer ::: http://www.umatic.nl ---Oblique Strategy # 7: "Accept advice"
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
----- Tim Boykett TIME'S UP::Research Department \ / Industriezeile 33b A-4020 Linz Austria X +43-732-787804(ph) +43-732-7878043(fx) / \ tim@timesup.org http://www.timesup.org