[PD] GEM error on latest pd extended with Ubuntu Gutsy

2007-10-30 Thread altern
Hi

I am getting this GEM error that was not there before changing to latest 
PD extended Hans sent last week to the list, with Ubuntu Gutsy (Ubuntu 
Studio flavor, kernel 2.6.22-14-generic #1 SM). I am trying to play a 
quicktime video, before there was no problem at all, now it doesnt 
display anything and sometimes it crashes when trying to open the file.

This is the PD output in PD main window.

[pix_movieNEW]: opening /home/r2d2/ixi/pd/ehu/ehu/../train.mov with
format 1908
[pix_movieNEW]:  ...
[pix_movieNEW]:  ...
[pix_movieNEW]: loaded file: /home/r2d2/ixi/pd/ehu/ehu/../train.mov with
108 frames (240x180) at 12.019231 fps
Direct Rendering enabled!
GEM: Start rendering
GL: invalid value

and this is the error i get if i run it from the terminal

$ pd video-help.pd
tk scaling is 1.20094562648
init : Avifile RELEASE-0.7.47-070916-12:47-4.1.3
init : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 apic
sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht
tm up
init : 1694.91 MHz Intel(R) Pentium(R) 4 CPU 1.70GHz processor detected
[h263 @ 0xb6dd4614]run overflow at 0x0 i:1
[h263 @ 0xb6dd4614]Error at MB: 0
[h263 @ 0xb6dd4614]run overflow at 0x3 i:1
[h263 @ 0xb6dd4614]Error at MB: 69
[h263 @ 0xb6dd4614]run overflow at 0x6 i:1
[h263 @ 0xb6dd4614]Error at MB: 138
[h263 @ 0xb6dd4614]run overflow at 0x9 i:1
[h263 @ 0xb6dd4614]Error at MB: 207
[h263 @ 0xb6dd4614]run overflow at 0x12 i:1
[h263 @ 0xb6dd4614]Error at MB: 276
[h263 @ 0xb6dd4614]run overflow at 0x15 i:1
[h263 @ 0xb6dd4614]Error at MB: 345
[h263 @ 0xb6dd4614]concealing 396 DC, 396 AC, 396 MV errors

I have been trying to find if there is some codec or lib i need to 
install but i could not find any.

thanks in advance for any help

enrike

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] gl invalid enumerant on windows with Intel graphics card

2007-10-30 Thread altern
hi again

For an installation i have to use a machine with a built in Intel 
graphics card (dont know exactly the card). I was able to test it 
briefly but i get an error  GL invalid enumerant (or something like 
this, the output is in spanish) and the webcam texture is not loaded, so 
i just get a white rectangle. I guess the error comes from pix_texture. 
However I only get this error on that machine. No other machine i tested 
the patches in had any problem like this.

I have been checking the pd list and i found here
http://lists.puredata.info/pipermail/pd-list/2007-01/046438.html
a suggestion to send mode 0 to pix_texture.

I have not been able to test this as I dont have the machine with me. 
But i will have access to it tomorrow for very limited time so i would 
like to know in advance if this might be a solution or if there are 
other approaches to this issue.

thanks

enrike


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM error on latest pd extended with Ubuntu Gutsy

2007-10-30 Thread Thomas Mayer
Hello Enrike,

