[gst-devel] Sending with rtpbin
Francesco Cabras
paneb at crs4.it
Wed Feb 6 10:09:56 CET 2008
>
> 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" );
>
> 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" );
> }
>
>
> Both sides run but I never get a video window. I know the receiver is
> getting packets because I get a bunch of debug output saying "Incoming RTP
> packet, sending without jrtplib". I'm hoping I have a glaring omission
> that someone here can point out to me. Any comments welcome. Thanks.
>
> Aaron
>
>
>
Mmm you can try to add "send-config=true" parameter to "rtpmp4vpay"
payloader.
I solved in this way.
Francesco
More information about the gstreamer-devel
mailing list