Hi, I'm having problems encoding certain WAV files to FLACs. I'm working for a download store so we get loads of different WAVs from hundreds of suppliers and generally they encode ok, but sometimes we are getting unexplained errors. I've looked through the archives for the last few months but I can't see any discussions that relate to this specific problem. This file: http://www.outspaced.com/tester.wav was received in a batch with 14 other WAVs from a supplier. Of these, 4 got rejected by the FLAC encoder, while the rest got encoded successfully. Each one that got rejected encoded up to 98 or 99%, before quitting with this error: tester.wav: 98% complete, ratio=0.610882269808838_01_14.wav: ERROR: got partial sample Normally when this error happens, the file has actually been truncated from a cutoff during FTP, but for these ones, the checksums supplied all match the ones we generated and the files don't sound like they're missing any audio. I've got no idea what else could be wrong with the file ... is there any ways around this? Cheers, Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20071101/c143f9b0/attachment.html
> This file: http://www.outspaced.com/tester.wav was received in a batch with > 14 other WAVs from a supplier. Of these, 4 got rejected by the FLAC > encoder, while the rest got encoded successfully. > > Each one that got rejected encoded up to 98 or 99%, before quitting with > this error: > > tester.wav: 98% complete, ratio=0.610882269808838_01_14.wav: ERROR: got > partial sampleThe file actually encodes to 100% on my machine (and tests ok as well) - I still get the error message, though. Details: Windows XP SP 2, FLAC Frontend 1.7.1 (flac -v = 1.2.1) or Trader's Little Helper 1.1.1.90. "tester.wav: 100% complete, ratio=0.603tester.wav: ERROR: got partial sample" fingerprint: tester.flac:fe6c2c83d42f766423a8bd572469e96d Martin
Ok, we actually worked this out - there were 2 extra bytes doing nothing at the end of the files. Opening the file in SoundForge and saving it (without changing it) took off the extra bytes and allowed the file to convert to FLAC. Thanks to everyone who emailed me suggestions. Is there a decent program for linux that could automatically take these bytes off, without running the risk of removing good data? Or is there a way to get the flac converter to ignore this error and create the file? I'm running flac 1.2.1 on Red Hat Enterprise Linux ES release 4. cheers, Alex On 01/11/2007, Alex Brims <alex.brims@gmail.com> wrote:> > Hi, > > I'm having problems encoding certain WAV files to FLACs. I'm working for > a download store so we get loads of different WAVs from hundreds of > suppliers and generally they encode ok, but sometimes we are getting > unexplained errors. I've looked through the archives for the last few > months but I can't see any discussions that relate to this specific problem. > > This file: http://www.outspaced.com/tester.wav was received in a batch > with 14 other WAVs from a supplier. Of these, 4 got rejected by the FLAC > encoder, while the rest got encoded successfully. > > Each one that got rejected encoded up to 98 or 99%, before quitting with > this error: > > tester.wav: 98% complete, ratio=0.610882269808838_01_14.wav: ERROR: got > partial sample > > Normally when this error happens, the file has actually been truncated > from a cutoff during FTP, but for these ones, the checksums supplied all > match the ones we generated and the files don't sound like they're missing > any audio. > > I've got no idea what else could be wrong with the file ... is there any > ways around this? > > Cheers, > Alex > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/flac/attachments/20071101/15761dac/attachment.htm
--- Alex Brims <alex.brims@gmail.com> wrote:> Is there a decent program for linux that could automatically take > these > bytes off, without running the risk of removing good data? Or is > there a > way to get the flac converter to ignore this error and create the > file? I'm > running flac 1.2.1 on Red Hat Enterprise Linux ES release 4.I'm not sure about wav verification tools, but I'm hesitant to add functionality to handle or work around broken input files, flac is already complicated enough as it is. that's really the job of some other verification/fixit tool. Josh __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
dd if=$file ibs=1 count=$(($(stat --printf='%s' $file)-2)) of=$file.new of course if you run this on one of the files that doesn't have the extra 2 bytes you're gonna lose something you didn't want to On 11/1/07, Alex Brims <alex.brims@gmail.com> wrote:> Ok, we actually worked this out - there were 2 extra bytes doing nothing at > the end of the files. Opening the file in SoundForge and saving it (without > changing it) took off the extra bytes and allowed the file to convert to > FLAC. > > Thanks to everyone who emailed me suggestions. > > Is there a decent program for linux that could automatically take these > bytes off, without running the risk of removing good data? Or is there a > way to get the flac converter to ignore this error and create the file? I'm > running flac 1.2.1 on Red Hat Enterprise Linux ES release 4.