Re: [Flac-dev] wav to flac corruption
I've had this problem with all versions of flac, so I don't think that this is specific to that bug in 1.2.1. I think Stuart has it right, it's probably caused by flac player developers not coding the 24 bit path. Unfortunately for me, the JFlac project hasn't had an update since 2005 so it's probably going to be up to me to fix the problem... J. > > this is probably the problem: > http://www.hydrogenaudio.org/forums/index.php?showtopic=57572&st=40&p=518661entry518661 > ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
--- Justin Waddell <[EMAIL PROTECTED]> wrote: > I have exactly the same problem. > > I encoded a BWF file to flac and then then decoded back to wav, using > --keep-foreign-metadata, and I ended up with a bit-perfect copy of > the original BWF. So I was fairly confident that the flac encoding is > working correctly, the problem definitely appears to be with the flac > players. > > Unfortunately it seems that the majority of flac players cannot play > 24bit files - winamp, windows media player (with flac plugin), vlc, > amarok, kaffeine and a few others ALL failed to play the file. I > would > either get silence, static, or a complete refusal to play the file. > The only player that played it successfully was Foobar 2000 on > Windows. > > More seriously from my point of view is the Java flac plugin also > fails, which has major repercussions for the project I work on (the > National Archives of Australia Xena project - > http://xena.sourceforge.net). > > I don't know how much the flac developers have to do with the player > implementations, but this does seem to be a major problem across > almost the full board of flac players. this is probably the problem: http://www.hydrogenaudio.org/forums/index.php?showtopic=57572&st=40&p=518661entry518661 Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
"Stuart Fisher" <[EMAIL PROTECTED]> wrote: ... > My guess is > that many players have hard-coded 16-bit code paths. Mine certainly does, > although in my defence it is a mobile phone FLAC player and I wouldn't > really expect anybody to put broadcast quality audio on a mobile phone. > Something to look at for future development though! Does your player produce a sensible error message when asked to play 24-bit files? Justin's experience seemed to be that most of the FLAC players didn't do this. How much of the FLAC spec a player supports is up to the developer. However, I don't see any excuse for a player failing cryptically. Regards, Martin -- Martin J Leese E-mail: [EMAIL PROTECTED] Web: http://members.tripod.com/martin_leese/ ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
Winamp supports 24bit FLAC files just fine. Make sure you are using the plugin that ships with the latest versions of Winamp, and not the one distributed with the FLAC tools. Justin Waddell wrote: I have exactly the same problem. I encoded a BWF file to flac and then then decoded back to wav, using --keep-foreign-metadata, and I ended up with a bit-perfect copy of the original BWF. So I was fairly confident that the flac encoding is working correctly, the problem definitely appears to be with the flac players. Unfortunately it seems that the majority of flac players cannot play 24bit files - winamp, windows media player (with flac plugin), vlc, amarok, kaffeine and a few others ALL failed to play the file. I would either get silence, static, or a complete refusal to play the file. The only player that played it successfully was Foobar 2000 on Windows. More seriously from my point of view is the Java flac plugin also fails, which has major repercussions for the project I work on (the National Archives of Australia Xena project - http://xena.sourceforge.net). I don't know how much the flac developers have to do with the player implementations, but this does seem to be a major problem across almost the full board of flac players. ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
Unfortunately it seems that the majority of flac players cannot play 24bit files - winamp, windows media player (with flac plugin), vlc, amarok, kaffeine and a few others ALL failed to play the file. I would The latest version of Winamp works fine for me, at least with 24/48 - haven't tried 24/96 yet. Martin ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
As a player writer this doesn't really surprise me very much. My guess is that many players have hard-coded 16-bit code paths. Mine certainly does, although in my defence it is a mobile phone FLAC player and I wouldn't really expect anybody to put broadcast quality audio on a mobile phone. Something to look at for future development though! Stuart ("OggPlay project") - Original Message - From: "Justin Waddell" <[EMAIL PROTECTED]> To: "Brian Willoughby" <[EMAIL PROTECTED]> Cc: Sent: Friday, February 08, 2008 12:55 AM Subject: Re: [Flac-dev] wav to flac corruption I have exactly the same problem. I encoded a BWF file to flac and then then decoded back to wav, using --keep-foreign-metadata, and I ended up with a bit-perfect copy of the original BWF. So I was fairly confident that the flac encoding is working correctly, the problem definitely appears to be with the flac players. Unfortunately it seems that the majority of flac players cannot play 24bit files - winamp, windows media player (with flac plugin), vlc, amarok, kaffeine and a few others ALL failed to play the file. I would either get silence, static, or a complete refusal to play the file. The only player that played it successfully was Foobar 2000 on Windows. More seriously from my point of view is the Java flac plugin also fails, which has major repercussions for the project I work on (the National Archives of Australia Xena project - http://xena.sourceforge.net). I don't know how much the flac developers have to do with the player implementations, but this does seem to be a major problem across almost the full board of flac players. J. On Feb 7, 2008 9:59 AM, Brian Willoughby <[EMAIL PROTECTED]> wrote: I have one theory about your playback problem: Many flac solutions load the entire flac and decompress the samples before passing them on to the player. In your case, the conversion code may be running out of memory on 24-bit files where it does not run out of memory on 16-bit files of the same duration. Another possibility is that the flac player does not support 24-bit data properly. As Erik mentioned, conversion to 16-bit is a loss of quality. Even if you are willing to do this, you should have a very good dithering algorithm to avoid quantization noise. The problem you are having is not with flac. Your problem is with your player. The encode and decoder both support 24-bit files all the way up to the 4 GB limit. I have made several 24-bit multitrack recordings, and flac always handles these files without loss of data. The flac players I have fully support long 24-bit files. It seems that you need to replace your player if it cannot handle large 24-bit files. You don't want to reduce the quality of your source or abandon lossless coding just because the players are buggy! Brian Willoughby Sound Consulting ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
I have exactly the same problem. I encoded a BWF file to flac and then then decoded back to wav, using --keep-foreign-metadata, and I ended up with a bit-perfect copy of the original BWF. So I was fairly confident that the flac encoding is working correctly, the problem definitely appears to be with the flac players. Unfortunately it seems that the majority of flac players cannot play 24bit files - winamp, windows media player (with flac plugin), vlc, amarok, kaffeine and a few others ALL failed to play the file. I would either get silence, static, or a complete refusal to play the file. The only player that played it successfully was Foobar 2000 on Windows. More seriously from my point of view is the Java flac plugin also fails, which has major repercussions for the project I work on (the National Archives of Australia Xena project - http://xena.sourceforge.net). I don't know how much the flac developers have to do with the player implementations, but this does seem to be a major problem across almost the full board of flac players. J. On Feb 7, 2008 9:59 AM, Brian Willoughby <[EMAIL PROTECTED]> wrote: > I have one theory about your playback problem: Many flac solutions > load the entire flac and decompress the samples before passing them > on to the player. In your case, the conversion code may be running > out of memory on 24-bit files where it does not run out of memory on > 16-bit files of the same duration. Another possibility is that the > flac player does not support 24-bit data properly. > > As Erik mentioned, conversion to 16-bit is a loss of quality. Even > if you are willing to do this, you should have a very good dithering > algorithm to avoid quantization noise. > > The problem you are having is not with flac. Your problem is with > your player. The encode and decoder both support 24-bit files all > the way up to the 4 GB limit. I have made several 24-bit multitrack > recordings, and flac always handles these files without loss of > data. The flac players I have fully support long 24-bit files. It > seems that you need to replace your player if it cannot handle large > 24-bit files. > > You don't want to reduce the quality of your source or abandon > lossless coding just because the players are buggy! > > Brian Willoughby > Sound Consulting > > ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
Erik wrote: The problem you are having is not with flac. Your problem is with your player. If you want to try another player, try sndfile-play from libsndfile which compiles and works on Linux, win32 and Mac OSX. Seconded. Winamp and foobar2000 (both latest versions) are good choices for the PC. ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
Brian Willoughby wrote: > The problem you are having is not with flac. Your problem is with > your player. If you want to try another player, try sndfile-play from libsndfile which compiles and works on Linux, win32 and Mac OSX. Erik -- - Erik de Castro Lopo - Fundamentalist : Someone who is colour blind and yet wants everyone else to see the world with the same lack of colour. ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
I have one theory about your playback problem: Many flac solutions load the entire flac and decompress the samples before passing them on to the player. In your case, the conversion code may be running out of memory on 24-bit files where it does not run out of memory on 16-bit files of the same duration. Another possibility is that the flac player does not support 24-bit data properly. As Erik mentioned, conversion to 16-bit is a loss of quality. Even if you are willing to do this, you should have a very good dithering algorithm to avoid quantization noise. The problem you are having is not with flac. Your problem is with your player. The encode and decoder both support 24-bit files all the way up to the 4 GB limit. I have made several 24-bit multitrack recordings, and flac always handles these files without loss of data. The flac players I have fully support long 24-bit files. It seems that you need to replace your player if it cannot handle large 24-bit files. You don't want to reduce the quality of your source or abandon lossless coding just because the players are buggy! Brian Willoughby Sound Consulting On Feb 6, 2008, at 13:57, Matthew Davis wrote: So some research and experimentation I think I found the problem, but I'm not sure how to go about fixing it. If I import one of the wav files into Audacity then export them as "16 bit PCM" then they encode to flac and play fine. The files bitrates are currently at 24. If I export them from audacity as a 24 or 32 (anything higher than 16), flac fails on me. With a bitrate of 24, the file is encoded but won't play. With a bitrate of 32, flac says it can't do it. Questions in no particular order: 1) I assume converting from 24 bits to 16 bits results in a loss of information, right? 2) Is there a faster way to convert rather than going in and out of audacity. 3) Is there a way to make 24 bit files work with flac? Thank you again, Matthew ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
Matthew Davis wrote: > If I import one of the wav files into Audacity then export them as "16 bit > PCM" then they encode to flac and play fine. Ok. > The files bitrates are currently at 24. Sorry to be a pedant, but you mean sample bitwidth of 24 rather than bitrate. > If I export them from audacity as a 24 or 32 (anything > higher than 16), flac fails on me. With a bitrate of 24, the file is encoded > but won't play. With a bitrate of 32, flac says it can't do it. Looks like this *might* be a bug in the FLAC WAV reading code. > Questions in no particular order: > 1) I assume converting from 24 bits to 16 bits results in a loss of > information, right? Yes. > 2) Is there a faster way to convert rather than going in and out of > audacity. sndfile-convert from libsndfile. > 3) Is there a way to make 24 bit files work with flac? I tried converting a 24 bit WAV using sndfile-convert and it worked as expected although the output file was 72% of the size of the input file. Obviously, sndfile-coonvert uses libsndfile's WAV reading code. The sndfile-convert program is part of libsndfile and you can grab the latest libsndfile pre-release here: http://www.mega-nerd.com/tmp/libsndfile-1.0.18pre20.tar.gz Erik -- - Erik de Castro Lopo - "In civilian equipment, such as computers, the number of components alone makes miniaturization essential if the computer is to be housed in a reasonable-sized building." Electronics Oct. 1, 1957, p. 178 ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
So some research and experimentation I think I found the problem, but I'm not sure how to go about fixing it. If I import one of the wav files into Audacity then export them as "16 bit PCM" then they encode to flac and play fine. The files bitrates are currently at 24. If I export them from audacity as a 24 or 32 (anything higher than 16), flac fails on me. With a bitrate of 24, the file is encoded but won't play. With a bitrate of 32, flac says it can't do it. Questions in no particular order: 1) I assume converting from 24 bits to 16 bits results in a loss of information, right? 2) Is there a faster way to convert rather than going in and out of audacity. 3) Is there a way to make 24 bit files work with flac? Thank you again, Matthew On Feb 6, 2008 1:48 PM, Erik de Castro Lopo <[EMAIL PROTECTED]> wrote: > Matthew Davis wrote: > > > And more info... > > > > Screen capture of the WAV file's hex. This tells me little, but maybe > > someone out there knows more about this than me. > > > > http://img139.imageshack.us/my.php?image=screenshot251awavghexnd1.png > > I don't see anything wrong there. > > Have you tried running it past sndfile-info which is part of > libsndfile: > >http://www.mega-nerd.com/libsndfile/ > > Does the flac encoder you're using do small files correctly? It may > be a miscompiled FLAC encoder. > > Erik > -- > - > Erik de Castro Lopo > - > "I wouldn't be surprised to see "Duke Nukem Forever" get > released before Perl 6." -- Rob on the LAU mailing list > ___ > Flac-dev mailing list > Flac-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/flac-dev > ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
Matthew Davis wrote: > And more info... > > Screen capture of the WAV file's hex. This tells me little, but maybe > someone out there knows more about this than me. > > http://img139.imageshack.us/my.php?image=screenshot251awavghexnd1.png I don't see anything wrong there. Have you tried running it past sndfile-info which is part of libsndfile: http://www.mega-nerd.com/libsndfile/ Does the flac encoder you're using do small files correctly? It may be a miscompiled FLAC encoder. Erik -- - Erik de Castro Lopo - "I wouldn't be surprised to see "Duke Nukem Forever" get released before Perl 6." -- Rob on the LAU mailing list ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
And more info... Screen capture of the WAV file's hex. This tells me little, but maybe someone out there knows more about this than me. http://img139.imageshack.us/my.php?image=screenshot251awavghexnd1.png Thanks again, Matthew On Feb 6, 2008 12:18 PM, Matthew Davis <[EMAIL PROTECTED]> wrote: > Came across another error that might help! Using flac -t I get: > > 251_A.wav: *** Got error code > 0:FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC > 251_A.wav: *** Got error code > 0:FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC > > Thanks, > Matthew > > > On Feb 6, 2008 3:19 AM, Matthew Davis <[EMAIL PROTECTED]> wrote: > > > Thank you for the reply! I know that my system can play flac files, > > I've played others I've managed to convert using both of those programs. > > I'm only running into difficulty when it comes to these large WAV files. By > > "Does not work" I mean that they do not play, and instead I receive the > > errors I mentioned in my original post. I wasn't actually intending to use > > wavsplit to split the flac files, it was just something I had during some > > testing for how to split these files. I'm actually going to be splitting > > during the conversion since the flac tool supports specifying time marks. > > > > Is there something that could be wrong with the WAV files that prevent > > them from being able to convert to FLAC? Is there someway I can test the > > integrity of the WAV files? > > > > Thanks again in advance, > > Matthew > > > > > > On Feb 5, 2008 6:07 PM, Brian Willoughby <[EMAIL PROTECTED]> wrote: > > > > > Matthew, > > > > > > I don't think I can answer your entire question, but I will list a > > > few pieces of information. > > > > > > 1) I regularly convert very large AIFF files, up to 4 GB, using > > > flac. I sometimes work with WAV, and that seems to work, too. On my > > > Mac, I can play flac files just fine in Play.app, VLC, and my own > > > software. > > > > > > 2) What do you mean the flac "files do not work"? You mean they > > > don't play? They will only play from software with full support for > > > the flac format, which means many popular applications will not work. > > > > > > 3) I have not heard of "flac123" - perhaps this program is out of > > > date or is missing support. Maybe the author(s) of flac123 will > > > comment. > > > > > > 4) Those warning mean that your Broadcast Wave File (BWF) is being > > > converted to standard audio flac, without any of the metadata from > > > the BWF. You'll need to use --keep-foreign-metadata if there is any > > > importance to having the original BWF restored later. However, if > > > all you need is the audio and none of the other information, then you > > > can safely ignore these warnings. FLAC always preserves all of the > > > audio losslessly, you only ever have to worry about losing non-audio > > > data. > > > > > > 5) You can only split a flac file if your splitting program > > > understands the format. You should learn the FLAC library and see > > > what kind of support it has for breaking a stream. If you use other > > > tools to split the file without knowledge of the FLAC format, you > > > will lose data. In other words, you must develop a new program, > > > maybe called "flacsplit," to do this, because wavsplit will not work > > > on FLAC (unless they parse the FLAC format correctly as well as WAV). > > > > > > I hope some of this information helps. > > > > > > Brian Willoughby > > > Sound Consulting > > > > > > > > > On Feb 5, 2008, at 16:54, Matthew Davis wrote: > > > I'm attempting to convert fairly large WAV files (90 - 800 MB each) > > > using flac but the files do not work after the encoding. (The play > > > fine in wav format) > > > > > > Command I'm using: > > > > > > flac --verify -8 file.wav > > > > > > Attempting to run the file with either flac123 or the default player > > > for Ubuntu (Movie Player?) results in the extremely terse messages: > > > Default Player: "An Error Occurred: Could Not Decode Stream" > > > flac123: "error handler called!" <- repeated over and over and over > > > > > > There are no errors during the encoding, though there are some > > > warnings. Here is the output: > > > > > > [EMAIL PROTECTED]:~$ flac -f -8 --verify 10_A.wav > > > > > > 10_A.wav: WARNING: skipping unknown sub-chunk 'bext' (use --keep- > > > foreign-metadata to keep) > > > 10_A.wav: WARNING: legacy WAVE file has format type 1 but bits-per- > > > sample=24 > > > 10_A.wav: WARNING: skipping unknown sub-chunk 'minf' (use --keep- > > > foreign-metadata to keep) > > > 10_A.wav: WARNING: skipping unknown sub-chunk 'elm1' (use --keep- > > > foreign-metadata to keep) > > > 10_A.wav: 100% complete, ratio=0.62410_A.wav: WARNING: skipping > > > unknown sub-chunk 'regn' (use --keep-foreign-metadata to keep) > > > 10_A.wav: WARNING: skipping unknown sub-chunk 'ovwf' (use --keep- > > > foreign-metadata to keep) > > > 10_A.wav: WARNING: skipping unknown sub-chunk 'umid' (use --keep- > > > foreign-metadata
Re: [Flac-dev] wav to flac corruption
Came across another error that might help! Using flac -t I get: 251_A.wav: *** Got error code 0:FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC 251_A.wav: *** Got error code 0:FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC Thanks, Matthew On Feb 6, 2008 3:19 AM, Matthew Davis <[EMAIL PROTECTED]> wrote: > Thank you for the reply! I know that my system can play flac files, I've > played others I've managed to convert using both of those programs. I'm > only running into difficulty when it comes to these large WAV files. By > "Does not work" I mean that they do not play, and instead I receive the > errors I mentioned in my original post. I wasn't actually intending to use > wavsplit to split the flac files, it was just something I had during some > testing for how to split these files. I'm actually going to be splitting > during the conversion since the flac tool supports specifying time marks. > > Is there something that could be wrong with the WAV files that prevent > them from being able to convert to FLAC? Is there someway I can test the > integrity of the WAV files? > > Thanks again in advance, > Matthew > > > On Feb 5, 2008 6:07 PM, Brian Willoughby <[EMAIL PROTECTED]> wrote: > > > Matthew, > > > > I don't think I can answer your entire question, but I will list a > > few pieces of information. > > > > 1) I regularly convert very large AIFF files, up to 4 GB, using > > flac. I sometimes work with WAV, and that seems to work, too. On my > > Mac, I can play flac files just fine in Play.app, VLC, and my own > > software. > > > > 2) What do you mean the flac "files do not work"? You mean they > > don't play? They will only play from software with full support for > > the flac format, which means many popular applications will not work. > > > > 3) I have not heard of "flac123" - perhaps this program is out of > > date or is missing support. Maybe the author(s) of flac123 will > > comment. > > > > 4) Those warning mean that your Broadcast Wave File (BWF) is being > > converted to standard audio flac, without any of the metadata from > > the BWF. You'll need to use --keep-foreign-metadata if there is any > > importance to having the original BWF restored later. However, if > > all you need is the audio and none of the other information, then you > > can safely ignore these warnings. FLAC always preserves all of the > > audio losslessly, you only ever have to worry about losing non-audio > > data. > > > > 5) You can only split a flac file if your splitting program > > understands the format. You should learn the FLAC library and see > > what kind of support it has for breaking a stream. If you use other > > tools to split the file without knowledge of the FLAC format, you > > will lose data. In other words, you must develop a new program, > > maybe called "flacsplit," to do this, because wavsplit will not work > > on FLAC (unless they parse the FLAC format correctly as well as WAV). > > > > I hope some of this information helps. > > > > Brian Willoughby > > Sound Consulting > > > > > > On Feb 5, 2008, at 16:54, Matthew Davis wrote: > > I'm attempting to convert fairly large WAV files (90 - 800 MB each) > > using flac but the files do not work after the encoding. (The play > > fine in wav format) > > > > Command I'm using: > > > > flac --verify -8 file.wav > > > > Attempting to run the file with either flac123 or the default player > > for Ubuntu (Movie Player?) results in the extremely terse messages: > > Default Player: "An Error Occurred: Could Not Decode Stream" > > flac123: "error handler called!" <- repeated over and over and over > > > > There are no errors during the encoding, though there are some > > warnings. Here is the output: > > > > [EMAIL PROTECTED]:~$ flac -f -8 --verify 10_A.wav > > > > 10_A.wav: WARNING: skipping unknown sub-chunk 'bext' (use --keep- > > foreign-metadata to keep) > > 10_A.wav: WARNING: legacy WAVE file has format type 1 but bits-per- > > sample=24 > > 10_A.wav: WARNING: skipping unknown sub-chunk 'minf' (use --keep- > > foreign-metadata to keep) > > 10_A.wav: WARNING: skipping unknown sub-chunk 'elm1' (use --keep- > > foreign-metadata to keep) > > 10_A.wav: 100% complete, ratio=0.62410_A.wav: WARNING: skipping > > unknown sub-chunk 'regn' (use --keep-foreign-metadata to keep) > > 10_A.wav: WARNING: skipping unknown sub-chunk 'ovwf' (use --keep- > > foreign-metadata to keep) > > 10_A.wav: WARNING: skipping unknown sub-chunk 'umid' (use --keep- > > foreign-metadata to keep) > > 10_A.wav: Verify OK, wrote 168060055 bytes, ratio=0.624 > > > > > > As a final random test, I attempted to split one of the wav files (my > > ultimate goal is split flac files) using wavsplit. That resulted in > > the following output/error. > > > > Channels: 1 > > Samplerate: 96000Hz > > Samplebits: 24 > > Databytes: 269503836 > > > > Split Hours Mins Seconds Bytes % > > Bad file format > > > > > ___ Flac-dev mailing
Re: [Flac-dev] wav to flac corruption
Thank you for the reply! I know that my system can play flac files, I've played others I've managed to convert using both of those programs. I'm only running into difficulty when it comes to these large WAV files. By "Does not work" I mean that they do not play, and instead I receive the errors I mentioned in my original post. I wasn't actually intending to use wavsplit to split the flac files, it was just something I had during some testing for how to split these files. I'm actually going to be splitting during the conversion since the flac tool supports specifying time marks. Is there something that could be wrong with the WAV files that prevent them from being able to convert to FLAC? Is there someway I can test the integrity of the WAV files? Thanks again in advance, Matthew On Feb 5, 2008 6:07 PM, Brian Willoughby <[EMAIL PROTECTED]> wrote: > Matthew, > > I don't think I can answer your entire question, but I will list a > few pieces of information. > > 1) I regularly convert very large AIFF files, up to 4 GB, using > flac. I sometimes work with WAV, and that seems to work, too. On my > Mac, I can play flac files just fine in Play.app, VLC, and my own > software. > > 2) What do you mean the flac "files do not work"? You mean they > don't play? They will only play from software with full support for > the flac format, which means many popular applications will not work. > > 3) I have not heard of "flac123" - perhaps this program is out of > date or is missing support. Maybe the author(s) of flac123 will > comment. > > 4) Those warning mean that your Broadcast Wave File (BWF) is being > converted to standard audio flac, without any of the metadata from > the BWF. You'll need to use --keep-foreign-metadata if there is any > importance to having the original BWF restored later. However, if > all you need is the audio and none of the other information, then you > can safely ignore these warnings. FLAC always preserves all of the > audio losslessly, you only ever have to worry about losing non-audio > data. > > 5) You can only split a flac file if your splitting program > understands the format. You should learn the FLAC library and see > what kind of support it has for breaking a stream. If you use other > tools to split the file without knowledge of the FLAC format, you > will lose data. In other words, you must develop a new program, > maybe called "flacsplit," to do this, because wavsplit will not work > on FLAC (unless they parse the FLAC format correctly as well as WAV). > > I hope some of this information helps. > > Brian Willoughby > Sound Consulting > > > On Feb 5, 2008, at 16:54, Matthew Davis wrote: > I'm attempting to convert fairly large WAV files (90 - 800 MB each) > using flac but the files do not work after the encoding. (The play > fine in wav format) > > Command I'm using: > > flac --verify -8 file.wav > > Attempting to run the file with either flac123 or the default player > for Ubuntu (Movie Player?) results in the extremely terse messages: > Default Player: "An Error Occurred: Could Not Decode Stream" > flac123: "error handler called!" <- repeated over and over and over > > There are no errors during the encoding, though there are some > warnings. Here is the output: > > [EMAIL PROTECTED]:~$ flac -f -8 --verify 10_A.wav > > 10_A.wav: WARNING: skipping unknown sub-chunk 'bext' (use --keep- > foreign-metadata to keep) > 10_A.wav: WARNING: legacy WAVE file has format type 1 but bits-per- > sample=24 > 10_A.wav: WARNING: skipping unknown sub-chunk 'minf' (use --keep- > foreign-metadata to keep) > 10_A.wav: WARNING: skipping unknown sub-chunk 'elm1' (use --keep- > foreign-metadata to keep) > 10_A.wav: 100% complete, ratio=0.62410_A.wav: WARNING: skipping > unknown sub-chunk 'regn' (use --keep-foreign-metadata to keep) > 10_A.wav: WARNING: skipping unknown sub-chunk 'ovwf' (use --keep- > foreign-metadata to keep) > 10_A.wav: WARNING: skipping unknown sub-chunk 'umid' (use --keep- > foreign-metadata to keep) > 10_A.wav: Verify OK, wrote 168060055 bytes, ratio=0.624 > > > As a final random test, I attempted to split one of the wav files (my > ultimate goal is split flac files) using wavsplit. That resulted in > the following output/error. > > Channels: 1 > Samplerate: 96000Hz > Samplebits: 24 > Databytes: 269503836 > > Split Hours Mins Seconds Bytes % > Bad file format > > ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev
Re: [Flac-dev] wav to flac corruption
Matthew, I don't think I can answer your entire question, but I will list a few pieces of information. 1) I regularly convert very large AIFF files, up to 4 GB, using flac. I sometimes work with WAV, and that seems to work, too. On my Mac, I can play flac files just fine in Play.app, VLC, and my own software. 2) What do you mean the flac "files do not work"? You mean they don't play? They will only play from software with full support for the flac format, which means many popular applications will not work. 3) I have not heard of "flac123" - perhaps this program is out of date or is missing support. Maybe the author(s) of flac123 will comment. 4) Those warning mean that your Broadcast Wave File (BWF) is being converted to standard audio flac, without any of the metadata from the BWF. You'll need to use --keep-foreign-metadata if there is any importance to having the original BWF restored later. However, if all you need is the audio and none of the other information, then you can safely ignore these warnings. FLAC always preserves all of the audio losslessly, you only ever have to worry about losing non-audio data. 5) You can only split a flac file if your splitting program understands the format. You should learn the FLAC library and see what kind of support it has for breaking a stream. If you use other tools to split the file without knowledge of the FLAC format, you will lose data. In other words, you must develop a new program, maybe called "flacsplit," to do this, because wavsplit will not work on FLAC (unless they parse the FLAC format correctly as well as WAV). I hope some of this information helps. Brian Willoughby Sound Consulting On Feb 5, 2008, at 16:54, Matthew Davis wrote: I'm attempting to convert fairly large WAV files (90 - 800 MB each) using flac but the files do not work after the encoding. (The play fine in wav format) Command I'm using: flac --verify -8 file.wav Attempting to run the file with either flac123 or the default player for Ubuntu (Movie Player?) results in the extremely terse messages: Default Player: "An Error Occurred: Could Not Decode Stream" flac123: "error handler called!" <- repeated over and over and over There are no errors during the encoding, though there are some warnings. Here is the output: [EMAIL PROTECTED]:~$ flac -f -8 --verify 10_A.wav 10_A.wav: WARNING: skipping unknown sub-chunk 'bext' (use --keep- foreign-metadata to keep) 10_A.wav: WARNING: legacy WAVE file has format type 1 but bits-per- sample=24 10_A.wav: WARNING: skipping unknown sub-chunk 'minf' (use --keep- foreign-metadata to keep) 10_A.wav: WARNING: skipping unknown sub-chunk 'elm1' (use --keep- foreign-metadata to keep) 10_A.wav: 100% complete, ratio=0.62410_A.wav: WARNING: skipping unknown sub-chunk 'regn' (use --keep-foreign-metadata to keep) 10_A.wav: WARNING: skipping unknown sub-chunk 'ovwf' (use --keep- foreign-metadata to keep) 10_A.wav: WARNING: skipping unknown sub-chunk 'umid' (use --keep- foreign-metadata to keep) 10_A.wav: Verify OK, wrote 168060055 bytes, ratio=0.624 As a final random test, I attempted to split one of the wav files (my ultimate goal is split flac files) using wavsplit. That resulted in the following output/error. Channels: 1 Samplerate: 96000Hz Samplebits: 24 Databytes: 269503836 Split Hours Mins Seconds Bytes % Bad file format ___ Flac-dev mailing list Flac-dev@xiph.org http://lists.xiph.org/mailman/listinfo/flac-dev