<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=222572701-10062008>I think there is no difference to send out audio or
video data to downstream element.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=222572701-10062008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=222572701-10062008>If your audio device is not available or your decoder
meet some error, the data flow will return data_error sometime. Do you handle
the error in demux element?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=222572701-10062008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff><SPAN
class=222572701-10062008>It's better to handle the error in the element where
happens and do nothing in demux. Because the occasional data flow error don't
effect the pipline playback.</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV align=left><SPAN lang=EN-US><FONT face=Verdana color=#0000ff>Zhao Bin
(Brad)</FONT> <BR></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff></FONT> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> gstreamer-embedded-bounces@lists.sourceforge.net
[mailto:gstreamer-embedded-bounces@lists.sourceforge.net] <B>On Behalf Of
</B>Shenhong Wang<BR><B>Sent:</B> Friday, June 06, 2008 6:10 PM<BR><B>To:</B>
gstreamer-embedded@lists.sourceforge.net<BR><B>Subject:</B> [gst-embedded]
questions on gst_pad_push() to send audio/video datato
codec<BR></FONT><BR></DIV>
<DIV></DIV><BR>
<BLOCKQUOTE>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>.ExternalClass .EC_hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
.ExternalClass BODY.EC_hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>
<DIV class=EC_Section1 style="LAYOUT-GRID: 15.6pt none">
<P class=EC_MsoNormal><FONT face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Dear all,</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Now we are writing up a media demux
element. It contains one sink pad and two source pads (audio & video). The
element is expected to contact to next stage element (codec) in PUSH mode.
After processing data in chain() function, we call gst_pad_push to send the
audio or video to peer pads in codec elements (H.264 video or AAC).
</SPAN></FONT></P>
<P class=EC_MsoNormal style="MARGIN-LEFT: 18pt; TEXT-INDENT: -18pt"><FONT
face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"><SPAN>a)<FONT
face="Times New Roman" size=1><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></FONT></SPAN></SPAN></FONT><FONT face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">gst_pad_push returns back with 0
which looks successfully for video data</SPAN></FONT></P>
<P class=EC_MsoNormal style="MARGIN-LEFT: 18pt; TEXT-INDENT: -18pt"><FONT
face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"><SPAN>b)<FONT
face="Times New Roman" size=1><SPAN
style="FONT: 7pt 'Times New Roman'">
</SPAN></FONT></SPAN></SPAN></FONT><FONT face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">gst_pad_push always return back
with -5 for audio data. </SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Actually we use same codes (but
names) to finish the above actions, however we got different results (o or
-5). Would anyone of you tell me what’s the difference to send out audio/video
data to their codec? Thanks a lot!</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial"></SPAN></FONT> </P>
<P class=EC_MsoNormal><FONT face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Best Regards!</SPAN></FONT></P>
<P class=EC_MsoNormal><FONT face=Arial size=1><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial">Shenhong</SPAN></FONT></P></DIV><BR>
<HR>
Discover the new Windows Vista <A
href="http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE"
target=_blank>Learn more!</A> </BLOCKQUOTE><BR>
<HR>
Invite your mail contacts to join your friends list with Windows Live Spaces.
It's easy! <A
href="http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us"
target=_new>Try it!</A> </BODY></HTML>