how to optimize loading time of flash video.

Kasthuri Jayachand Yadlapalli yk.jayachand at gmail.com
Mon Apr 23 00:36:48 PDT 2012


Hi,

while loading the 200MB flash  video.Gstreamer is taking long
time.Following is the code snippet.
How we can optimize this.


                            GstState l_gstState;
                            GstState l_gstPendingState;
                            do
                            {
                                if((m_eState ==
CPlayerEngineEnumerations::ERRORSTATE))
                                {
                                    break;
                                }
                                qint32 l_iMilliSecond = 1000;
                                //5 seconds in nanoseconds
                                GstClockTime l_gstTimeOut =
(GstClockTime)(5) * l_iMilliSecond * l_iMilliSecond * l_iMilliSecond;

                                ETG_TRACE_USR4 (("NewPlaySlot: Waiting
10 sec for complete state transition by Getting state"));
                                l_gstStateChange =
gst_element_get_state(m_pPipeline,

  &l_gstState,

  &l_gstPendingState,

  l_gstTimeOut);
                            } while(l_gstState != GST_STATE_PLAYING);



Thanks and Regards,
Y.K.JAYACHAND


More information about the gstreamer-devel mailing list