I am making a program to obtain information from FLAC files in Visual Basic. NET language. If somebody needs it I can send it. I can also translate it to C #. But I have read the documentation and I have looked for in sdk 1.2.2 and I don't find how to get the frames number of the file and the used compression level (5 default and others) Can somebody help me? Greetings. Santiago Jimeno (Madrid-Spain) -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20090125/b537e824/attachment.htm
--- Santiago Jimeno <sjimeno at ya.com> wrote:> I am making a program to obtain information from FLAC files in Visual > Basic. NET language. > If somebody needs it I can send it. I can also translate it to C #. > But I have read the documentation and I have looked for in sdk 1.2.2 > and I don't find how to get the frames number of the file and the > used compression level (5 default and others)compression level is not stored by default. if the stream is fixed blocksize (min and max blocksize in the streaminfo is the same) the total number of frames can be calculated by dividing the number of samples (also in streaminfo) by blocksize. http://flac.sourceforge.net/format.html#metadata_block_streaminfo
If compression level is not default (!=5), is it stored? If compression level is stored in some case, where I can find it? Frames number works OK according to your instructions. Thank you ----- Original Message ----- From: "Josh Coalson" <xflac at yahoo.com> To: "Santiago Jimeno" <sjimeno at ya.com>; <flac at xiph.org> Sent: Tuesday, January 27, 2009 7:43 AM Subject: Re: [Flac] frames number & compression level> --- Santiago Jimeno <sjimeno at ya.com> wrote: > >> I am making a program to obtain information from FLAC files in Visual >> Basic. NET language. >> If somebody needs it I can send it. I can also translate it to C #. >> But I have read the documentation and I have looked for in sdk 1.2.2 >> and I don't find how to get the frames number of the file and the >> used compression level (5 default and others) > > compression level is not stored by default. if the stream is fixed > blocksize (min and max blocksize in the streaminfo is the same) the > total number of frames can be calculated by dividing the number of > samples (also in streaminfo) by blocksize. > > http://flac.sourceforge.net/format.html#metadata_block_streaminfo