<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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 class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a 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>
</body>
</html>