Capturing an OpenGL window and re displaying it using GStreamer Appsrc

fahad fahadm.ahmed at gmail.com
Tue Mar 25 19:36:13 PDT 2014


AppSrcTest.cpp
<http://gstreamer-devel.966125.n4.nabble.com/file/n4666109/AppSrcTest.cpp>  

I started by using the appsrc example and extended it to feed raw pixel
data. I am attempting to see what kind of delay I will come across during
this process. i am having two issues at this point.

1-Capturing the window using glReadPixels() kind of works but end result in
gstreamer output windows is not the same, its upside down and all over the
place. I think i need to come up with a better caps filter or further modify
the captured pixel before feeding it to appsrc, but at this point I cannot
figure out what to do

2-There is a significant delay between the OGL and Gstreamer window, is
there a possibility to improve this delay some how. My end goal would be to
try and transport the captured window by encoding it to mpeg2 and broadcast
over UDP. Just from this simple result it would seem that the delay is way
too much to even attempt that.

any pointers/suggestions are appreciated.

Running on Windows with FreeGlut and GStreamer 1.0 (1.2.1)



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Capturing-an-OpenGL-window-and-re-displaying-it-using-GStreamer-Appsrc-tp4666109.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list