Displaying 5 results from an estimated 5 matches for "end_of_stream".
2006 Nov 03
2
Strangeness with OggFlac files
Josh et al,
I've been tracking down a problem with generating OggFlac files.
While investigatint this issue I hacked one of the test files from
the test_libFLAC directory of the flac-1.1.3-beta2. The result of
this hacking is this standalone C file:
http://www.mega-nerd.com/tmp/erikd_test.c
Directions for compiling this is in the comments at the top of
the file.
When the program is
2004 Sep 10
1
seek problem
...mysterious problem:
my FLAC plugin works nicely as long as the seek_absolute()
function is never used, but as soon as I seek around in a
sample (ie. call seek_absolute() with an offset != 0), I cannot
detect the end of a file anymore. decoder_get_state() never
returns FLAC__SEEKABLE_STREAM_DECODER_END_OF_STREAM in this
case.
First I thought that this might be a problem of my eofCallback,
but the last file offset where this callback is called is
0x013788f7, but the flac file is 0x01382598 bytes long (ie.
there's no reason for my callback to return true). When I don't
seek, the last offset where my...
2006 May 11
2
C++ Set_Metadata Problem
I refer to a problem that appeared on the flac list last August that was
either solved off-list or abandoned.
(http://lists.xiph.org/pipermail/flac/2005-August/000468.html)
The problem is with using the C++ encoder classes, particularly the
FLAC::Encoder::File:set_metadata
function. JC said that the developers version of how to add a simple
metadata block looked right, but it did not work for
2006 Nov 03
0
[PATCH] Re: Strangeness with OggFlac files
...and suspect that the FLAC__stream_encoder_finish()
> function needs to finish off the stream using a call to ogg_stream_flush()
> instead of the standard function ogg_stream_pageout().
I bashed on this a bit further and came up with the following patch:
http://www.mega-nerd.com/tmp/flac-end_of_stream.diff
There's probably a more tasteful way of acheiving the same result, but
this version does fix the problem.
Cheers,
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
"Capitalism is...
2006 Nov 06
3
[PATCH] Re: Strangeness with OggFlac files
...ncoder_finish()
> > function needs to finish off the stream using a call to
> ogg_stream_flush()
> > instead of the standard function ogg_stream_pageout().
>
> I bashed on this a bit further and came up with the following patch:
>
> http://www.mega-nerd.com/tmp/flac-end_of_stream.diff
>
> There's probably a more tasteful way of acheiving the same result,
> but
> this version does fix the problem.
thanks Erik, can you confirm that this is happening only because
the total_samples_estimate is 0? (so the e_o_s setting in the
existing code is never triggered)....