[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-daily
Subject:    [gst-daily] questions on gst_pad_push() to send audio/video data to
From:       Shenhong Wang <qch1688 () hotmail ! com>
Date:       2008-06-06 10:31:05
Message-ID: BAY134-W274B2899E36F729227E78AB2B70 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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 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).  a)   \
gst_pad_push returns back with 0 which looks successfully for video data b)       \
gst_pad_push always return back with -5 for audio data.  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!  
Best Regards!
Shenhong

Discover the new Windows Vista Learn more! 
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx


[Attachment #5 (text/html)]

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><BR>
<BLOCKQUOTE>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding: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 &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 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'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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">&nbsp;</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&amp;mkt=en-US&amp;form=QBRE" \
target=_blank>Learn more!</A> </BLOCKQUOTE><br /><hr />Get news, entertainment and \
everything you care about at Live.com. <a href='http://www.live.com/getstarted.aspx ' \
target='_new'>Check it out!</a></body> </html>



-------------------------------------------------------------------------
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

_______________________________________________
gstreamer-daily mailing list
gstreamer-daily@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-daily


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic