<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <font face="Courier New">Dear All,<br>
      <br>
      1) Is there a way to get the audio size (number of samples) and
      other information, such as number of channels, from a flac file
      without fully decoding it? <br>
      I've found that the WAV header is replicated after the "riffRIFF"
      keyword, but I don't seem to be able to predict where it is
      located or whether it is safe or not to asume that the first time
      such keyword appears is the correct one, and if there is an upper
      bound for its location; for instance, some text such as the name
      of a song or some comment could contain that keyword, even if it
      is unlikely. The information preceding the  "reference libFLAC
      1.3.3" encoder version seems to be non-text information.<br>
      <br>
      2) I decode using the option --skip=0 --until=1. I would expect to
      get a wav file with only 1 sample, but I get 3 samples. Stictly no
      sample should be decoded since 0 samples should be skipped and the
      help says: <br>
      <br>
      --until={#|[+|-]mm:ss.ss}  Stop at the given sample number for
      each input file. The given sample number is not included in the
      decoded output.<br>
      <br>
      so sample #1 should not be included, unless the first sample is
      sample #0, in which case only 1 sample, and not 3 samples, should
      be included in the output file.<br>
      <br>
      Thanks,<br>
      <br>
      Federico Miyara  <br>
    </font>
  <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table style="border-top: 1px solid #D3D4DE;">
        <tr>
      <td style="width: 55px; padding-top: 18px;"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;" /></a></td>
                <td style="width: 470px; padding-top: 17px; color: #41424e; font-size: 13px; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">Libre de virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank" style="color: #4453ea;">www.avast.com</a>           </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"> </a></div></body>
</html>