Re: [PD] reverse kickstarter update: omgponies

2013-08-22 Thread Jack
Le 22/08/2013 07:13, Jonathan Wilkes a écrit :
 Hi list,

 I've got some updates to [canvasinfo], [pdinfo], and [classinfo] that
 I'll put in a demo build either tomorrow or the next day.

 I also added a new data structure class with two creators:
 [drawimage] - draw an image on a canvas
 [drawsprite] - draw a sprite on a canvas

 The [drawsprite] object takes the name of a directory containing an
 image sequence and
 loads the images into tcl/tk memory when the object gets created.  A
 ds float field can then be
 associated with that image so that when you change its value it jumps
 to that image in the
 sequence.  I used the code from [drawnumber], so you can even animate
 the sprite by clicking
 and dragging on the image.

 Since all the images are preloaded into tcl/tk, animating them is
 fairly straightforward-- tk just
 clears the old image and copies the new one from one of the images it
 has in memory.

 Of course the upshot is fairly obvious-- we can finally have ponies
 running around inside Pure
 Data patches.

 E.g., thanks to this:
 http://friendshipismagic.smackjeeves.com/comics/1223051/female-pony-base-sprites/

 I can now do this:
 https://puredata.info/Members/jancsika/omgponies.webm/view

 I just added the realtime code selection as an afterthought using
 [cnv] objects.  However, it
 would be neat to be able to group code and highlight it
 programmatically as the data is flowing.

 -Jonathan


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

Very funny animation, we can now design platform games directly in a
patch. ! ;)
More seriously, it could replace the [#see] object from gridflow,
interresting...
++

Jack


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


Re: [PD] csoundapi~ external question

2013-08-22 Thread Jamie Bullock

On 18 Aug 2013, at 09:09, peiman khosravi peimankhosr...@gmail.com wrote:

 Dear all, 
 
 When trying to load the csoundapi~ object I get this error:
 
 Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/PD/csoundapi~.pd_darwin:
  
 dlopen(/Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/PD/csoundapi~.pd_darwin,
  10): no suitable image found.  Did find:
   
 /Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/PD/csoundapi~.pd_darwin:
  mach-o, but wrong architecture
  csoundapi~
 ... couldn't create
 
 I have been told that the reason for this is because my build of PD is i386, 
 and csoundapi~ is x86_64. 
 
 I am on OS X 10.7.5 and have tried this with both vanilla and extended PD. Is 
 there a x86_64 build available that I could try? 
 

You could try compiling Pd yourself, but it's not straightforward as either 
autotools is needed or you use the fallback makefile.mac in src/ which often 
needs tweaks to make it work.

I notice Miller now has a 64-bit test build on his site, so you might want to 
(upgrade to OS X 10.8 and) try that. http://crca.ucsd.edu/~msp/software.html 

Good luck!

Jamie


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


Re: [PD] csoundapi~ external question

2013-08-22 Thread peiman khosravi
Thanks Jamie,

I saw the 64-bit test build but it's for OS X 10.8 or higher, I'm on 10.7.

Is there a homebrew formula for PD? That would be really nice.

Best,
Peiman




*www.peimankhosravi.co.uk || RSS
Feedhttp://peimankhosravi.co.uk/miscposts.rss ||
Concert News http://spectralkimia.wordpress.com/*


On 22 August 2013 09:34, Jamie Bullock ja...@jamiebullock.com wrote:


 On 18 Aug 2013, at 09:09, peiman khosravi peimankhosr...@gmail.com
 wrote:

 Dear all,

 When trying to load the csoundapi~ object I get this error:

 Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/PD/
 csoundapi~.pd_darwin:
 dlopen(/Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/PD/
 csoundapi~.pd_darwin, 10): no suitable image found.  Did find:
  /Library/Frameworks/CsoundLib64.framework/Versions/6.0/Resources/PD/
 csoundapi~.pd_darwin: mach-o, but wrong architecture
  csoundapi~
 ... couldn't create

 I have been told that the reason for this is because my build of PD is
 i386, and csoundapi~ is x86_64.

 I am on OS X 10.7.5 and have tried this with both vanilla and extended PD.
 Is there a x86_64 build available that I could try?


 You could try compiling Pd yourself, but it's not straightforward as
 either autotools is needed or you use the fallback makefile.mac in src/
 which often needs tweaks to make it work.

 I notice Miller now has a 64-bit test build on his site, so you might want
 to (upgrade to OS X 10.8 and) try that.
 http://crca.ucsd.edu/~msp/software.html

 Good luck!

 Jamie



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


Re: [PD] reverse kickstarter update: omgponies

2013-08-22 Thread João Pais

that is impressive. is the new version already somewhere to be tested?Hi list,I've got some updates to [canvasinfo], [pdinfo], and [classinfo] that I'll put in a demo build either tomorrow or the next day.I also added a new data structure class with two creators:[drawimage] - draw an image on a canvas[drawsprite] - draw a sprite on a canvasThe [drawsprite] object takes the name of a directory containing an image sequence andloads the images into tcl/tk memory when the object gets created. A ds float field can then beassociated with that image so that when you change its value it jumps to that image in thesequence. I used the code from [drawnumber], so you can even animate the sprite by clickingand dragging on the image.Since all the images are preloaded into tcl/tk, animating them is fairly straightforward-- tk justclears the old image
 and copies the new one from one of the images it has in memory.Of course the upshot is fairly obvious-- we can finally have ponies running around inside PureData patches.E.g., thanks to this:http://friendshipismagic.smackjeeves.com/comics/1223051/female-pony-base-sprites/I can now do this:https://puredata.info/Members/jancsika/omgponies.webm/viewI just added the "realtime code selection" as an afterthought using [cnv] objects. However, itwould be neat to be able to group code and highlight it programmatically as the data is flowing.-Jonathan___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] csoundapi~ external question

2013-08-22 Thread Jamie Bullock

On 22 Aug 2013, at 10:13, peiman khosravi peimankhosr...@gmail.com wrote:

 Thanks Jamie,
 
 I saw the 64-bit test build but it's for OS X 10.8 or higher, I'm on 10.7. 
 
 Is there a homebrew formula for PD? That would be really nice. 
 

I don't think so. I was considering putting one together actually, but it's all 
a question of time :)

