questions on gst_pad_push() to send audio/video data to codec

Shenhong Wang <[email protected]> Fri, 6 Jun 2008 10:31:05 +0000
Newsgroups gmane.comp.video.gstreamer.daily
Message-ID <[email protected]>
--===============0126645022==
Content-Type: multipart/alternative;
	boundary="_411a1b2a-12e1-4598-ae33-4c7bab690a50_"

--_411a1b2a-12e1-4598-ae33-4c7bab690a50_
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: quoted-printable







Dear all,
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 n=
ext 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).=20
a)       gst_pad_push returns back with 0 which looks successfully for vi=
deo data
b)       gst_pad_push always return back with -5 for audio data.=20
Actually we use same codes (but names) to finish the above actions, howev=
er we got different results (o or -5). Would anyone of you tell me what=A1=
=AFs the difference to send out audio/video data to their codec? Thanks a=
 lot!
=20
Best Regards!
Shenhong

Discover the new Windows Vista Learn more!=20
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now=
!
http://www.live.com/getstarted.aspx
--_411a1b2a-12e1-4598-ae33-4c7bab690a50_
Content-Type: text/html; charset="gb2312"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class=3D'hmmessage'><BR>
<BLOCKQUOTE>
<META content=3D"Microsoft SafeHTML" name=3DGenerator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding:0px;}
.ExternalClass body.EC_hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>

<DIV class=3DEC_Section1 style=3D"LAYOUT-GRID:  15.6pt none">
<P class=3DEC_MsoNormal><FONT face=3DArial size=3D1><SPAN lang=3DEN-US st=
yle=3D"FONT-SIZE: 9pt; FONT-FAMILY: Arial">Dear all,</SPAN></FONT></P>
<P class=3DEC_MsoNormal><FONT face=3DArial size=3D1><SPAN lang=3DEN-US st=
yle=3D"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 &amp; =
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 vid=
eo or AAC). </SPAN></FONT></P>
<P class=3DEC_MsoNormal style=3D"MARGIN-LEFT: 18pt; TEXT-INDENT: -18pt"><=
FONT face=3DArial size=3D1><SPAN lang=3DEN-US style=3D"FONT-SIZE: 9pt; FO=
NT-FAMILY: Arial"><SPAN>a)<FONT face=3D"Times New Roman" size=3D1><SPAN s=
tyle=3D"FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 </SPAN></FONT></SPAN></SPAN></FONT><FONT face=3DArial size=3D1><SPAN lan=
g=3DEN-US style=3D"FONT-SIZE: 9pt; FONT-FAMILY: Arial">gst_pad_push retur=
ns back with 0 which looks successfully for video data</SPAN></FONT></P>
<P class=3DEC_MsoNormal style=3D"MARGIN-LEFT: 18pt; TEXT-INDENT: -18pt"><=
FONT face=3DArial size=3D1><SPAN lang=3DEN-US style=3D"FONT-SIZE: 9pt; FO=
NT-FAMILY: Arial"><SPAN>b)<FONT face=3D"Times New Roman" size=3D1><SPAN s=
tyle=3D"FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
 </SPAN></FONT></SPAN></SPAN></FONT><FONT face=3DArial size=3D1><SPAN lan=
g=3DEN-US style=3D"FONT-SIZE: 9pt; FONT-FAMILY: Arial">gst_pad_push alway=
s return back with -5 for audio data. </SPAN></FONT></P>
<P class=3DEC_MsoNormal><FONT face=3DArial size=3D1><SPAN lang=3DEN-US st=
yle=3D"FONT-SIZE: 9pt; FONT-FAMILY: Arial">Actually we use same codes (bu=
t names) to finish the above actions, however we got different results (o=
 or -5). Would anyone of you tell me what=A1=AFs the difference to send o=
ut audio/video data to their codec? Thanks a lot!</SPAN></FONT></P>
<P class=3DEC_MsoNormal><FONT face=3DArial size=3D1><SPAN lang=3DEN-US st=
yle=3D"FONT-SIZE: 9pt; FONT-FAMILY: Arial">&nbsp;</SPAN></FONT></P>
<P class=3DEC_MsoNormal><FONT face=3DArial size=3D1><SPAN lang=3DEN-US st=
yle=3D"FONT-SIZE: 9pt; FONT-FAMILY: Arial">Best Regards!</SPAN></FONT></P=
>
<P class=3DEC_MsoNormal><FONT face=3DArial size=3D1><SPAN lang=3DEN-US st=
yle=3D"FONT-SIZE: 9pt; FONT-FAMILY: Arial">Shenhong</SPAN></FONT></P></DI=
V><BR>
<HR>
Discover the new Windows Vista <A href=3D"http://search.msn.com/results.a=
spx?q=3Dwindows+vista&amp;mkt=3Den-US&amp;form=3DQBRE" target=3D_blank>Le=
arn more!</A> </BLOCKQUOTE><br /><hr />Get news, entertainment and everyt=
hing you care about at Live.com. <a href=3D'http://www.live.com/getstarte=
d.aspx ' target=3D'_new'>Check it out!</a></body>
</html>
--_411a1b2a-12e1-4598-ae33-4c7bab690a50_--


--===============0126645022==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
--===============0126645022==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gstreamer-daily mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gstreamer-daily

--===============0126645022==--