Do you know how to package the stream from "ahcsrc" to "rtph264pay" and send it to "glimagesink" at the same time?

Hi ,

Do you know how to package the stream from “ahcsrc” to “rtph264pay” and send it to “glimagesink” at the same time?
I did it this way:
server = gst_rtsp_server_new ();
gst_rtsp_server_set_service(server,“8554”);
mounts = gst_rtsp_server_get_mount_points (server);
str1= “( ahcsrc ! tee name = vsrc vsrc. ! queue ! capsfilter ! glimagesink name = vsink vsrc. ! queue ! x264enc ! rtph264pay pt=96 name=pay0 )”;
factory = gst_rtsp_media_factory_new ();
gst_rtsp_media_factory_set_shared (factory, TRUE);
ahc->pipeline = gst_rtsp_media_factory_set_launch (factory,str1);
but it failed.

Do you know how to get “glimagesink” from ahc->pipeline to set native_window?

BRs,
Nancy

The problem has been resolved, thank you.

BRs,
Nancyt