<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Thanks for your answer! </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 thought If I add decoder element and link ghostpad to it, it will work, but it didn't =)</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;">So I’ll take a first way.</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;">The second way I think should be more complex than just tee, it would be great if camerabin in future could take any type of audio/video input on sink and record it to file/show viewfinder with determined codecs and container e.g:</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;">rtmpsrc location=blablabla ! camerabin …</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;">filesrc location=blablabla ! camerabin ...</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;">etc.</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;">But keep it simple :)</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_sign_1410447832820210944" 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 г. в 19:01:37, Thiago Santos (<a 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></div><div>
<title></title>
<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">
<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">
<div bgcolor="#FFFFFF" text="#000000">
<div>
<div class="moz-cite-prefix"><span>On 09/10/2014 09:24 AM,
Alexander Malaev wrote:<br></span></div>
<blockquote cite="mid:CANW3UfRv9T+s_cZ0v6xucNqxVww8RuOwghnCnYQbCoUb3t2JnA@mail.gmail.com" type="cite">
<div dir="ltr"><span>Hi,</span>
<div><span><br></span>
<div><span>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.</span></div>
<div><span><br></span></div>
<div><span>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></span></div>
<div><span><br></span></div>
<div><span>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?</span></div>
</div>
</div>
</blockquote>
<span><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></span>
<blockquote cite="mid:CANW3UfRv9T+s_cZ0v6xucNqxVww8RuOwghnCnYQbCoUb3t2JnA@mail.gmail.com" type="cite">
<div dir="ltr">
<div>
<div><span><br></span></div>
<div><span>--<br>
WBR</span></div>
<div><span>Alexander Malaev</span></div>
</div>
</div>
<span><br></span>
<fieldset class="mimeAttachmentHeader"></fieldset>
<span><br></span>
<pre wrap=""><span>_______________________________________________
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>
</span>
</pre></blockquote>
<span><br>
<br></span>
<pre class="moz-signature" cols="72"><span>--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley
</span>
</pre>
<span>_______________________________________________<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>
</span></div>
</div>
</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>
_______________________________________________
<br>gstreamer-devel mailing list
<br>gstreamer-devel@lists.freedesktop.org
<br>http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
<br></div></div></span></blockquote></body></html>