<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hello all,<br>
    <br>
    Sorry for this OT but nobody is answering in the pulseaudio IRC and
    maybe some of you know about this problem.<br>
    <br>
    Under Ubuntu 14.04, I'm using a software that has a pulseaudio
    output and I use pacat to record directly the sound coming from
    pulseaudio like this:<br>
    pacat --record --format=s16le --rate=48000 --channels=2
    --file-format=wav --volume=32768 --latency-msec=100 -d
    alsa_output.pci-0000_00_1b.0.analog-stereo.monitor &<br>
    sleep 2.5 && killall pacat<br>
    <br>
    It is working well on the same machine with 12.04, but on 14.04
    there is a problem. <br>
    <br>
    Some of the files are ~4 times bigger than expected. When I look at
    them I see that sequences of zeros are randomly inserted in the file
    thus increasing its size.<br>
    This phenomena is happening as a group : for a few minutes,
    recording ~50 files is fine, then for a long time, it is padded,
    then it can be fine again...<br>
    Looking closer to the file, it seems that there is some relation to
    zero crossings: the time where zeros are inserted seems to be close
    to zero value of the wave data.<br>
    <br>
    I've tried playing with format or piping to sox, the problem is
    still happening.<br>
    <br>
    As a workaround I tried to trim all the silences, but I didn't
    manage to use the sox command for that:<br>
    <meta charset="utf-8">
    $sox in.wav out4.wav silence 1 0.1 1% -1 0.1 1%<br>
    from :
    <a class="moz-txt-link-freetext" href="http://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/">http://digitalcardboard.com/blog/2009/08/25/the-sox-of-silence/</a><br>
    <br>
    Does anybody have an idea of what I can do to solve the recording
    problem? <br>
    Or if someone has a workaround to trim silence it will be really
    helpful!<br>
    best,<br>
    n<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.nimon.org">http://www.nimon.org</a></pre>
  </body>
</html>