Re: Urgent Doubt in VORBIS

Sumit Chatterjee <[email protected]>
Newsgroups gmane.comp.multimedia.ogg.vorbis.devel
Message-ID <[email protected]>
Hi Mike,
    I was having a big problem earlier as there was a mismatch of over
16-20KB sometimes.
    I have solved that problem now. After lot of debugging I could find out
that granulepos wasn't being used at the correct place for identifying the
pcm size of the data encoded.

    BUT, currently I have a minor issue still left on the same lines. If I
send the pcm size of the encoded data to another machine, and decode the
encoded stream, there is "always" a mismatch of 4096 bytes :( Regarding your
suggestion currently my mearsurement is on the same base(integer).

Can you help?
Thanks
Sumit

2009/8/28 Michael Smith <[email protected]>

> On Thu, Aug 27, 2009 at 1:12 PM, Sumit Chatterjee<[email protected]>
> wrote:
> > Is the decoded pcm size of an encoded stream equal to the raw input
> sample's
> > pcm size? or Are they different?
> >
> >       raw sample(pcm sz1) --> encode --> decode(pcm_sz2)
> >
> >       Is (pcm_sz1 == pcm_sz2) ?
> >
> > Could Anyone please clarify....
>
> The number of samples will be the same. The size depends on what
> format your input and output are - libvorbis natively uses floats, for
> both input and output, so they'll be the same - but if you convert to
> an integer format, of course, they won't be.
>
> Mike
>

_______________________________________________
Vorbis-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/vorbis-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.