Hi all, I am able to create file containing Flac data encapsulated in an Ogg container. However, when I read the file and its metadata, the total_samples field contains the value zero, even though the file actually does contain samples and the stream does have an end of stream marker. I think something is going wrong when I'm encoding the file. Anybody have any idea of what I have forgotten to do during encoding? Cheers, Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "One of Subversions biggest weaknesses is its lack of adequate internal tracking for merges." -- William Nagle in "Subversion Version Control"
right now, the ogg flac encoder does not go back and fill in missing stuff in the headers like native flac does. it will eventually, but the best thing is to call FLAC__stream_encoder_set_total_samples_estimate() before initializing the encoder, that was the correct number is written in the STREAMINFO block during the first pass. --- Erik de Castro Lopo <erikd-flac@mega-nerd.com> wrote:> Hi all, > > I am able to create file containing Flac data encapsulated in an Ogg > container. However, when I read the file and its metadata, the > total_samples field contains the value zero, even though the file > actually does contain samples and the stream does have an end of > stream marker. > > I think something is going wrong when I'm encoding the file. Anybody > have any idea of what I have forgotten to do during encoding? > > Cheers, > Erik____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com
Josh Coalson wrote:> right now, the ogg flac encoder does not go back and fill in > missing stuff in the headers like native flac does.Ah, OK.> it will > eventually, but the best thing is to call > FLAC__stream_encoder_set_total_samples_estimate() before > initializing the encoder, that was the correct number is > written in the STREAMINFO block during the first pass.Thats fine if you know at the start, but not so good if you don't. I'll wait until that bit is fixed. Cheers, Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ "Every time an American goes to a gas station, he is sending money to America's enemies." -- http://www.meforum.org/article/653