Streaming via shared memory

hello,
let me explain my dream. i wish that i could use a shared memory location to output video from vvvv into resolume avenue, which uses opengl for rendering. my plan is to create an ffgl source plugin that reads from shared memory and renders into a texture.

can anyone tell me if this sounds feasible? what would be the best way to convert the media sample that gets written into the shared location with VideoOut Shared Memory (and then read again by the plugin) into a valid opengl format?
if anyone else is interested in working on this, great! as you see, i am not very clear on how to pull it together ;)

best to all

hei dep,

that should actually be quite straight forward to do, apart from not being too performant in the end…

the VideoOut (DShow9 SharedMemory) simply writes the current directshow mediasample to the specified named memory location. directshow mediasamples can have different formats, like YUV, RGB24, RGB32 and many more… i don’t know OPENGL but i guess it offers routines for creating textures from memorylocations if you tell it what format the memory has (e.g. RGB24). so your ffgl source would only need to read the shared memorylocation and force its content into an opengl texture. goodluck!

i actually talked about this with woei a bit (cause i’d also like to have a possibility to stream 4v to avenue).
he also guessed (iirc) that it may be better to get the texture directly from the GPU backbuffer, then you would spare yourself the detour to the CPU RAM, and get performance. didn’t look into it yet, though :-(
wanna join forces, although i know next to nothing about FFGL and OPenGL? :D

wanna join forces, although i know next to nothing about FFGL and OPenGL? :D

yes, sounds awesome! and, as i have done at least something in ffgl, i can hope that we’ll make a good team :)
i have made a github repo for us:
http://github.com/matiasw/ffgl-shared-memory-streamer

i’ve commited an earlier FFGL source plugin i’ve made as a base. note that the XCode project and linux makefile are not up to date (should work, but include ghost projects). the vs project should be.
glad to have you on board!

great! although i’ll be happy if i’m able to contribute anything useful. i’ll look into it, and try to understand, and fire up avenue, but can’t make promises… :-(
are you on skype? me: buchikuchi

are you on skype? me: buchikuchi

yes: matias.wilkman. i’ve added you as a contact :)

we now have a wave up about this, so if anyone’s interested, let us know.

hey, I am closely following this project as an app like this would be extremely useful for porting a 3d visualizer i use into Avenue.

I may know someone who could help with code. Can you add me to the wave?

whitenoiserecs@gmail.com

done :-)… no text …