Displaying 11 results from an estimated 11 matches for "flac__stream_encoder_finish".
2010 May 28
1
Updating metadata while encoding
Hi,
I am working on an application which records directly into a FLAC file. For this
purpose I'm using the FLAC stream encoder interface.
It works fine, but if my application is killed during encoding, the metadata is
not being updated since the file isn't closed properly by calling
FLAC__stream_encoder_finish().
Thus when opening the file afterwards for playback, it is possible to decode
audio data but the FLAC__StreamMetadata.data.stream_info.total_samples field is
equals to zero.
This is a true problem because it looks like data loss to the user, especially
if he/she's been recording for hours.....
2006 Nov 03
2
Strangeness with OggFlac files
...l: 00003039): type unknown
Warning: EOS not set on stream 1
erikd@mingus > ogginfo seekable.ogg
Processing file "seekable.ogg"...
New logical stream (#1, serial: 00003039): type unknown
Warning: EOS not set on stream 1
I have looked into this 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().
Josh (or anyone), I'd appreciate it if you could take a look at this.
Cheers,
Erik
--
+-----------------------------------------------------------+
Erik de Ca...
2006 Jun 17
3
Assistance with an encoding plugin
.../* audio buffer is an int16_t buffer that paranoia dumps interleaved
audio into */
FLAC__stream_encoder_process_interleaved( encoder,
audio_buffer,
CD_FRAMESIZE_RAW /
4);
}
FLAC__stream_encoder_finish(encoder);
FLAC__stream_encoder_delete(encoder);
write_callback simply writes the encoded data out to a file stream, and
metadata_callback isn't doing anything at the moment (one thing at a
time :-) ).
Now one thing that I see which may be causing my issue is the fact that
paranoia is ex...
2006 Nov 03
0
[PATCH] Re: Strangeness with OggFlac files
Erik de Castro Lopo wrote:
> Josh et al,
>
> I've been tracking down a problem with generating OggFlac files.
<snip>
> I have looked into this 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...
2006 Nov 06
1
[PATCH] Re: Strangeness with OggFlac files
On Tue, Nov 07, 2006 at 06:31:04AM +1100, Erik de Castro Lopo wrote:
> I haven't tested it, but I don't think just setting packet.e_o_s
> is sufficient to close the stream. The forced ogg_stream_flush()
> is required.
libogg checks the e_o_s flag (and has always done so, according to svn)
so you shouldn't have to call ogg_stream_flush() except when you want to
force a page
2006 Jun 19
0
Assistance with an encoding plugin
...t paranoia dumps interleaved
>audio into */
> FLAC__stream_encoder_process_interleaved( encoder,
> audio_buffer,
> CD_FRAMESIZE_RAW /
>4);
>
>}
>
> FLAC__stream_encoder_finish(encoder);
> FLAC__stream_encoder_delete(encoder);
>
>write_callback simply writes the encoded data out to a file stream, and
>metadata_callback isn't doing anything at the moment (one thing at a
>time :-) ).
>
>Now one thing that I see which may be causing my issue is...
2006 Nov 06
3
[PATCH] Re: Strangeness with OggFlac files
...Erik de Castro Lopo <erikd-flac@mega-nerd.com> wrote:
> Erik de Castro Lopo wrote:
>
> > Josh et al,
> >
> > I've been tracking down a problem with generating OggFlac files.
>
> <snip>
>
> > I have looked into this 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...
2013 Aug 20
0
sf bug 256 - Virtual functions in destructor
...3a bytes C
Test.exe!write_bitbuffer_(FLAC__StreamEncoder * encoder=0x003571f8,
unsigned int samples=1128, int is_last_block=1) Line 2622 + 0x19 bytes C
Test.exe!process_frame_(FLAC__StreamEncoder * encoder=0x003571f8, int
is_fractional_block=1, int is_last_block=1) Line 3119 + 0x16 bytes C
Test.exe!FLAC__stream_encoder_finish(FLAC__StreamEncoder *
encoder=0x003571f8) Line 1334 + 0xf bytes C
Test.exe!FLAC::Encoder::Stream::~Stream() Line 57 + 0xc bytes C++
Test.exe!FLAC::Encoder::File::~File() Line 448 + 0x8 bytes C++
Test.exe!MyFile::~MyFile() + 0x2e bytes C++
Test.exe!main() Line 188 + 0xf bytes C++
Test.exe!__tmainCRT...
2013 Feb 07
6
Commonly getting FLAC__STREAM_ENCODER_VERIFY_MISMATCH_IN_AUDIO_DATA on valid audio
I'm using libflac on Windows to compress some audio samples. I'm building the
library locally, using Visual Studio 2010. Each set of data is 2-5 MB and well
formed PCM encoded data. I'm finding some very odd behavior.
If I enable verify on the encode stream, I get a verify mismatch on most of my
sample sets. Each set of samples returns this error at a different location in
the stream,
2008 May 19
1
Memory leaks due to Metadata object vorbis comment API ???
...> (FLAC__int16)buffer[2*i]);
> }
> /* feed samples to encoder */
> ok = FLAC__stream_encoder_process_interleaved(encoder, pcm,
> need);
> }
> left -= need;
> }
> }
>
> ok &= FLAC__stream_encoder_finish(encoder);
>
> fprintf(stderr, "encoding: %s\n", ok? "succeeded" : "FAILED");
> fprintf(stderr, " state: %s\n",
> FLAC__StreamEncoderStateString[FLAC__stream_encoder_get_state(encoder)]);
>
> /* now that encoding is finished, th...
2012 May 05
5
[PATCH] Optionally, allow distros to use openssl for MD5 verification
...;
+#endif
+ }
if(!FLAC__add_metadata_block(&encoder->private_->streaminfo, encoder->private_->frame)) {
encoder->protected_->state = FLAC__STREAM_ENCODER_FRAMING_ERROR;
return FLAC__STREAM_ENCODER_INIT_STATUS_ENCODER_ERROR;
@@ -1305,9 +1319,13 @@ FLAC_API FLAC__bool FLAC__stream_encoder_finish(FLAC__StreamEncoder *encoder)
}
}
- if(encoder->protected_->do_md5)
- FLAC__MD5Final(encoder->private_->streaminfo.data.stream_info.md5sum, &encoder->private_->md5context);
-
+ if(encoder->protected_->do_md5) {
+#if defined(HAVE_OPENSSL)
+ error = (EVP_Dig...