altern wrote:
 Hi
 
 I am getting this GEM error that was not there before changing to latest 
 PD extended Hans sent last week to the list, with Ubuntu Gutsy (Ubuntu 
 Studio flavor, kernel 2.6.22-14-generic #1 SM). I am trying to play a 
 quicktime video, before there was no problem at all, now it doesnt 
 display anything and sometimes it crashes when trying to open the file.

 and this is the error i get if i run it from the terminal
 
 $ pd video-help.pd
 tk scaling is 1.20094562648
 init : Avifile RELEASE-0.7.47-070916-12:47-4.1.3
 init : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 apic
 sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht
 tm up
 init : 1694.91 MHz Intel(R) Pentium(R) 4 CPU 1.70GHz processor detected
 [h263 @ 0xb6dd4614]run overflow at 0x0 i:1
 [h263 @ 0xb6dd4614]Error at MB: 0
 [h263 @ 0xb6dd4614]run overflow at 0x3 i:1
 [h263 @ 0xb6dd4614]Error at MB: 69
 [h263 @ 0xb6dd4614]run overflow at 0x6 i:1
 [h263 @ 0xb6dd4614]Error at MB: 138
 [h263 @ 0xb6dd4614]run overflow at 0x9 i:1
 [h263 @ 0xb6dd4614]Error at MB: 207
 [h263 @ 0xb6dd4614]run overflow at 0x12 i:1
 [h263 @ 0xb6dd4614]Error at MB: 276
 [h263 @ 0xb6dd4614]run overflow at 0x15 i:1
 [h263 @ 0xb6dd4614]Error at MB: 345
 [h263 @ 0xb6dd4614]concealing 396 DC, 396 AC, 396 MV errors
 
 I have been trying to find if there is some codec or lib i need to 
 install but i could not find any.

Maybe the video is corrupt, have you tried transcoding the video with
mencoder or transcode?

Try

$ mencoder -ovc xvid -xvidencopts bitrate=800 -oac copy -o train.avi
train.mov

and load the film train.avi

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] TkWidget library

2007-10-30 Thread cdr
 http://puredata.info/dev/TkWidget
 
 Please add ideas, comments, etc
 this, join in!  The next thing to for GUIs after this is to extend  
 tclpd so that you can write totally custom GUI objects completely in  

is there something wrong with the [widget] external that made you want to 
reinvent it?

is [widget] worth fixing, but the rest of PD's GUI isnt?

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] Fun with Lua coroutines

2007-10-30 Thread Frank Barknecht
Hi,

ah, Lua is so much fun. Attached is some coroutine scheduling to
create lots of bullets as an excercise for the bullet hell
Ikaruga-style shmup I'm going to write for Pd/Gem in 2008. Or maybe
not. Anyway, pdlua required, get it from goto10.org

Ciao
-- 
 Frank Barknecht _ __footils.org__


bulletmanager-help.pd
Description: application/puredata
--
-- Use of coroutines to implement a simple scheduler (as in Game Prog. 
-- Gems 6)
--

local manager = {
tasks = {}
}

function manager:addtask (name, task)
self.tasks[name] = coroutine.create(task)
end

function manager:step ()
for name,co in pairs(self.tasks) do
coroutine.resume(co)
if coroutine.status(co) == dead then
self.tasks[name] = nil
end
end
end

--
-- Bullet coroutine: This is the task that will get created for every bullet 
-- and resumed until dead.
--

local function bullet(startangle, name, printobj)
startangle = startangle or 0
name = name or unknown
printobj = printobj or error(supply a printer object, 2)
local co = function(scheduler)
local age = 0
-- inital pos and rot:
local x = 0
local y = 0
local angle = math.rad(startangle)
-- motion:
local step = 0.3
local rot = math.rad(11)

while (-4  x) and (x  4) and (-4  y) and (y  4) and (age  100) do
printobj:printfun({name, x, y, age})
coroutine.yield()
angle = angle + rot
x = x + step * math.cos(angle)
y = y + step * math.sin(angle)
age = age + 1
end
end
return co
end

--
-- Pd class
--

local BulletManager = pd.Class:new():register(bulletmanager)

function BulletManager:initialize(name)
self.outlets = 1
self.inlets = 1
self.b = {}
self.s = manager
return true
end

function BulletManager:in_1_bang()
self.s:step()
end

function BulletManager:in_1_add(atoms)
if type(atoms[1]) == number then
local b = atoms[1]
self.s:addtask(b, bullet(b*5, b, self))
else
self:error(wrong type: add float)
end
end

