* element with pay%d names will be a stream */
factory = gst_rtsp_media_factory_new ();
gst_rtsp_media_factory_set_launch (factory, "( "
- "videotestsrc ! video/x-raw-yuv,width=352,height=288,framerate=15/1 ! "
+ "videotestsrc ! video/x-raw,width=352,height=288,framerate=15/1 ! "
"x264enc ! rtph264pay name=pay0 pt=96 "
- "audiotestsrc ! audio/x-raw-int,rate=8000 ! "
+ "audiotestsrc ! audio/x-raw,rate=8000 ! "
"alawenc ! rtppcmapay name=pay1 pt=97 " ")");
/* attach the test factory to the /test url */
g_timeout_add_seconds (2, (GSourceFunc) timeout, server);
/* start serving, this never stops */
+ g_print ("stream ready at rtsp://127.0.0.1:8554/test\n");
g_main_loop_run (loop);
return 0;