best,

Jamie

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


[PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack
Hello,

I would like to get the stream from a XIMEA camera using gstreamer.
There is an example (in the XIMEA Linux Software Package) that use
gstreamer to get the stream. This example works fine on Ubuntu 12.04
(with kernel 3.8) and Ubuntu 13.04.
But i would like to get the stream with v4l2sink/v4l2src from gstreamer
with pdgst (or better, from [pix_video] ??? :).
My skills in C++ are bad and if someone can help me to modify the source
code (attached, dependencies : GTK+-2 and GStreamer-0.10) to make it
work only with v4l2src, it would be very nice.
The XIMEA Linux Software Package can be downloaded from :
http://www.ximea.com/support/wiki/apis/XIMEA_Linux_Software_Package
Thanx.
++

Jack


#include sys/time.h
#include pthread.h
#include gtk/gtk.h
#ifdef GDK_WINDOWING_X11
#include gdk/gdkx.h
#endif
#include gst/app/gstappsrc.h
#include gst/interfaces/xoverlay.h
#include m3api/xiApi.h
#include m3api/xiExt.h

BOOL acquire, quitting, render = TRUE;
int maxcx, maxcy, roix0, roiy0, roicx, roicy;
pthread_t videoThread;
HANDLE handle = INVALID_HANDLE_VALUE;
guintptr window_handle;

GstBusSyncReply bus_sync_handler(GstBus* bus, GstMessage* message, gpointer) {
	if(GST_MESSAGE_TYPE(message) != GST_MESSAGE_ELEMENT || !gst_structure_has_name(message-structure, prepare-xwindow-id))
		return GST_BUS_PASS;
#if GST_CHECK_VERSION(0,10,31)
	gst_x_overlay_set_window_handle(GST_X_OVERLAY(GST_MESSAGE_SRC(message)), window_handle);
#else
	gst_x_overlay_set_xwindow_id(GST_X_OVERLAY(GST_MESSAGE_SRC(message)), window_handle);
#endif
	gst_message_unref(message);
	return GST_BUS_DROP;
}

#if defined(GDK_WINDOWING_X11)
void video_widget_realize_cb(GtkWidget* widget, gpointer) {
	GdkWindow *window = gtk_widget_get_window(widget);
	if (!gdk_window_ensure_native(window))
		g_error (Couldn't create native window needed for GstXOverlay!);
	window_handle = GDK_WINDOW_XID(window);
}
#elif defined(GDK_WINDOWING_QUARTZ)
void video_widget_realize_cb(GtkWidget*, gpointer);
#else
#error Unsupported GDK backend
#endif

inline unsigned long getcurus() {
	struct timeval now;
	gettimeofday(now, NULL);
	return now.tv_sec * 100 + now.tv_usec;
}

gboolean close_cb(GtkWidget*, GdkEvent*, gpointer quit) {
	quitting = quit ? TRUE : FALSE;
	if(videoThread)
		acquire = FALSE;
	else
		gtk_main_quit();
	return TRUE;
}

void* videoDisplay(void*) {
	GtkWidget *videoWindow;
	GdkScreen *screen;
	GstElement *pipeline, *appsrc/*, *fpssink*/;
	GstFlowReturn ret;
	GstBuffer *buffer;
	GstBus *bus;
	GstCaps *caps = 0;
	int max_width, max_height;
	int prev_width = -1;
	int prev_height = -1;
	unsigned long frames = 0;
	unsigned long prevframes = 0;
	unsigned long lostframes = 0;
	unsigned long curtime, prevtime;
	long lastframe = -1;
	gchar/* *videofps,*/ title[256];
	XI_IMG_FORMAT prev_format = XI_RAW8;
	XI_IMG image;
	image.size = sizeof(XI_IMG);
	image.bp = NULL;
	image.bp_size = 0;
	gdk_threads_enter();
	videoWindow = gtk_window_new(GTK_WINDOW_TOPLEVEL);
	gtk_window_set_title(GTK_WINDOW(videoWindow), streamViewer);
	gtk_widget_set_double_buffered(videoWindow, FALSE);
	g_signal_connect(videoWindow, realize, G_CALLBACK(video_widget_realize_cb), NULL);
	g_signal_connect(videoWindow, delete-event, G_CALLBACK(close_cb), NULL);
	gtk_widget_show_all(videoWindow);
	gtk_widget_realize(videoWindow);
	screen = gdk_screen_get_default();
	max_width = 0.8*gdk_screen_get_width(screen);
	max_height = 0.8*gdk_screen_get_width(screen);
	gdk_threads_leave();
	if(xiStartAcquisition(handle) != XI_OK)
		goto exit;
	//pipeline = gst_parse_launch(appsrc is-live=TRUE name=streamViewer ! queue max-size-buffers=2 leaky=2 ! ffmpegcolorspace ! videoscale add-borders=TRUE ! fpsdisplaysink name=fpssink text-overlay=FALSE sync=FALSE, NULL);
	pipeline = gst_parse_launch(appsrc is-live=TRUE name=streamViewer ! queue max-size-buffers=2 leaky=2 ! ffmpegcolorspace ! videoscale add-borders=TRUE ! autovideosink, NULL);
	if(!pipeline)
		goto exit;
	bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));
	gst_bus_set_sync_handler(bus, (GstBusSyncHandler)bus_sync_handler, NULL);
	gst_object_unref(bus);
	appsrc = gst_bin_get_by_name(GST_BIN(pipeline), streamViewer);
	//fpssink = gst_bin_get_by_name(GST_BIN(pipeline), fpssink);
	gst_element_set_state(pipeline, GST_STATE_PLAYING);
	prevtime = getcurus();
	while(acquire) {
		if(xiGetImage(handle, 5000, image) != XI_OK)
			break;
		if(render) {
			buffer = gst_buffer_new();
			gst_buffer_set_data(buffer, (guint8*)image.bp, image.width*image.height*(image.frm == XI_RAW8 ? 1 : 3));
			GST_BUFFER_TIMESTAMP(buffer) = GST_CLOCK_TIME_NONE;
			if(prev_width != image.width || prev_height != image.height || prev_format != image.frm) {
if(caps)
	gst_caps_unref(caps);
if(image.frm == XI_RAW8)
	caps = gst_caps_new_simple (video/x-raw-gray,
			bpp, G_TYPE_INT, 8,
			depth, G_TYPE_INT, 8,
			framerate, GST_TYPE_FRACTION, 0, 1,
			width, G_TYPE_INT, image.width,
			height, G_TYPE_INT, image.height,
			NULL);
else if(image.frm == 

Re: [PD] reverse kickstarter update: omgponies

2013-08-22 Thread Jonathan Wilkes

On 08/22/2013 09:06 AM, João Pais wrote:

that is impressive. is the new version already somewhere to be tested?


I'll try to post a build later today, or tomorrow.

-Jonathan



Hi list,

I've got some updates to [canvasinfo], [pdinfo], and [classinfo]
that I'll put in a demo build either tomorrow or the next day.

I also added a new data structure class with two creators:
[drawimage] - draw an image on a canvas
[drawsprite] - draw a sprite on a canvas

The [drawsprite] object takes the name of a directory containing
an image sequence and
loads the images into tcl/tk memory when the object gets created. 
A ds float field can then be

associated with that image so that when you change its value it
jumps to that image in the
sequence.  I used the code from [drawnumber], so you can even
animate the sprite by clicking
and dragging on the image.

Since all the images are preloaded into tcl/tk, animating them is
fairly straightforward-- tk just
clears the old image and copies the new one from one of the images
it has in memory.

Of course the upshot is fairly obvious-- we can finally have
ponies running around inside Pure
Data patches.

E.g., thanks to this:

http://friendshipismagic.smackjeeves.com/comics/1223051/female-pony-base-sprites/

I can now do this:
https://puredata.info/Members/jancsika/omgponies.webm/view

I just added the realtime code selection as an afterthought
using [cnv] objects.  However, it
would be neat to be able to group code and highlight it
programmatically as the data is flowing.

-Jonathan




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


Re: [PD] reverse kickstarter update: omgponies

2013-08-22 Thread Jonathan Wilkes

On 08/22/2013 03:53 AM, Jack wrote:

Le 22/08/2013 07:13, Jonathan Wilkes a écrit :

Hi list,

I've got some updates to [canvasinfo], [pdinfo], and [classinfo] that 
I'll put in a demo build either tomorrow or the next day.


I also added a new data structure class with two creators:
[drawimage] - draw an image on a canvas
[drawsprite] - draw a sprite on a canvas

The [drawsprite] object takes the name of a directory containing an 
image sequence and
loads the images into tcl/tk memory when the object gets created.  A 
ds float field can then be
associated with that image so that when you change its value it jumps 
to that image in the
sequence.  I used the code from [drawnumber], so you can even animate 
the sprite by clicking

and dragging on the image.

Since all the images are preloaded into tcl/tk, animating them is 
fairly straightforward-- tk just
clears the old image and copies the new one from one of the images it 
has in memory.


Of course the upshot is fairly obvious-- we can finally have ponies 
running around inside Pure

Data patches.

E.g., thanks to this:
http://friendshipismagic.smackjeeves.com/comics/1223051/female-pony-base-sprites/

I can now do this:
https://puredata.info/Members/jancsika/omgponies.webm/view

I just added the realtime code selection as an afterthought using 
[cnv] objects.  However, it
would be neat to be able to group code and highlight it 
programmatically as the data is flowing.


-Jonathan


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


Very funny animation, we can now design platform games directly in a 
patch. ! ;)
More seriously, it could replace the [#see] object from gridflow, 
interresting...

++


As I understand it, [#see] is much more powerful because it's 
visualizing stuff
created from gridflow computations on the fly.  But it's probably also 
much slower

for that same reason.

One drawback to [drawsprite] is if you wanted to abuse it to draw a 
large image
sequence-- say a video clip-- you're going to use a ton of memory 
loading the images
into wish's memory.  And by default tcl/tk doesn't free that memory back 
to the OS.
However it does free it up within tcl/tk when the corresponding 
[drawsprite] is deleted--
so if you delete it and undo a bunch of times it won't consume more 
memory than it did

in the first place.

But for small sprites this isn't really an issue, and once the images 
are loaded it is very

cheap to copy/cut the scalar images on a canvas.

-Jonathan



Jack




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


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


Re: [PD] reverse kickstarter update: omgponies

2013-08-22 Thread Jack
Le 22/08/2013 16:36, Jonathan Wilkes a écrit :
 On 08/22/2013 03:53 AM, Jack wrote:
 Le 22/08/2013 07:13, Jonathan Wilkes a écrit :
 Hi list,

 I've got some updates to [canvasinfo], [pdinfo], and [classinfo]
 that I'll put in a demo build either tomorrow or the next day.

 I also added a new data structure class with two creators:
 [drawimage] - draw an image on a canvas
 [drawsprite] - draw a sprite on a canvas

 The [drawsprite] object takes the name of a directory containing an
 image sequence and
 loads the images into tcl/tk memory when the object gets created.  A
 ds float field can then be
 associated with that image so that when you change its value it
 jumps to that image in the
 sequence.  I used the code from [drawnumber], so you can even
 animate the sprite by clicking
 and dragging on the image.

 Since all the images are preloaded into tcl/tk, animating them is
 fairly straightforward-- tk just
 clears the old image and copies the new one from one of the images
 it has in memory.

 Of course the upshot is fairly obvious-- we can finally have ponies
 running around inside Pure
 Data patches.

 E.g., thanks to this:
 http://friendshipismagic.smackjeeves.com/comics/1223051/female-pony-base-sprites/

 I can now do this:
 https://puredata.info/Members/jancsika/omgponies.webm/view

 I just added the realtime code selection as an afterthought using
 [cnv] objects.  However, it
 would be neat to be able to group code and highlight it
 programmatically as the data is flowing.

 -Jonathan


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

 Very funny animation, we can now design platform games directly in a
 patch. ! ;)
 More seriously, it could replace the [#see] object from gridflow,
 interresting...
 ++

 As I understand it, [#see] is much more powerful because it's
 visualizing stuff
 created from gridflow computations on the fly.  But it's probably also
 much slower
 for that same reason.

 One drawback to [drawsprite] is if you wanted to abuse it to draw a
 large image
 sequence-- say a video clip-- you're going to use a ton of memory
 loading the images
 into wish's memory.  And by default tcl/tk doesn't free that memory
 back to the OS.
 However it does free it up within tcl/tk when the corresponding
 [drawsprite] is deleted--
 so if you delete it and undo a bunch of times it won't consume more
 memory than it did
 in the first place.

 But for small sprites this isn't really an issue, and once the images
 are loaded it is very
 cheap to copy/cut the scalar images on a canvas.

 -Jonathan


 Jack




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



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

Is it possible to add an argument to [drawsprite] to load the first X
frame of the video ? Then, it will limit the memory used for large videos.
++

Jack


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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread IOhannes m zmölnig
On 08/22/13 16:13, Jack wrote:
 Hello,
 
 I would like to get the stream from a XIMEA camera using gstreamer.
 There is an example (in the XIMEA Linux Software Package) that use
 gstreamer to get the stream. This example works fine on Ubuntu 12.04
 (with kernel 3.8) and Ubuntu 13.04.
 But i would like to get the stream with v4l2sink/v4l2src from gstreamer
 with pdgst (or better, from [pix_video] ??? :).
 My skills in C++ are bad and if someone can help me to modify the source
 code (attached, dependencies : GTK+-2 and GStreamer-0.10) to make it
 work only with v4l2src, it would be very nice.

hmm, i'm sure this is really a problem which should be solved by XIMEA:
they ought to provide proper v4l2 drivers, rather than creating their
own framework which will only ever be used by their products, and expect
each application to support their framework (that is: unless they are
willing to pay me so that i can add support for their software)

anyhow, after a quick glance at your sample code it seems that GStreamer
is *not* used to grab the video, but only for displaying it.
the actual grabbing is done in application space via the SDK.
this basically means, that you cannot do it in pdgst.

a rather quick hack would be to change the gstreamer output from
autovideosink to v4l2sink device=/dev/video42 and recompile the
streamViewer.
this should allow [pix_video] to access the video-stream via v4l2.

fgmadrs
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread IOhannes m zmölnig
On 08/22/13 16:51, IOhannes m zmölnig wrote:
 hmm, i'm sure this is really a problem which should be solved by XIMEA:
 they ought to provide proper v4l2 drivers, rather than creating their
 own framework 

just to make sure that this got through: you *really* should write to
XIMEA asking them to create proper v4l2 drivers (at least for their
USB-based cameras).

those companies often need some user feedback...

fgmasdr
IOhannes




signature.asc
Description: OpenPGP digital signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 16:51, IOhannes m zmölnig a écrit :
 On 08/22/13 16:13, Jack wrote:
 Hello,

 I would like to get the stream from a XIMEA camera using gstreamer.
 There is an example (in the XIMEA Linux Software Package) that use
 gstreamer to get the stream. This example works fine on Ubuntu 12.04
 (with kernel 3.8) and Ubuntu 13.04.
 But i would like to get the stream with v4l2sink/v4l2src from gstreamer
 with pdgst (or better, from [pix_video] ??? :).
 My skills in C++ are bad and if someone can help me to modify the source
 code (attached, dependencies : GTK+-2 and GStreamer-0.10) to make it
 work only with v4l2src, it would be very nice.

 hmm, i'm sure this is really a problem which should be solved by XIMEA:
 they ought to provide proper v4l2 drivers, rather than creating their
 own framework which will only ever be used by their products, and expect
 each application to support their framework (that is: unless they are
 willing to pay me so that i can add support for their software)
I will email to XIMEA to suggest to use v4l2. It will be very more
simple for everyone in linux world...


 anyhow, after a quick glance at your sample code it seems that GStreamer
 is *not* used to grab the video, but only for displaying it.
 the actual grabbing is done in application space via the SDK.
 this basically means, that you cannot do it in pdgst.

 a rather quick hack would be to change the gstreamer output from
 autovideosink to v4l2sink device=/dev/video42 and recompile the
 streamViewer.
 this should allow [pix_video] to access the video-stream via v4l2.
It is exactly what i do but it doesn't work.
++

Jack


 fgmadrs
 IOhannes



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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFil9AAoJEOuluecjw8GUJYIIAKBCFPJI0osmzeecP+fcmRtR
vX7jDfxQ3JjEAeqgaTpeNUdIUc2bexwowMaVi/3Ge3xnYPrA3XGG6TZwN0diFdoo
Ix6sesxjPMKxJg1GsaE3JPmaJ7f1p3OyLAPGpPqIyBTVnyfMM5ubjwA6YElYNJkE
21E7hTfrXm2I1zbkIFkqEpLcjhIm09YFbqniiRL9Ch6x1n6QJU91EwyhSQRMZYmT
MpCvEDpHS/cLCkriajdPsBT3UN5KIW/+piFF8g8v6kykd5s5v6UQeaT8/AY+kdqJ
i4OTo0oquKHzEjQ13vVgzTOXjciafGPB4ql0qFXgNe+pw/UF/k54LRVu52XQPBg=
=1U75
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 16:56, IOhannes m zmölnig a écrit :
 On 08/22/13 16:51, IOhannes m zmölnig wrote:
 hmm, i'm sure this is really a problem which should be solved by XIMEA:
 they ought to provide proper v4l2 drivers, rather than creating their
 own framework

 just to make sure that this got through: you *really* should write to
 XIMEA asking them to create proper v4l2 drivers (at least for their
 USB-based cameras).

 those companies often need some user feedback...
Yep. I will tonight.
++

Jack



 fgmasdr
 IOhannes




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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFinsAAoJEOuluecjw8GUVEAIAKczqnujBEAqXOuYMKrLLUTl
oLyHfCjrIn8CI++grmVuWUQC0VIJwSWfoX9IZ43FDPL1h5Meb1R2MYgU2Y25dtlN
c4Ho6V9XJs05jCOIlWmKQ+tT6xMBZxK35h7rO/xhGucvPC8rHtNCuxBR+XcHJwNI
MKHbRvc3e86JTURJ4ABoKWXmJ28RL0ZH92JNRgUUQA/YxtQ5R87fGtNRxhWxJhxh
tb/8TtuJhR5Ae4ccC3g033kUwfWFjJ9cjUN8RiNqR4k6ex6pZxrjjPHvsTINfPNd
6J3fzCB+WF+fV9FCFO/EuoSWozZgiWe0IFSOmiwkvNIZhcqibM/AUeCpIGPavLQ=
=pUWF
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread IOhannes m zmölnig
On 08/22/13 17:08, Jack wrote:
  a rather quick hack would be to change the gstreamer output from
 autovideosink to v4l2sink device=/dev/video42 and recompile the
 streamViewer.
 this should allow [pix_video] to access the video-stream via v4l2.
 It is exactly what i do but it doesn't work.

maybe you should clean the engines.

dfmadr
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack
Le 22/08/2013 17:10, Jack a écrit :

 Le 22/08/2013 16:56, IOhannes m zmölnig a écrit :
  On 08/22/13 16:51, IOhannes m zmölnig wrote:
  hmm, i'm sure this is really a problem which should be solved by XIMEA:
  they ought to provide proper v4l2 drivers, rather than creating their
  own framework

  just to make sure that this got through: you *really* should write to
  XIMEA asking them to create proper v4l2 drivers (at least for their
  USB-based cameras).

  those companies often need some user feedback...
 Yep. I will tonight.
 ++

 Jack

Done, I expect their answer soon and keep you informed.
++

Jack





  fgmasdr
  IOhannes




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




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


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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 17:23, IOhannes m zmölnig a écrit :
 On 08/22/13 17:08, Jack wrote:
 a rather quick hack would be to change the gstreamer output from
 autovideosink to v4l2sink device=/dev/video42 and recompile the
 streamViewer.
 this should allow [pix_video] to access the video-stream via v4l2.
 It is exactly what i do but it doesn't work.

 maybe you should clean the engines.
What does it mean clean the engines.
Thanx for your help.
++

Jack




 dfmadr
 IOhannes



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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFi7dAAoJEOuluecjw8GUuA4IAKPoKtyouk7B0sZLjwo1l7XU
/BXSZ7ZyRQlaIqC3gpJl8qmH5915H7LP37XjWkC8IzYHAZohK34NH8haH485O1Ea
JihXm2o78rFkqpDg/pOH9XAtsOrsW0rHyyjckTyenR5TlrfYZ0XikpTWSs+usogB
GrpbBwjfyLgG7/5Uw8ILQHF4reREqXlae/Jq892BxR0BVWhzGAOjIBIwK5WFvwt5
z9MD6+1mjAWmbwtlXzUsX8+NsKoFsj/IG/VaIDvTuxEQqHp9t5pjDS+bxQGGIff0
pjfooRBaW11FTY6UWZtOgo2zx0uByx1YRltu45O1ufYnvFvCOSTPha5IeOyyS/w=
=pdDv
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread IOhannes m zmölnig
On 08/22/13 17:31, Jack wrote:
 It is exactly what i do but it doesn't work.
 
 maybe you should clean the engines.
 What does it mean clean the engines.
 Thanx for your help.

it means that i have absolutely no idea what you mean by it doesn't work.

if you want help, you need to be more specific about your specific
problem, about errors, warnings...

gmasdr
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] taxinomy, website or more

2013-08-22 Thread Olivier Baudry
Dear all

I would like to make a few comments that I think are important to the
community puredata, this concerns the puredata website
_ Mailing list is very nice to read some topics. However it seems to me
that a forum with a search engine is especially useful to make queries
for topics.
_ It seems to me that it would be good to have a tab Do you know how?
spend on mini tutorials powered by community contributors (academic or not)
_ ensuite a tab with puredata projects in the context of artistic projects
_ a libraries tab divided into two categories of : 
_ librairies abstactions,
_ libraries of externals
_ A taxonomy and site-specific model of semantic data to facilitate
research and to maintain and develop the software that is used PureData
attachment: olivierbaudry_eba.vcf___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 17:47, IOhannes m zmölnig a écrit :
 On 08/22/13 17:31, Jack wrote:
 It is exactly what i do but it doesn't work.

 maybe you should clean the engines.
 What does it mean clean the engines.
 Thanx for your help.

 it means that i have absolutely no idea what you mean by it doesn't
work.

 if you want help, you need to be more specific about your specific
 problem, about errors, warnings...

 gmasdr
 IOhannes



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list
OK.
When I compile streamViewer.cpp which contains the gstreamer pipe
finishing by : v4l2sink device=/dev/video2, i get no error.
And after :
$ ./streamViewer
the application runs as expected.

In Pd, i open the help patch about [pix_video] and send the message
[driver v4l2, device 2( to [pix_video].
I expect to get the stream, but i get (in the pd console) :
Cannot open '/dev/video2': 2, Aucun fichier ou dossier de ce type
v4l: failed opening device: '/dev/video2'

So, it seems the gstreamer pipe is wrong OR the streamViewer.cpp is
wrong after the modification.
How can i solve this problem ?
++

Jack


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFjpjAAoJEOuluecjw8GU8XEH/3jk3VRdyGhkHEEtSWeU7hgy
nHV29F1UJgth2YUMZyvWSz6Xz8aRtDjmNgRpcBa2bPm9w02q7hZYrWCqKaOJUX6U
EmBoNdfnjHiB0mVImtwiOP02u7XgtLFYYE0pNw2fbDOznlJ2MQT6cB9/jvhJ3sNY
jXJLSSrQOgJHw5GCcDACOJfP9YfIUu+giz0gJxJ4wiPN5dunf2ujmIYyFx9EiFIK
ZvVTPJjcFyySjqRP5IhRvhsJfP0dYAerMMPxySGgU3OhDgM8hV/+RI9PrytXe0h7
3SZlJxa5sjUaXXcyxQFMUlZx89Y9AkrENQLEBw+n/xE/xuVUb3NvTAv0K0oMmEE=
=3B6d
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread IOhannes m zmölnig
On 08/22/13 18:05, Jack wrote:
  When I compile streamViewer.cpp which contains the gstreamer pipe
 finishing by : v4l2sink device=/dev/video2, i get no error.
 And after :
 $ ./streamViewer
 the application runs as expected.


you might try to create a slightly more complex pipeline, that outputs
to both v4l2sink *and* autovideosink (so you can see whether the
pipeline is running).

 
 In Pd, i open the help patch about [pix_video] and send the message
 [driver v4l2, device 2( to [pix_video].
 I expect to get the stream, but i get (in the pd console) :
 Cannot open '/dev/video2': 2, Aucun fichier ou dossier de ce type
 v4l: failed opening device: '/dev/video2'
 
 So, it seems the gstreamer pipe is wrong OR the streamViewer.cpp is
 wrong after the modification.
 How can i solve this problem ?

try raising the verbosity of streamViewer, to see what it really does:
 ./streamViewer --gst-debug-level=4

check what happens to the videodevice when streamViewer should write to it.
try:
 v4l2-ctl --all -d /dev/video2
to see the mode of the device.
also check /sys/devices/virtual/video4linux/video2/format whether the
format has been set correctly.

fgmasdr
IOhannes





signature.asc
Description: OpenPGP digital signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 18:23, IOhannes m zmölnig a écrit :
 On 08/22/13 18:05, Jack wrote:
  When I compile streamViewer.cpp which contains the gstreamer pipe
 finishing by : v4l2sink device=/dev/video2, i get no error.
 And after :
 $ ./streamViewer
 the application runs as expected.


 you might try to create a slightly more complex pipeline, that outputs
 to both v4l2sink *and* autovideosink (so you can see whether the
 pipeline is running).


 In Pd, i open the help patch about [pix_video] and send the message
 [driver v4l2, device 2( to [pix_video].
 I expect to get the stream, but i get (in the pd console) :
 Cannot open '/dev/video2': 2, Aucun fichier ou dossier de ce type
 v4l: failed opening device: '/dev/video2'

 So, it seems the gstreamer pipe is wrong OR the streamViewer.cpp is
 wrong after the modification.
 How can i solve this problem ?

 try raising the verbosity of streamViewer, to see what it really does:
  ./streamViewer --gst-debug-level=4
I get that in the terminal when it is running :

0:00:21.907218447 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1073479680 = 20)
0:00:21.907237033 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1486:gst_app_src_push_buffer_full:streamViewer queueing
buffer 0x7fd1f80ef210
0:00:21.923285100 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1074790400 = 20)
0:00:21.923321131 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1074790400 = 20)
0:00:21.923332968 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1486:gst_app_src_push_buffer_full:streamViewer queueing
buffer 0x7fd1f80ef2b0
0:00:21.939656140 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1076101120 = 20)
0:00:21.939721014 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1076101120 = 20)
0:00:21.939748951 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1486:gst_app_src_push_buffer_full:streamViewer queueing
buffer 0x7fd1f80ef350
0:00:21.955868740 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1077411840 = 20)
0:00:21.955912125 12629 0x7fd1f8001e00 DEBUG appsrc
gstappsrc.c:1451:gst_app_src_push_buffer_full:streamViewer queue
filled (1077411840 = 20)


 check what happens to the videodevice when streamViewer should write
to it.
 try:
  v4l2-ctl --all -d /dev/video2
 to see the mode of the device.
$ v4l2-ctl --all -d /dev/video2
Failed to open /dev/video2: No such file or directory

 also check /sys/devices/virtual/video4linux/video2/format whether the
 format has been set correctly.
$ cat /sys/devices/virtual/video4linux/video2/format
cat: /sys/devices/virtual/video4linux/video2/format: No such file or
directory

It seems there is a problem when I see : queue filled (1077411840 =
20) ?
Thanks to help me to solve this problem !
++

Jack




 fgmasdr
 IOhannes





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

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFj7hAAoJEOuluecjw8GUGrQH/1kkszHPI+IRZmhW2xiICXE1
ZCv7OjXmlykrgwMZJjus3gnZf7VpbLoaGYRg/1RytBAdE9zYI/v0WUyO/3j9/lXt
kijg42gMiShRo+5RpsH1UzUH5smL2qOlvnaR3VpP2mWvBD68lVK5F7kOJJZXqCf1
vdX44hcklveDX4VfxIJnELyu+wEpM3IjSpTxuDXZTpCEueCwmOeqWpE/9tKlzafF
wGdtYzJnsbicRdpArYbFPD8omXDTD49WzA1dtxd0isiuDPQcWyLgla9m2xTMiEEg
mX+2Shp1Pm5DxrWPCR/3uDJNNn1QYNM4vdt+1/M4+DMl62w9ijAXsq5Rr3pNXS8=
=S38u
-END PGP SIGNATURE-

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


Re: [PD] taxinomy, website or more

2013-08-22 Thread Alexandros Drymonitis
The forum puredata.hurleur.com has a section for tutorials, a section for 
artistic projects, a section for externals, a section for abstractions, and 
other sections (technical issues, visuals, microcontrollers etc.). It's not as 
active as the list, but it's there and it's being used by quite some people.
Plus you can always search the list archives for specific topics.

On 22 Αυγ 2013, at 19:16, Olivier Baudry olivierbaudry@hotmail.fr wrote:

 Dear all 
 
 I would like to make a few comments that I think are important to the 
 community puredata, this concerns the puredata website
 _ Mailing list is very nice to read some topics. However it seems to me that 
 a forum with a search engine is especially useful to make queries for topics.
 _ It seems to me that it would be good to have a tab Do you know how? spend 
 on mini tutorials powered by community contributors (academic or not)
 _ ensuite a tab with puredata projects in the context of artistic projects
 _ a libraries tab divided into two categories of :  
 _ librairies abstactions, 
 _ libraries of externals
 _ A taxonomy and site-specific model of semantic data to facilitate research 
 and to maintain and develop the software that is used PureData
 olivierbaudry_eba.vcf
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread IOhannes m zmölnig
On 08/22/13 18:40, Jack wrote:
 
 Le 22/08/2013 18:23, IOhannes m zmölnig a écrit :
 On 08/22/13 18:05, Jack wrote:
  When I compile streamViewer.cpp which contains the gstreamer pipe
 finishing by : v4l2sink device=/dev/video2, i get no error.
[...]
 $ v4l2-ctl --all -d /dev/video2
 Failed to open /dev/video2: No such file or directory
[...]
 $ cat /sys/devices/virtual/video4linux/video2/format
 cat: /sys/devices/virtual/video4linux/video2/format: No such file or
 directory
 

it seems that there is no /dev/video2.
you should set up your pipeline to write to an existing v4l2 loopback
device.
then report the output of v4l2-ctl and /sys/devices/... for *that* device.

fgmdsr
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] reverse kickstarter update: omgponies

2013-08-22 Thread João Pais





Is it possible to add an argument to [drawsprite] to load the first
X frame of the video ? Then, it will limit the memory used for large
videos.
++or just a portion of the video, in that case.___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Le 22/08/2013 19:39, IOhannes m zmölnig a écrit :
 On 08/22/13 18:40, Jack wrote:

 Le 22/08/2013 18:23, IOhannes m zmölnig a écrit :
 On 08/22/13 18:05, Jack wrote:
  When I compile streamViewer.cpp which contains the gstreamer pipe
 finishing by : v4l2sink device=/dev/video2, i get no error.
 [...]
 $ v4l2-ctl --all -d /dev/video2
 Failed to open /dev/video2: No such file or directory
 [...]
 $ cat /sys/devices/virtual/video4linux/video2/format
 cat: /sys/devices/virtual/video4linux/video2/format: No such file or
 directory


 it seems that there is no /dev/video2.
 you should set up your pipeline to write to an existing v4l2 loopback
 device.
 then report the output of v4l2-ctl and /sys/devices/... for *that* device.

 fgmdsr
 IOhannes



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

Thanks IOhannes,
I completely forgot to install v4l2loopback.
Now it is working perfectly.
Nice ! :)
++

Jack


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSFlclAAoJEOuluecjw8GU9iIH/0ASkVio1BIYCifCZuDHyPAQ
luIRQ4ZHZgAfrkQJd/auRFh5kK2zbmnqB8rG6Ft2UKRPKdPOlFZYXQ8Fp9v2oEfc
tiiq0UoOl8Srp7F9ow83TFEoMWTD12nslQr86H8GSqWGbX873tDs+rPs8tQnpc1Q
4DhQwkTv/0T5uFkcq3YX3MDiSDwxdiQ6e7kPg9R2P0ZWfhJJMHQc+Df9MDB9vlvM
64muy8wroFSnvJT6Jo1LpAwNZrnxxf1eQmT/gbvScl41w9TfKnM3YBN7a3P0nDej
Cmg/j9fEd8gSg+cu6NnOOiDrKNCBJfICCgAH9FuZf65xEB3AsAUZUM3BwLP2698=
=XWKK
-END PGP SIGNATURE-

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


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread Jack
Le 22/08/2013 20:23, Jack a écrit :

 Le 22/08/2013 19:39, IOhannes m zmölnig a écrit :
  On 08/22/13 18:40, Jack wrote:
 
  Le 22/08/2013 18:23, IOhannes m zmölnig a écrit :
  On 08/22/13 18:05, Jack wrote:
   When I compile streamViewer.cpp which contains the gstreamer pipe
  finishing by : v4l2sink device=/dev/video2, i get no error.
  [...]
  $ v4l2-ctl --all -d /dev/video2
  Failed to open /dev/video2: No such file or directory
  [...]
  $ cat /sys/devices/virtual/video4linux/video2/format
  cat: /sys/devices/virtual/video4linux/video2/format: No such file or
  directory
 

  it seems that there is no /dev/video2.
  you should set up your pipeline to write to an existing v4l2 loopback
  device.
  then report the output of v4l2-ctl and /sys/devices/... for *that*
 device.

  fgmdsr
  IOhannes



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

 Thanks IOhannes,
 I completely forgot to install v4l2loopback.
 Now it is working perfectly.
 Nice ! :)
 ++

 Jack





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

Now :
$ v4l2-ctl --all -d /dev/video1
Driver Info (not using libv4l2):
Driver name   : v4l2 loopback
Card type : Dummy video device (0x)
Bus info  : v4l2loopback:0
Driver version: 0.7.0
Capabilities  : 0x0501
Video Capture
Read/Write
Streaming
Video input : 0 (loopback: ok)
Video output: 0 (loopback in)
Format Video Capture:
Width/Height  : 1280/1024
Pixel Format  : 'GREY'
Field : None
Bytes per Line: 1280
Size Image: 1310720
Colorspace: SRGB
Format Video Output:
Width/Height  : 1280/1024
Pixel Format  : 'GREY'
Field : None
Bytes per Line: 1280
Size Image: 1310720
Colorspace: SRGB
Streaming Parameters Video Capture:
Frames per second: 30.000 (30/1)
Read buffers : 8
Streaming Parameters Video Output:
Frames per second: 30.000 (30/1)
Write buffers: 8
keep_format (bool)   : default=0 value=0
  sustain_framerate (bool)   : default=0 value=0
timeout (int): min=0 max=1 step=1
default=0 value=0
   timeout_image_io (bool)   : default=0 value=0

$ cat /sys/devices/virtual/video4linux/video1/format
GREY?30:1280x1024@30

I expect 60 fps.
If i set :
$ v4l2-ctl -d /dev/video1 -p 60
or
$ v4l2-ctl -d /dev/video1 -p 1
It doesn't change anything.
Do you know if there is a possibility to get this frame rate (60 fps) ?
Is it a limitation using videoloopback ?
For info, i get 60 fps when I use the application streamViewer.
++

Jack


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


Re: [PD] midirealtimein error message, is it still needed?

2013-08-22 Thread Max
i can confirm it seems to work fine in 0.45-0 test3 on OS X

midirealtimein: works under MSW only


Am 14.12.2008 um 15:01 schrieb hard off hard@gmail.com:

 was just messing round with [midirealtimein] on linux.  no problem it seems.  
 my friend in berlin got it going fine on os x.  
 
 so, is there still any need for the 'error:  midirealtimein only works under 
 MSW' message that is sent to the console upon load?
 
 
 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - 
 http://lists.puredata.info/listinfo/pd-list



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [OT] get video stream with pdgst from XIMEA camera

2013-08-22 Thread IOhannes zmölnig
On 08/22/2013 08:40 PM, Jack wrote:
 
 $ cat /sys/devices/virtual/video4linux/video1/format
 GREY?30:1280x1024@30
 
 I expect 60 fps.
 If i set :
 $ v4l2-ctl -d /dev/video1 -p 60
 or
 $ v4l2-ctl -d /dev/video1 -p 1
 It doesn't change anything.
 Do you know if there is a possibility to get this frame rate (60 fps) ?
 Is it a limitation using videoloopback ?

no.
v4l2loopback does not know nor care about frames or formats.
it simply passes the frames from one application to another. there is no
colorspace-conversion of resampling or the like involved.


it's gstreamer that doesn't set the framerate correctly.

you could force it by running:
 $ echo @60 | sudo tee /sys/devices/virtual/video4linux/video1/format

in practice i don't think that this framerate setting will do much.


 For info, i get 60 fps when I use the application streamViewer.

how do you know?

fdsmard
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] midirealtimein error message, is it still needed?

2013-08-22 Thread Miller Puckette
Cool... I can take the message out :)

M

On Thu, Aug 22, 2013 at 08:52:28PM +0200, Max wrote:
 i can confirm it seems to work fine in 0.45-0 test3 on OS X
 
 midirealtimein: works under MSW only
 
 
 Am 14.12.2008 um 15:01 schrieb hard off hard@gmail.com:
 
  was just messing round with [midirealtimein] on linux.  no problem it 
  seems.  my friend in berlin got it going fine on os x.  
  
  so, is there still any need for the 'error:  midirealtimein only works 
  under MSW' message that is sent to the console upon load?
  
  
  ___
  Pd-list@iem.at mailing list
  UNSUBSCRIBE and account-management - 
  http://lists.puredata.info/listinfo/pd-list
 



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


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


Re: [PD] reverse kickstarter update: omgponies

2013-08-22 Thread Jonathan Wilkes

On 08/22/2013 10:46 AM, Jack wrote:

Le 22/08/2013 16:36, Jonathan Wilkes a écrit :

On 08/22/2013 03:53 AM, Jack wrote:

Le 22/08/2013 07:13, Jonathan Wilkes a écrit :

Hi list,

I've got some updates to [canvasinfo], [pdinfo], and [classinfo] 
that I'll put in a demo build either tomorrow or the next day.


I also added a new data structure class with two creators:
[drawimage] - draw an image on a canvas
[drawsprite] - draw a sprite on a canvas

The [drawsprite] object takes the name of a directory containing an 
image sequence and
loads the images into tcl/tk memory when the object gets created.  
A ds float field can then be
associated with that image so that when you change its value it 
jumps to that image in the
sequence.  I used the code from [drawnumber], so you can even 
animate the sprite by clicking

and dragging on the image.

Since all the images are preloaded into tcl/tk, animating them is 
fairly straightforward-- tk just
clears the old image and copies the new one from one of the images 
it has in memory.


Of course the upshot is fairly obvious-- we can finally have ponies 
running around inside Pure

Data patches.

E.g., thanks to this:
http://friendshipismagic.smackjeeves.com/comics/1223051/female-pony-base-sprites/

I can now do this:
https://puredata.info/Members/jancsika/omgponies.webm/view

I just added the realtime code selection as an afterthought using 
[cnv] objects.  However, it
would be neat to be able to group code and highlight it 
programmatically as the data is flowing.


-Jonathan


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


Very funny animation, we can now design platform games directly in a 
patch. ! ;)
More seriously, it could replace the [#see] object from gridflow, 
interresting...

++


As I understand it, [#see] is much more powerful because it's 
visualizing stuff
created from gridflow computations on the fly.  But it's probably 
also much slower

for that same reason.

One drawback to [drawsprite] is if you wanted to abuse it to draw a 
large image
sequence-- say a video clip-- you're going to use a ton of memory 
loading the images
into wish's memory.  And by default tcl/tk doesn't free that memory 
back to the OS.
However it does free it up within tcl/tk when the corresponding 
[drawsprite] is deleted--
so if you delete it and undo a bunch of times it won't consume more 
memory than it did

in the first place.

But for small sprites this isn't really an issue, and once the images 
are loaded it is very

cheap to copy/cut the scalar images on a canvas.

-Jonathan



Jack




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




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


Is it possible to add an argument to [drawsprite] to load the first X 
frame of the video ? Then, it will limit the memory used for large videos.

++


Right now it just scoops up all valid gifs (and pngs if you have tkpng 
lib) in the directory you specify.


I guess the ds quanta syntax could be used for this.  If ds member 
field a is associated
with the sequence number for a sprite, maybe a(0:99)(blah:blah) could 
just load the first 100 images
inside that dir.  (The blah:blah part would control how many pixels the 
sprite can be click-dragged,

which isn't that import here.)

-Jonathan



Jack




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


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