Hi everyone. I have a question about the rtpbin element in gstreamer. I originally tried to get answers on the gstreamer list, but haven't had any luck. I'm hoping that since rtpbin comes from this project someone here can help me out. If this is the wrong forum for this question, I apologize. I'm trying to build a simple program to send an mpeg4 stream over rtp. The receiving side is working and it will correctly display video from a network security camera. I use the following to setup the test stream.
GstElement *source = gst_element_factory_make( "videotestsrc", "source" ); GstElement *encode = gst_element_factory_make( "ffenc_mpeg4", "encode" ); GstElement *pay = gst_element_factory_make( "rtpmp4vpay", "pay" ); g_object_set( G_OBJECT( pay ), "send-config", true, NULL ); GstElement *rtpbin = gst_element_factory_make( "rtpbin", "rtpbin" ); g_object_set( G_OBJECT( rtpbin ), "localport", 9002, NULL ); g_object_set( G_OBJECT( rtpbin ), "destinations", "127.0.0.1:9000", NULL); g_object_set( G_OBJECT( rtpbin ), "default-pt", 96, NULL ); pipeline = gst_pipeline_new( "Mp4RtpSenderPipeline" ); gst_bin_add_many( GST_BIN( pipeline ), source, encode, pay, rtpbin, NULL ); if( !gst_element_link_many( source, encode, pay, rtpbin, NULL ) ) { g_warning( "Failed to link elements" ); } When I run this, I get basically a single frozen frame on the receiver side. I'm guessing that it could be because I haven't set the clock rate anywhere on the sending side? I've also tried setting a pt-map on the sender that is the same as the receiver, thinking it might grab the clock rate from there. That doesn't seem to change the behavior. Can anyone help shed some light on what I'm messing up? Thanks. Aaron ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Farsight-devel mailing list Farsight-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/farsight-devel