function BulletManager:printfun(msg)
self:outlet(1, list, msg)
end

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] TkWidget library

2007-10-30 Thread Hans-Christoph Steiner

On Oct 30, 2007, at 5:01 AM, cdr wrote:

 http://puredata.info/dev/TkWidget

 Please add ideas, comments, etc
 this, join in!  The next thing to for GUIs after this is to extend
 tclpd so that you can write totally custom GUI objects completely in

 is there something wrong with the [widget] external that made you  
 want to reinvent it?

I think widget is great, I think of this as building upon that.   
Combining Federico's tclpd + [widget] means writing full-fledged  
native Pd objects in Tcl/Tk.  Federico mentioned a problem with  
[widget] in that the code runs only in the GUI process, he can speak  
to that more.  I'd like to see native objects rather than scripts in   
the [widget] object.

 is [widget] worth fixing, but the rest of PD's GUI isnt?

Both are worth doing, want to help? :)

.hc



 


Free software means you control what your computer does. Non-free  
software means someone else controls that, and to some extent  
controls you. - Richard M. Stallman



___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] russian pdpedia template ready

2007-10-30 Thread danja vasiliev
Hello Ilya, good job ;)
i commented on some, i think the tongue can be a little easier, somewhat
simpler...

[EMAIL PROTECTED] wrote:
 i just made the basic translation of the template.
 could be nice if Danya could consider the alternative options
 (i put in the comments)
 
 i also couldn't get the css stuff quite right -;(

but http://wiki.puredata.info/ru/MediaWiki:Common.css seems to be right,
or it is not?

 # wikipedia terms (these should come straight from Wikipedia)
 my $stub = Заготовка;
 my $template = Шаблон;
 my $category = Категория; ## или раздел ?
 my $infobox = Инфорамка;
 
 # термины pdpedia 
 my $objectclass = Объект-класс;
 
 # заголовки
 my $inlets = Впуска;## по словарю а. мюллера
Вход ?
 my $outlets = Выпуска; 
Выход ?
 my $arguments = Аргументы; ## ;) и факты ?
Параметры, Опции (the last (options) may be no correct as some
object require arguments, is it so?)
 my $messages = Сообщения;
 
 # infobox
 my $name = Название;
 my $description = Описание;
 my $abbreviation = Аббревиатура; ## псевдоним ?
Сокращение ?
 my $library = Библиотека;
 my $author = Автор;
 my $developer = Разработчик;
 my $releaseVersion = Версия релиза; ## номер выпуска ?
 my $releaseDate = Дата релиза; ## выпуска ? или рЭлиза ?
Дата выпуска i think
 my $dependencies = Зависимости;
 my $license = Лицензия;
 my $website = Домашняя страница;
 my $programmingLanguage = Язык программирования;
 my $platform = Платформа;
 my $operatingSystem = Операционная Система;
 my $language = Язык;
 my $dataType = Вид данных;
Тип данных ?
 my $distributions = Дистрибутивы; ## или может Дистрибуции ?
i like Дистрибутивы
 my $status = Статус;





-- 
_|_   danja vasiliev
 ---(*)---http://k0a1a.net/recent
'   +31-64-2654486
--

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Fun with Lua coroutines

2007-10-30 Thread Mike McGonagle
Hum, exactly where on goto10 is the stuff for pdlua? I looked and
there doesn't seem to be an obvious link.

Thanks,

Mike


On 10/30/07, Frank Barknecht [EMAIL PROTECTED] wrote:
 Hi,

 ah, Lua is so much fun. Attached is some coroutine scheduling to
 create lots of bullets as an excercise for the bullet hell
 Ikaruga-style shmup I'm going to write for Pd/Gem in 2008. Or maybe
 not. Anyway, pdlua required, get it from goto10.org

 Ciao
 --
  Frank Barknecht _ __footils.org__

 ___
 PD-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list





