Hi, dear GEM-list !
i'm trying to do this:
1) live video goes into PD via web-camera and [pix_video] 2) with some intervals of time, given by [metro] ... 3) ... the video is captured into pictures and stored to HD as jpeg or tif files with [pix_write] 4) in parallel [pix_image] takes the pictures from HD and showes them as slide-show 5) as more the pictures produced - the more shown and so on..
very simple idea - a kind of algorythm for continues frame-by-frame animation
- ido it via HD but not [pix_buffer] because it is the installation and slide show will need to be continued form the very first image after the PC shot down and switch on next days .. so i need to store images and to match them with new names ..
problems wich need your help:
1] i don't need to show the actual video stream.. i just need to show slide show.. but [pix_write] captures only if smthng is rendered to the gemwin
- can i make the second gemwin for the slideshow ?
- ok, i can let there be two pictures rendered together: left - the live ; right - the slideshow... so i tried to capture only half of the window - and the [pix_write] has the [Xpos Ypos( and the same parameteres for Size ... but nowhere told in what numeration it is ? .. it is not the same as size and position of geometries such are [rectangle] - so i can't easily match the area to capture.. How can i do it ???
2] i need to make my own names for the files stored - simple like : 1.jpg ; 2.jpg ... [pix_write] doesn't allow that. it makes some difficult names.
- how could i then recall that files with [pix_image] ? how can i form a message with the filename like "gem00001.tif" , where the only part will be changing the "1" .. i tryied [makefilename], but it makes [symbols], which can't be put into [message( - it means useless for the changing filenames on the fly ... ?
Thanks for your help !
On 06/14/2013 04:44 AM, Фывапр Олджэвич wrote:
problems wich need your help:
1] i don't need to show the actual video stream.. i just need to show slide show.. but [pix_write] captures only if smthng is rendered to the gemwin
[pix_writer] will do exactly what you want: take a pix (as produced by [pix_video]) and write it to disk.
- can i make the second gemwin for the slideshow ?
current Gem only has single window support.
- ok, i can let there be two pictures rendered together: left - the live ; right - the slideshow... so i tried to capture only half of the window - and the [pix_write] has the [Xpos Ypos( and the same parameteres for Size ... but nowhere told in what numeration it is ? .. it is not the same as size and position of geometries such are [rectangle] - so i can't easily match the area to capture.. How can i do it ???
[translate] takes 3d-coordinates, whereas [pix_write] takes screen coordinates (pixels). the relation between the two depends on a number of things. but with [pix_writer] you do not have this problem.
2] i need to make my own names for the files stored - simple like : 1.jpg ; 2.jpg ... [pix_write] doesn't allow that. it makes some difficult names.
it makes difficult names so that when you have a lot of images they are still sorted correctly. (instead of: 1.jpg 10.jpg 100.jpg ... 199.jpg 2.jpg 20.jpg ...)
since [pix_writer] is essentially an abstraction (based on [pix_buffer] of size 1), you can modify the naming algorithm to your liking.
- how could i then recall that files with [pix_image] ? how can i form a message with the filename like "gem00001.tif" , where the only part will be changing the "1" .. i tryied [makefilename], but it makes [symbols], which can't be put into [message( - it means useless for the changing filenames on the fly ... ?
??? you seem to get something wrong here, as [makefilename]'s main purpose it to create filenames that can be used in [messages( on the fly:
[loadbang] | [metro 1000] | [random 100] | [makefilename gem%5d.tif] | [open $1( | [pix_image]
On 06/14/2013 09:15 AM, IOhannes zmölnig wrote:
On 06/14/2013 04:44 AM, Фывапр Олджэвич wrote:
problems wich need your help:
1] i don't need to show the actual video stream.. i just need to show slide show.. but [pix_write] captures only if smthng is rendered to the gemwin
[pix_writer] will do exactly what you want: take a pix (as produced by
just to make sure that the message did not get lost: i'm referring to [pix_writer] (with a trailing R) instead of the [pix_write] object.
fgnasdr# IOhannes
thanks so much everyone ! i'll try to use [pix_writeR] and two PD's with network.
cheers
Пятница, 14 июня 2013, 14:59 +02:00 от IOhannes zmölnig zmoelnig@iem.at:
On 06/14/2013 09:15 AM, IOhannes zmölnig wrote:
On 06/14/2013 04:44 AM, Фывапр Олджэвич wrote:
problems wich need your help:
1] i don't need to show the actual video stream.. i just need to show slide show.. but [pix_write] captures only if smthng is rendered to the gemwin
[pix_writer] will do exactly what you want: take a pix (as produced by
just to make sure that the message did not get lost: i'm referring to [pix_writer] (with a trailing R) instead of the [pix_write] object.
fgnasdr# IOhannes
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
Hi again..!
1) the [pix_writer] seems to work, but it makes pictures like this only (in attach) - so it tripples them.. i found a help patch on github - nothing said about it..
do you know this bug ? how can i fix it ?
2) IOhannes said, that it is an abstraction, but i can't open it...
3) finally there's just one inlet and in the help patch nothing said about position and size (this is not the crutual for my case, but anyway)
thanks !
Пятница, 14 июня 2013, 9:15 +02:00 от IOhannes zmölnig zmoelnig@iem.at:
On 06/14/2013 04:44 AM, Фывапр Олджэвич wrote:
problems wich need your help:
1] i don't need to show the actual video stream.. i just need to show slide show.. but [pix_write] captures only if smthng is rendered to the gemwin
[pix_writer] will do exactly what you want: take a pix (as produced by [pix_video]) and write it to disk.
- can i make the second gemwin for the slideshow ?
current Gem only has single window support.
- ok, i can let there be two pictures rendered together: left - the live ; right - the slideshow... so i tried to capture only half of the window - and the [pix_write] has the [Xpos Ypos( and the same parameteres for Size ... but nowhere told in what numeration it is ? .. it is not the same as size and position of geometries such are [rectangle] - so i can't easily match the area to capture.. How can i do it ???
[translate] takes 3d-coordinates, whereas [pix_write] takes screen coordinates (pixels). the relation between the two depends on a number of things. but with [pix_writer] you do not have this problem.
2] i need to make my own names for the files stored - simple like : 1.jpg ; 2.jpg ... [pix_write] doesn't allow that. it makes some difficult names.
it makes difficult names so that when you have a lot of images they are still sorted correctly. (instead of: 1.jpg 10.jpg 100.jpg ... 199.jpg 2.jpg 20.jpg ...)
since [pix_writer] is essentially an abstraction (based on [pix_buffer] of size 1), you can modify the naming algorithm to your liking.
- how could i then recall that files with [pix_image] ? how can i form a message with the filename like "gem00001.tif" , where the only part will be changing the "1" .. i tryied [makefilename], but it makes [symbols], which can't be put into [message( - it means useless for the changing filenames on the fly ... ?
??? you seem to get something wrong here, as [makefilename]'s main purpose it to create filenames that can be used in [messages( on the fly:
[loadbang] | [metro 1000] | [random 100] | [makefilename gem%5d.tif] | [open $1( | [pix_image]
GEM-dev mailing list GEM-dev@iem.at http://lists.puredata.info/listinfo/gem-dev
On 06/14/2013 07:32 PM, Фывапр Олджэвич wrote:
Hi again..!
- the [pix_writer] seems to work, but it makes pictures like this only (in attach) - so it tripples them.. i found a help patch on github - nothing said about it..
do you know this bug ? how can i fix it ?
it shouldn't "triple" the images. try putting a [pix_rgba] before the [pix_writer].
also, when reporting bugs, please provide full platform info (and preferably post them on http://bugs.gem.iem.at)
- IOhannes said, that it is an abstraction, but i can't open it...
ah well, there is both an abstraction implementation and an external implementation. check out abstractions/pix_writer.pd for how to solve the problem as abstraction.
- finally there's just one inlet and in the help patch nothing said about position and size (this is not the crutual for my case, but anyway)
because [pix_writer] doesn't allow you to only write a sub-image of the pix. if you need that, use [pix_crop] before.
fgmnasdrt IOhannes