Hi I'm having a seemingly odd problem with flac 1.1.0: when I decode a large (CD size) flac file, using --skip and --until to extract a single track, flac appears to continue to decode until it reaches the end of the file: donald@klatch:~/arch/loveovergold$ time flac -d -o - --until=+1048576 data.flac > /dev/null flac 1.1.0, Copyright (C) 2000,2001,2002,2003 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. data.flac: done real 0m45.948s user 0m39.800s sys 0m1.670s donald@klatch:~/arch/loveovergold$ time flac -d -o - data.flac > /dev/null flac 1.1.0, Copyright (C) 2000,2001,2002,2003 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. data.flac: done real 1m3.983s user 0m44.840s sys 0m1.710s donald@klatch:~/arch/loveovergold$ time flac -d -o - --skip=52920000 --until=+1048576 data.flac > /dev/null flac 1.1.0, Copyright (C) 2000,2001,2002,2003 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. data.flac: done real 0m23.943s user 0m16.280s sys 0m0.970s As you can see, starting at the beginning of the file always takes about the same amount of time, and starting later still takes a reasonable amount of time to decode 1Msamples (~23s). I'm guessing this is a bug :-) donald (please CC me replies, I'm not subscribed to the list)
sorry about the delay on this one... do you have a sample flac file that you can host that exhibits the problem? Josh --- Donald Gordon <don@dis.org.nz> wrote:> Hi > > I'm having a seemingly odd problem with flac 1.1.0: when I decode a > large (CD size) flac file, using --skip and --until to extract a > single > track, flac appears to continue to decode until it reaches the end of > the file: > > donald@klatch:~/arch/loveovergold$ time flac -d -o - --until=+1048576 > data.flac > /dev/null > flac 1.1.0, Copyright (C) 2000,2001,2002,2003 Josh Coalson > flac comes with ABSOLUTELY NO WARRANTY. This is free software, and > you are > welcome to redistribute it under certain conditions. Type `flac' for > details. > > data.flac: done > > real 0m45.948s > user 0m39.800s > sys 0m1.670s > donald@klatch:~/arch/loveovergold$ time flac -d -o - data.flac > > /dev/null > > flac 1.1.0, Copyright (C) 2000,2001,2002,2003 Josh Coalson > flac comes with ABSOLUTELY NO WARRANTY. This is free software, and > you are > welcome to redistribute it under certain conditions. Type `flac' for > details. > > data.flac: done > > real 1m3.983s > user 0m44.840s > sys 0m1.710s > donald@klatch:~/arch/loveovergold$ time flac -d -o - --skip=52920000 > --until=+1048576 data.flac > /dev/null > flac 1.1.0, Copyright (C) 2000,2001,2002,2003 Josh Coalson > flac comes with ABSOLUTELY NO WARRANTY. This is free software, and > you are > welcome to redistribute it under certain conditions. Type `flac' for > details. > > data.flac: done > > real 0m23.943s > user 0m16.280s > sys 0m0.970s > > As you can see, starting at the beginning of the file always takes > about > the same amount of time, and starting later still takes a reasonable > amount of time to decode 1Msamples (~23s). > > I'm guessing this is a bug :-) > > donald > (please CC me replies, I'm not subscribed to the list)__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
On Fri, 7 Nov 2003 11:42:05 -0800 (PST) Josh Coalson <xflac@yahoo.com> wrote:> sorry about the delay on this one... > > do you have a sample flac file that you can host that exhibits > the problem?Ha. The flac files used in the examples below were of entire audio CDs; due to my use of "time" to demostrate the problem I need a fairly large file. I can simulate the problem by creating a dummy test file: ---- donald@klatch:~$ dd if=/dev/zero bs=1048576 count=100 | flac -o test.flac --endian=little --channels=2 --bps=16 --sample-rate=44100 --sign=signed --force-raw-format - flac 1.1.0, Copyright (C) 2000,2001,2002,2003 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. options: -P 4096 -b 4608 -m -l 8 -q 0 -r 3,3 (No runtime statistics possible; please wait for encoding to finish...) 100+0 records in 100+0 records out 104857600 bytes transferred in 6.731431 seconds (15577312 bytes/sec) ---- which will then exhibit the same problem -- it will take as long to decode the first million samples as the entire file: ---- donald@klatch:~$ time flac -d -o - test.flac >/dev/null flac 1.1.0, Copyright (C) 2000,2001,2002,2003 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. test.flac: done real 0m12.367s user 0m9.290s sys 0m0.820s donald@klatch:~$ time flac -d -o - --until=+1048576 test.flac >/dev/null flac 1.1.0, Copyright (C) 2000,2001,2002,2003 Josh Coalson flac comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. Type `flac' for details. test.flac: done real 0m10.339s user 0m8.360s sys 0m0.610s ---- donald