-- 
Help the Environment, Plant a Bush back in Texas!

I place economy among the first and most important republican
virtues, and public debt as the greatest of the dangers to be feared.
To preserve our independence, we must not let our rulers load us with
perpetual debt.
-- Thomas Jefferson, third US president, architect and author (1743-1826)

Give Peace a Chance -- John Lennon (9 October 1940 – 8 December 1980)

Peace may sound simple—one beautiful word— but it requires everything
we have, every quality, every strength, every dream, every high ideal.
—Yehudi Menuhin (1916–1999), musician

If you think you can, or you think you can't, you are probably right.
—Mark Twain

Art may imitate life, but life imitates TV.
Ani DiFranco

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Fun with Lua coroutines

2007-10-30 Thread Claude Heiland-Allen
Mike McGonagle wrote:
 Hum, exactly where on goto10 is the stuff for pdlua? I looked and
 there doesn't seem to be an obvious link.

development version:

svn co https://devel.goto10.org/svn/maximus/pdlua pdlua

or browse:

https://devel.goto10.org/listing.php?repname=maximuspath=%2Fpdlua%2Frev=0sc=0

or tarball of latest release:

https://devel.goto10.org/dl.php?repname=maximuspath=%2Freleases%2Fpdlua-0.2%2Frev=0isdir=1


Thanks,


Claude

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM error on latest pd extended with Ubuntu Gutsy

2007-10-30 Thread Roman Haefeli
On Tue, 2007-10-30 at 13:38 +0100, Thomas Mayer wrote:

 Maybe the video is corrupt, have you tried transcoding the video with
 mencoder or transcode?
 
 Try
 
 $ mencoder -ovc xvid -xvidencopts bitrate=800 -oac copy -o train.avi
 train.mov
 
 and load the film train.avi

hi thomas

maybe i missed something, but i don't quite see why you are suggesting
to reencode the movie to avi-container with xvid codec. usually it is a
bad thing to do, because xvid codec, that is quite heavy cpu-wise to
decode (ok, on decent computers it is not that much an issue anymore),
and - what is much more important - it is a so called interframe codec,
which means, that many frames are dependent on each other. this
basically means, that the codec is optimized to be played only forward
and at 1x speed. playing at a different speed or backwards can either
produce funny artefacts or not work at all. usually when using a video
in gem, having high flexibility and low cpu cost is much more important
than small file size. that is why so called intraframe codecs are rather
recommended for this kind of task. 'intraframe' means, that each frame
is encoded separately, which makes it very easy to access and render
random frames. i think most supported intraframe codecs are 'jpeg',
'mjpeg' and 'dv'. 
yo, i am not very much an expert in this field, so i might be not very
precise in everything, but i hope i could give some idea, why generally
you rather not want xvid as movie codec to be used in gem (although you
are especially looking for funny effects).

roman





___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM error on latest pd extended with Ubuntu Gutsy

2007-10-30 Thread Roman Haefeli
On Wed, 2007-10-31 at 03:29 +0100, Roman Haefeli wrote:
 On Tue, 2007-10-30 at 13:38 +0100, Thomas Mayer wrote:
 
  Maybe the video is corrupt, have you tried transcoding the video with
  mencoder or transcode?
  
  Try
  
  $ mencoder -ovc xvid -xvidencopts bitrate=800 -oac copy -o train.avi
  train.mov
  
  and load the film train.avi
 
 hi thomas
 
 maybe i missed something, but i don't quite see why you are suggesting
 to reencode the movie to avi-container with xvid codec. usually it is a
 bad thing to do, because xvid codec, that is quite heavy cpu-wise to
 decode (ok, on decent computers it is not that much an issue anymore),
 and - what is much more important - it is a so called interframe codec,
 which means, that many frames are dependent on each other. this
 basically means, that the codec is optimized to be played only forward
 and at 1x speed. playing at a different speed or backwards can either
 produce funny artefacts or not work at all. usually when using a video
 in gem, having high flexibility and low cpu cost is much more important
 than small file size. that is why so called intraframe codecs are rather
 recommended for this kind of task. 'intraframe' means, that each frame
 is encoded separately, which makes it very easy to access and render
 random frames. i think most supported intraframe codecs are 'jpeg',
 'mjpeg' and 'dv'. 
 yo, i am not very much an expert in this field, so i might be not very
 precise in everything, but i hope i could give some idea, why generally
 you rather not want xvid as movie codec to be used in gem (although you
 are especially looking for funny effects).

