<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 09/11/2014 11:51 AM, Alexander
Malaev wrote:<br>
</div>
<blockquote cite="mid:etPan.5411b702.436c6125.79a@mbp-alexander"
type="cite">
<style>body{font-family:Helvetica,Arial;font-size:13px}</style>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I’m going
another way and have another problem.</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I removed
source bin, added ghostpads audiosink and videosink to
camerabin, linked ghostpads to passed camera-source avdec_h254
element and audio-source avdec_aac element. </div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">All pads were
linked successfully but I could’t figure out why buffers were
not going through these ghostpads to decoder elements.</div>
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;">In attachment
my pipeline dump in png format.</div>
</blockquote>
<br>
That won't work. Just adding ghostpads to an element doesn't mean
that it will know what to do with those pads. It was not programmed
to do so. Just like your picture shows those pads are there unlinked
internally to anything and will just drop all data and return errors
(not-linked).<br>
<br>
So, I see 2 ways you can solve your problem:<br>
<br>
1) Use the appsink/appsrc pair as I suggested.<br>
<br>
2) Reimplement part of camerabin yourself by adding a tee for your
video and having one output into a video sink for displaying and
putting the other one into the encoding part (using encodebin makes
this easier). You should also link your audio to encodebin to get it
to the output.<br>
<br>
<blockquote cite="mid:etPan.5411b702.436c6125.79a@mbp-alexander"
type="cite">
<div id="bloop_customfont"
style="font-family:Helvetica,Arial;font-size:13px; color:
rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br>
</div>
<div id="bloop_sign_1410445782765888000" class="bloop_sign">
<div style="font-family:helvetica,arial;font-size:13px">-- <br>
Alexander Malaev<br>
Sent with Airmail</div>
</div>
<br>
<p style="color:#000;">На 11 сентября 2014 г. в 18:23:23, Thiago
Santos (<a moz-do-not-send="true"
href="mailto:thiagoss@osg.samsung.com">thiagoss@osg.samsung.com</a>)
написал:</p>
<blockquote type="cite" class="clean_bq"><span>
<div bgcolor="#FFFFFF" text="#000000">
<div>
<title></title>
<div class="moz-cite-prefix">On 09/10/2014 09:24 AM,
Alexander
Malaev wrote:<br>
</div>
<blockquote
cite="mid:CANW3UfRv9T+s_cZ0v6xucNqxVww8RuOwghnCnYQbCoUb3t2JnA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
<div>I'm using gstreamer 1.2.1 and Python GObject.
I'm writing a
recorder from rtmp stream using camerabin element.
I set
camera-source to rtmp source bin wrapped by
wrappercamerabinsrc,
but I can't set audio-source from the same bin. It
writes me that
source bin already has a parent. If I don't set an
audio-source it
uses autoaudiosrc, instead of audio from source
bin.</div>
<div><br>
</div>
<div>Here is gist with my code: <a
moz-do-not-send="true"
href="https://gist.github.com/spscream/4df7195a50b0e35ba63e">https://gist.github.com/spscream/4df7195a50b0e35ba63e</a></div>
<div><br>
</div>
<div>I think I should make a separate bins for audio
and video
source, but I can't actually figure it out. What
is the best way to
feed my rtmp source to camerabin?</div>
</div>
</div>
</blockquote>
<br>
Unfortunately camerabin doesn't support having the same
element
providing both video and audio. What I can suggest to do
is to link
your audio stream to an appsink and create an appsrc and
use that
as the audio source. When you get a buffer from appsink
just push
it into appsrc. Remember to set caps to appsrc and proper
stream
type so it behaves correctly for this scenario.<br>
<br>
<br>
<blockquote
cite="mid:CANW3UfRv9T+s_cZ0v6xucNqxVww8RuOwghnCnYQbCoUb3t2JnA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div><br>
</div>
<div>--<br>
WBR</div>
<div>Alexander Malaev</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley
</pre>
_______________________________________________
<br>
gstreamer-devel mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<br>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
<br>
</div>
</div>
</span></blockquote>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley</pre>
</body>
</html>