<P>
Hi pavan,<BR>
Thanks for you reply but I am not able to locate this document at mentioned path. I was trying to find out this in latest gstreamer-plugin-base code available on the gstreamer website.<BR>
<BR>
Regards,<BR>
Sanjay<BR>
<BR>
<BR>
On Thu, 21 Dec 2006 Pavan Patale wrote :<BR>
>see gst-plugins-base/docs/design/design-decodebin.txt.<BR>
>It might be helpful.<BR>
><BR>
>Thanks,<BR>
>Pavan.<BR>
><BR>
><BR>
>> From: "sanjay kumar gupta" <sanjay417@rediffmail.com><BR>
>>Reply-To: sanjay kumar gupta <sanjay417@rediffmail.com><BR>
>>To: gstreamer-devel@lists.sourceforge.net<BR>
>>Subject: [gst-devel] problem playing video file with this sample code<BR>
>>Date: 20 Dec 2006 13:22:05 -0000<BR>
>>MIME-Version: 1.0<BR>
>>Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by bay0-mc10-f3.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Wed, 20 Dec 2006 05:28:28 -0800<BR>
>>Received: from sc8-sf-list2-new.sourceforge.net (sc8-sf-list2-new-b.sourceforge.net [10.3.1.94])by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTPid 2554BF9CB; Wed, 20 Dec 2006 05:28:27 -0800 (PST)<BR>
>>Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92]helo=mail.sourceforge.net)by sc8-sf-list2-new.sourceforge.net with esmtp (Exim 4.43)id 1Gx1Sl-0002BJ-77 for gstreamer-devel@lists.sourceforge.net;Wed, 20 Dec 2006 05:26:27 -0800<BR>
>>Received: from [59.160.240.215] (helo=rediffmail.com)by mail.sourceforge.net with smtp (Exim 4.44) id 1Gx1Sj-0001YL-Mcfor gstreamer-devel@lists.sourceforge.net;Wed, 20 Dec 2006 05:26:28 -0800<BR>
>>Received: (qmail 4593 invoked by uid 510); 20 Dec 2006 13:22:05 -0000<BR>
>>Received: from unknown (220.227.246.153) by rediffmail.com via HTTP;20 dec 2006 13:22:05 -0000<BR>
>>X-Message-Info: LsUYwwHHNt0ibdDomkT83f9CoH6dJeyqEMiFBs+f07Q=<BR>
>>Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys<BR>
>>X-Spam-Score: 0.8 (/)<BR>
>>X-Spam-Report: Spam Filtering performed by sourceforge.net.See http://spamassassin.org/tag/ for more details.Report problems tohttp://sf.net/tracker/?func=add&group_id=1&atid=2000010.5 FROM_ENDS_IN_NUMS From: ends in numbers0.0 HTML_MESSAGE BODY: HTML included in message0.3 HTML_10_20 BODY: Message is 10% to 20% HTML0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay<BR>
>>X-BeenThere: gstreamer-devel@lists.sourceforge.net<BR>
>>X-Mailman-Version: 2.1.8<BR>
>>Precedence: list<BR>
>>List-Id: Discussion of the development of GStreamer<gstreamer-devel.lists.sourceforge.net><BR>
>>List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>, <mailto:gstreamer-devel-request@lists.sourceforge.net?subject=unsubscribe><BR>
>>List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=gstreamer-devel><BR>
>>List-Post: <mailto:gstreamer-devel@lists.sourceforge.net><BR>
>>List-Help: <mailto:gstreamer-devel-request@lists.sourceforge.net?subject=help><BR>
>>List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>, <mailto:gstreamer-devel-request@lists.sourceforge.net?subject=subscribe><BR>
>>Errors-To: gstreamer-devel-bounces@lists.sourceforge.net<BR>
>>Return-Path: gstreamer-devel-bounces@lists.sourceforge.net<BR>
>>X-OriginalArrivalTime: 20 Dec 2006 13:28:29.0278 (UTC) FILETIME=[BC8367E0:01C7243A]<BR>
>><BR>
>>Hi all,<BR>
>> I have written the simple code for playing audio/video files using decodebin.<BR>
>>Idea of creating the pipeline is as follows:<BR>
>>/-----------------------<BR>
>>1. created the elements filesrc and decodebin. Added & Linked these elements to pipeline and subscribed for callback cb_newpad() with decodebin element.<BR>
>>2. created the elements audioconvert and alsasink and added these elements to audio bin with ghostpad. (this audio bin is not yet added in the pipeline)<BR>
>>3. created the element xvimagesink and added this element to video bin with ghostpad. (this video bin is not yet added in the pipeline)<BR>
>>4. Now setting the pipeline (with partial elements in step 1) to running state.<BR>
>>4. When getting callback cb_newpad() for pad with mime type "audio/*" then adding the audio bin to pipeline, linking the ghostpad of audio bin with this new pad.<BR>
>> Once it is added and linked in pipeline, I am synchronizing the state of audio bin with pipeline state using following function:<BR>
>> gst_element_sync_state_with_parent (audiobin);<BR>
>>4. When getting callback cb_newpad() for pad for mime type "video/*" then adding the video bin to pipeline, linking the ghostpad of video bin with this new pad.<BR>
>> Once it is added and linked in pipeline, I am synchronizing the state of video bin with pipeline (parent of video bin) state using following function:<BR>
>> gst_element_sync_state_with_parent (videobin);<BR>
>>/------------------------------<BR>
>><BR>
>>When I am trying to play audio file (only audio stream) or video file without audio (only video stream) then this code is perfectly working.<BR>
>>but facing problem when file contain both audio and video stream.<BR>
>>It sometime plays perfectly but sometime I am getting EOS (end of stream) notification immediately.<BR>
>>what is the reason for this behavior.<BR>
>>I tried to use the following pipeline from command line. it always worked fine:<BR>
>>$gst-launch-0.10 filesrc location=soccer.avi ! decodebin name="decodebin" decodebin.! xvimagesink decodebin.! audioconvert ! alsasink<BR>
>>Code is attached in this mail.<BR>
>>Can someone please point out where could be the problem & please suggest the necessary changes needed?<BR>
>>Any help would be appreciated.<BR>
>>Thanks in advance.<BR>
>><BR>
>>Regards,<BR>
>>Sanjay<BR>
>><BR>
>>*********************************<BR>
>> Sanjay Kumar Gupta<BR>
>> Motorola India Elecronics Ltd.,<BR>
>> "TSR Towers",H.No. 6-3-1090,<BR>
>> Somajiguda, Raj Bhavan Road,<BR>
>> Hyderabad-500082.<BR>
>> Email: sanjayg@motorola.com<BR>
>>*********************************<BR>
><BR>
><BR>
>><< tmp.c >><BR>
><BR>
><BR>
>>-------------------------------------------------------------------------<BR>
>>Take Surveys. Earn Cash. Influence the Future of IT<BR>
>>Join SourceForge.net's Techsay panel and you'll get the chance to share your<BR>
>>opinions on IT & business topics through brief surveys - and earn cash<BR>
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV<BR>
><BR>
><BR>
>>_______________________________________________<BR>
>>gstreamer-devel mailing list<BR>
>>gstreamer-devel@lists.sourceforge.net<BR>
>>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<BR>
><BR>
>_________________________________________________________________<BR>
>Want to know what your favourite stars are up to? Catch the latest gossip in Bollywood on MSN Entertainment! http://content.msn.co.in/Entertainment/Default<BR>
><BR>
</P>
<br><br>
<a href="http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3"><IMG SRC="http://adworks.rediff.com/cgi-bin/AdWorks/sigimpress.cgi/www.rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=null&PARTNER=3" BORDER=0 VSPACE=0 HSPACE=0></a>