<br>Ok, let see, I have finally made it work. <br>However, I have another drawback. Since I am using the audio stream to be multiplexed with video with ffmpeg, I have noticed that when sending audio, ffmpeg works at a normal codifying rate. However, when having silence, it works at a slower rate, and then, the final result is a bit unpleasant, since the final video image goes &quot;by jumps&quot; - this is, the codifier just codify each 2 seconds or so, so the image just changes after 2 secs -.<br>
I don&#39;t know if it has to do with pulseaudio or ffmpeg, I have started looking in ffmpeg, but if u know there&#39;s a problem in pulseaudio, please let me know!!!<br><br>Regards.<br><br><br><div class="gmail_quote">On Fri, Oct 16, 2009 at 4:57 AM, Lennart Poettering <span dir="ltr">&lt;<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Tue, 13.10.09 10:58, Alvaro Alonso Jiménez (<a href="mailto:alvaroalo@gmail.com">alvaroalo@gmail.com</a>) wrote:<br>

<br>
&gt; Ok, I will try to be more explicit.<br>
&gt;<br>
&gt; I am trying to grab the sound of some applications using the parec tool. I<br>
&gt; want to have independent audio sinks, one for each application, task that I<br>
&gt; have accomplished creating different null-sinks, redirecting the audio<br>
&gt; streams of that applications to that sinks, and finally, specifying the<br>
&gt; corresponding monitors when using parec.<br>
&gt;<br>
&gt; The problem comes from the fact that when the application I want to grab the<br>
&gt; sound from has no sound - I am testing it with firefox and a website with no<br>
&gt; sound -, and the sink is one of those I have just created. In these<br>
&gt; conditions, when executing parec, the program states blocked waiting for an<br>
&gt; audio stream - and despite having the module suspend-on-idle disabled -. If<br>
&gt; the application has sound - firefox with a website with sound -, everything<br>
&gt; works fine!!!!<br>
<br>
</div>Hmm, a sink to which monitor source you connect will hand you audio as<br>
long as it is not suspended. module-suspend-on-idle will autosuspend<br>
things for you after 2s. So, consider disabling that.<br>
<br>
You can use &quot;pacmd ls&quot; to verify the current state of a sink. As long<br>
as it is not marked as &quot;SUSPENDED&quot; you should get audio, and if there<br>
is nothing playing you should get silence, but you really should get it.<br>
<div><div></div><div class="h5"><br>
Lennart<br>
<br>
--<br>
Lennart Poettering                        Red Hat, Inc.<br>
lennart [at] poettering [dot] net<br>
<a href="http://0pointer.net/lennart/" target="_blank">http://0pointer.net/lennart/</a>           GnuPG 0x1A015CC4<br>
_______________________________________________<br>
pulseaudio-discuss mailing list<br>
<a href="mailto:pulseaudio-discuss@mail.0pointer.de">pulseaudio-discuss@mail.0pointer.de</a><br>
<a href="https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss" target="_blank">https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Alvaro Alonso Jiménez<br>Universidad Carlos III de Madrid<br>NIA 100029618<br>