argh, sorry for my english. i wanted to say:

excepting you are looking for funny effects.

roman





___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM error on latest pd extended with Ubuntu Gutsy

2007-10-30 Thread Thomas Mayer
Roman Haefeli wrote:
 On Tue, 2007-10-30 at 13:38 +0100, Thomas Mayer wrote:
 
 Maybe the video is corrupt, have you tried transcoding the video with
 mencoder or transcode?

 Try

 $ mencoder -ovc xvid -xvidencopts bitrate=800 -oac copy -o train.avi
 train.mov

 and load the film train.avi
 
 hi thomas
 
 maybe i missed something, but i don't quite see why you are suggesting
 to reencode the movie to avi-container with xvid codec. 

I don't have much experience with different codecs/containers and Gem,
but - as I said - my first guess is, that the movie is somehow corrupt.
So 1. reencoding the movie would be an option to check for this, 2.
mencoder is easy to install on a Linux system and 3. this is a setting
that works on my system, as mencoder with -ovc lavc produces movies,
that Gem (pd-extended 0.39-3 on Debian) can't load. That was merely an
idea for troubleshooting.

cu Thomas
-- 
Prisons are needed only to provide the illusion that courts and police
are effective. They're a kind of job insurance.
(Leto II. in: Frank Herbert, God Emperor of Dune)
http://thomas.dergrossebruder.org/

___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] GEM error on latest pd extended with Ubuntu Gutsy

2007-10-30 Thread Roman Haefeli
On Wed, 2007-10-31 at 05:23 +0100, Thomas Mayer wrote:
 Roman Haefeli wrote:
  On Tue, 2007-10-30 at 13:38 +0100, Thomas Mayer wrote:
  
  Maybe the video is corrupt, have you tried transcoding the video with
  mencoder or transcode?
 
  Try
 
  $ mencoder -ovc xvid -xvidencopts bitrate=800 -oac copy -o train.avi
  train.mov
 
  and load the film train.avi
  
  hi thomas
  
  maybe i missed something, but i don't quite see why you are suggesting
  to reencode the movie to avi-container with xvid codec. 
 
 I don't have much experience with different codecs/containers and Gem,
 but - as I said - my first guess is, that the movie is somehow corrupt.
 So 1. reencoding the movie would be an option to check for this, 2.
 mencoder is easy to install on a Linux system and 3. this is a setting
 that works on my system, as mencoder with -ovc lavc produces movies,
 that Gem (pd-extended 0.39-3 on Debian) can't load. That was merely an
 idea for troubleshooting.

lavc is a codec family, not a codec. you need to specify a codec with
'-ovc lavc -lavcopts vcodec=codecname'. 

however, i didn't want to suggest, that i do _not_ believe, that the
file could be corrupt, but i would have tried a different codec first,
that is more likely to work. 

my suggestion is this:

mencoder input.mov -ovc lavc -lavcopts vcodec=mjpeg -nosound -of lavf
-lavfopts format=mov -o output.mov  

# if you use an older version of mencoder, you probably need to add a
# flag called 'i_certify_not_to_use_b_frames' (don't know the exact name
# but you'll find it in the manual.


(in one line)

this works at least here and some other people reported, that it works.
it would be interesting to know, if it also helps in enrike's case 

roman





___ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: 
http://mail.yahoo.de


___
PD-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list