[gst-devel] Problem : Client server streaming Using Gstreamer : rtspsrc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Tue, 2009-06-02 at 15:31 +0530, deepak chaudhari wrote:
> Hello All , 
> 
> I am prototyping client server streaming using Gstreamer. 
>  Using gst-launch it works fine. 
> 
> I am constructing same elements  in my code as follows : 
> 
> /* create elements */
>     pipeline = gst_pipeline_new ("mpeg--rtp-player");
>     
>    source = gst_element_factory_make ("rtspsrc", "rtsp-source");
>    
>   rtpdepay = gst_element_factory_make ("rtpmp4vdepay",
> "rtpmp4v-depay");  
>  
>   decoder = gst_element_factory_make ("ffdec_mpeg4", "mpeg-decoder");
> 
>   sink = gst_element_factory_make ("xvimagesink", "video-output");
> 
>     if (!pipeline || !source || !rtpdepay || !decoder || !sink) {
>         g_print ("\nOne element could not be created\n");
>         return -1;
>     }
> 
>     /* put all elements in a bin */
>     gst_bin_add_many (GST_BIN (pipeline),source, rtpdepay, decoder,
> sink, NULL);
> 
>     gst_element_link (source,rtpdepay);
>     gst_element_link_many (decoder, sink, NULL);
> 
> It is showing Internal data flow error,this error comes if we
> construct wrong pipeline, please help me out where I am doing
> mistake. 

You can't link rtspsrc to the depayloader (if you check the result code,
you will see that you have an error). See gst-inspect rtspsrc you will
see that there are dynamic pads on rtspsrc. Read the manual about
dynamic pads to fix your problem.

Wim

> -- 
>      Regards,
> Deepak Chaudhari
> ------------------------------------------------------------------------------
> OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
> looking to deploy the next generation of Solaris that includes the latest 
> innovations from Sun and the OpenSource community. Download a copy and 
> enjoy capabilities such as Networking, Storage and Virtualization. 
> Go to: http://p.sf.net/sfu/opensolaris-get
> _______________________________________________ gstreamer-devel mailing list gstreamer-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux