From: Pavan P. <pav...@ho...> - 2006-12-21 16:27:55
|
see gst-plugins-base/docs/design/design-decodebin.txt. It might be helpful. Thanks, Pavan. >From: "sanjay kumar gupta" <san...@re...> >Reply-To: sanjay kumar gupta <san...@re...> >To: gst...@li... >Subject: [gst-devel] problem playing video file with this sample code >Date: 20 Dec 2006 13:22:05 -0000 >MIME-Version: 1.0 >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 >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) >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 >gst...@li...;Wed, 20 Dec 2006 05:26:27 -0800 >Received: from [59.160.240.215] (helo=rediffmail.com)by >mail.sourceforge.net with smtp (Exim 4.44) id 1Gx1Sj-0001YL-Mcfor >gst...@li...;Wed, 20 Dec 2006 05:26:28 -0800 >Received: (qmail 4593 invoked by uid 510); 20 Dec 2006 13:22:05 -0000 >Received: from unknown (220.227.246.153) by rediffmail.com via HTTP;20 dec >2006 13:22:05 -0000 >X-Message-Info: LsUYwwHHNt0ibdDomkT83f9CoH6dJeyqEMiFBs+f07Q= >Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys >X-Spam-Score: 0.8 (/) >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 >X-BeenThere: gst...@li... >X-Mailman-Version: 2.1.8 >Precedence: list >List-Id: Discussion of the development of >GStreamer<gstreamer-devel.lists.sourceforge.net> >List-Unsubscribe: ><https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>, ><mailto:gst...@li...?subject=unsubscribe> >List-Archive: ><http://sourceforge.net/mailarchive/forum.php?forum=gstreamer-devel> >List-Post: <mailto:gst...@li...> >List-Help: ><mailto:gst...@li...?subject=help> >List-Subscribe: ><https://lists.sourceforge.net/lists/listinfo/gstreamer-devel>, ><mailto:gst...@li...?subject=subscribe> >Errors-To: gst...@li... >Return-Path: gst...@li... >X-OriginalArrivalTime: 20 Dec 2006 13:28:29.0278 (UTC) >FILETIME=[BC8367E0:01C7243A] > >Hi all, > I have written the simple code for playing audio/video files using >decodebin. >Idea of creating the pipeline is as follows: >/----------------------- >1. created the elements filesrc and decodebin. Added & Linked these >elements to pipeline and subscribed for callback cb_newpad() with decodebin >element. >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) >3. created the element xvimagesink and added this element to video bin with >ghostpad. (this video bin is not yet added in the pipeline) >4. Now setting the pipeline (with partial elements in step 1) to running >state. >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. > Once it is added and linked in pipeline, I am synchronizing the state of >audio bin with pipeline state using following function: > gst_element_sync_state_with_parent (audiobin); >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. > 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: > gst_element_sync_state_with_parent (videobin); >/------------------------------ > >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. >but facing problem when file contain both audio and video stream. >It sometime plays perfectly but sometime I am getting EOS (end of stream) >notification immediately. >what is the reason for this behavior. >I tried to use the following pipeline from command line. it always worked >fine: >$gst-launch-0.10 filesrc location=soccer.avi ! decodebin name="decodebin" >decodebin.! xvimagesink decodebin.! audioconvert ! alsasink >Code is attached in this mail. >Can someone please point out where could be the problem & please suggest >the necessary changes needed? >Any help would be appreciated. >Thanks in advance. > >Regards, >Sanjay > >********************************* > Sanjay Kumar Gupta > Motorola India Elecronics Ltd., > "TSR Towers",H.No. 6-3-1090, > Somajiguda, Raj Bhavan Road, > Hyderabad-500082. > Email: sa...@mo... >********************************* ><< tmp.c >> >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share >your >opinions on IT & business topics through brief surveys - and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >gstreamer-devel mailing list >gst...@li... >https://lists.sourceforge.net/lists/listinfo/gstreamer-devel _________________________________________________________________ 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 |