Erik de Castro Lopo
2007-Jul-25 02:56 UTC
[Flac-dev] Is FLAC__stream_decoder_seek_absolute working for OggFlac?
Josh Coalson wrote:> --- Erik de Castro Lopo <erikd-flac@mega-nerd.com> wrote: > > > Hi all, > > > > Is seeking working for OggFlac files? I keep on getting a > > FLAC__STREAM_DECODER_SEEK_ERROR. > > yes, it should work fine. in flac/src/test_seeking/main.c there > is an example usage of FLAC__stream_decoder_seek_absolute(). you > could try compiling it and running test_seeking on it. if if fails > maybe there is a bug that your stream is triggering.Ok, running the command: src/test_seeking/test_seeking flac_char.ogg resulted in: +++ seek test: FLAC__StreamDecoder (Ogg FLAC, read_mode=0) file's total_samples is 0 Begin seek barrage, count=0 #0:seek(0)... seek failed, assuming it was past EOF... OK #1:seek(1)... seek failed, assuming it was past EOF... OK #2:seek(2)... seek failed, assuming it was past EOF... OK #3:seek(3)... seek failed, assuming it was past EOF... OK #4:seek(4)... seek failed, assuming it was past EOF... OK #5:seek(5)... seek failed, assuming it was past EOF... OK #6:seek(6)... seek failed, assuming it was past EOF... OK #7:seek(7)... seek failed, assuming it was past EOF... OK #8:seek(8)... seek failed, assuming it was past EOF... OK #9:seek(9)... seek failed, assuming it was past EOF... OK #10:seek(2332)... seek failed, assuming it was past EOF... OK #11:seek(2331)... seek failed, assuming it was past EOF... OK #12:seek(2330)... seek failed, assuming it was past EOF... OK #13:seek(2329)... seek failed, assuming it was past EOF... OK and so on. The test file is here: http://www.mega-nerd.com/tmp/flac_char.ogg Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "C++ is a language strongly optimized for liars and people who go by guesswork and ignorance." -- Erik Naggum
Josh Coalson
2007-Sep-11 00:16 UTC
[Flac-dev] Is FLAC__stream_decoder_seek_absolute working for OggFlac?
--- Erik de Castro Lopo <erikd-flac@mega-nerd.com> wrote:> Josh Coalson wrote: > > > --- Erik de Castro Lopo <erikd-flac@mega-nerd.com> wrote: > > > > > Hi all, > > > > > > Is seeking working for OggFlac files? I keep on getting a > > > FLAC__STREAM_DECODER_SEEK_ERROR. > > > > yes, it should work fine. in flac/src/test_seeking/main.c there > > is an example usage of FLAC__stream_decoder_seek_absolute(). you > > could try compiling it and running test_seeking on it. if if fails > > maybe there is a bug that your stream is triggering. > > Ok, running the command: > > src/test_seeking/test_seeking flac_char.ogg > > resulted in: > > +++ seek test: FLAC__StreamDecoder (Ogg FLAC, read_mode=0) > > file's total_samples is 0 > Begin seek barrage, count=0 > #0:seek(0)... seek failed, assuming it was past EOF... OK > #1:seek(1)... seek failed, assuming it was past EOF... OK > #2:seek(2)... seek failed, assuming it was past EOF... OK > #3:seek(3)... seek failed, assuming it was past EOF... OK > #4:seek(4)... seek failed, assuming it was past EOF... OK > #5:seek(5)... seek failed, assuming it was past EOF... OK > #6:seek(6)... seek failed, assuming it was past EOF... OK > #7:seek(7)... seek failed, assuming it was past EOF... OK > #8:seek(8)... seek failed, assuming it was past EOF... OK > #9:seek(9)... seek failed, assuming it was past EOF... OK > #10:seek(2332)... seek failed, assuming it was past EOF... OK > #11:seek(2331)... seek failed, assuming it was past EOF... OK > #12:seek(2330)... seek failed, assuming it was past EOF... OK > #13:seek(2329)... seek failed, assuming it was past EOF... OK > > and so on. > > The test file is here: > > http://www.mega-nerd.com/tmp/flac_char.oggyep, this is definitely a bug, thanks for the test case. requires a tiny fix to the ogg seek algorithm which I will check in tonight. Josh ____________________________________________________________________________________ Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545469
Erik de Castro Lopo
2007-Sep-11 00:27 UTC
[Flac-dev] Is FLAC__stream_decoder_seek_absolute working for OggFlac?
Josh Coalson wrote:> > The test file is here: > > > > http://www.mega-nerd.com/tmp/flac_char.ogg > > yep, this is definitely a bug, thanks for the test case. requires > a tiny fix to the ogg seek algorithm which I will check in tonight.Oh cool. I was wondering what happened to that issue. Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- "Web (hosting), security and high-performance computing are the three areas where Linux has more strength." -- Bob Muglia, senior VP in charge of Windows Server development. http://news.com.com/Microsoft+targets+Apache+Web+server/2100-1010_3-5735805.html
Apparently Analagous Threads
- Is FLAC__stream_decoder_seek_absolute working for OggFlac?
- Is FLAC__stream_decoder_seek_absolute working for OggFlac?
- Is FLAC__stream_decoder_seek_absolute working for OggFlac?
- FLAC__stream_decoder_seek_absolute with FLAC__STREAM_DECODER_SEEK_ERROR in 1.1.3 but it worked before
- Strangeness with OggFlac files