lossyWAV 1.0.0 released., Added noise WAV bit reduction method. |
![]() ![]() |
lossyWAV 1.0.0 released., Added noise WAV bit reduction method. |
May 14 2008, 19:38
Post
#26
|
|
![]() Group: Developer Posts: 1226 Joined: 27-June 07 Member No.: 44789 |
A little late, but congratulations Nick.C, halb27 & 2Bdecided!
Nick, I hope you got to run your program (and I assume if you did, it didn't crash, even if you did): CODE Procedure Celebrate; Begin Repeat Success:=Drink_Beer and not Spill_Beer; Until Success=False; Goto Bed; End; ... also thanks to jesseg for FLACdrop. LossyWAV's future is going to be very interesting; I see it as an excellent format for artists to release their music. C. -------------------- TAK -p4m :: LossyWAV -q 6 | TAK :: Lame 3.98 -V 2
|
|
|
|
May 15 2008, 20:55
Post
#27
|
|
![]() Group: Members (Donating) Posts: 713 Joined: 8-July 04 From: Sao Paulo Member No.: 15173 |
I have not followed the development of lossyWAV closely. In my understanding it is a kind of pre-processor that takes out some information from the audio file that is unlikely to be heard anyway. After that you can use your favorite lossless encoder to encode the pre-processed WAV and reach better compression.
How does this compare to Wavpack lossy and Optimfrog Dualstream qualitywise? Is it on pair with those or is it superior/inferior? It is my understanding that lossyWAV uses the same concept as Wavpack or Dualstream (correct me if I am wrong). -------------------- http://volutabro.blogspot.com
|
|
|
|
May 15 2008, 21:04
Post
#28
|
|
![]() lossyWAV Developer Group: Developer Posts: 1721 Joined: 11-April 07 From: Wherever here is Member No.: 42400 |
I have not followed the development of lossyWAV closely. In my understanding it is a kind of pre-processor that takes out some information from the audio file that is unlikely to be heard anyway. After that you can use your favorite lossless encoder to encode the pre-processed WAV and reach better compression. lossyWAV rounds lower significant bits to zero. This adds white noise to the audio. The level of the added noise has been pre-calculated for each bit removed. The number of bits to remove is determined by processing the results of overlapping FFT analyses of at least 2 different lengths (64 samples and 1024 samples by default). The quality settings take the processed FFT results and make the processor remove more or less bits dependent on internal settings. --quality 5 is generally accepted to be transparent. It should be stated clearly now that lossyWAV is pure variable bitrate: different audio will result in a different lossless encoded bitrate for the same --quality setting (in a similar way that the lossless audio files encoded losslessly may have different bitrates).How does this compare to Wavpack lossy and Optimfrog Dualstream qualitywise? Is it on pair with those or is it superior/inferior? It is my understanding that lossyWAV uses the same concept as Wavpack or Dualstream (correct me if I am wrong). I cannot comment on comparison with Wavpack and Optimfrog as to my knowledge no direct comparison has been carried out. -------------------- lossyWAV -q X -i | FLAC -8 ~= 295kbps
SGS III (Rooted) + 64GB |
|
|
|
May 15 2008, 21:57
Post
#29
|
|
![]() Group: Members (Donating) Posts: 713 Joined: 8-July 04 From: Sao Paulo Member No.: 15173 |
... --quality 5 is generally accepted to be transparent. It should be stated clearly now that lossyWAV is pure variable bitrate: different audio will result in a different lossless encoded bitrate for the same --quality setting (in a similar way that the lossless audio files encoded losslessly may have different bitrates). I cannot comment on comparison with Wavpack and Optimfrog as to my knowledge no direct comparison has been carried out. You cannot comment on Wavpack and Optimfrog, yet you claim that --quality 5 of your pre-processor is 'generally accepted to be transparent'. May I ask if any comparison was made to support that claim? I mean no offense to you or anyone, I am just curious. -------------------- http://volutabro.blogspot.com
|
|
|
|
May 15 2008, 22:03
Post
#30
|
|
![]() Group: Developer Posts: 1226 Joined: 27-June 07 Member No.: 44789 |
You cannot comment on Wavpack and Optimfrog, yet you claim that --quality 5 of your pre-processor is 'generally accepted to be transparent'. May I ask if any comparison was made to support that claim? I mean no offense to you or anyone, I am just curious. I can claim an MP3 is transparent without comparing it to Wavpack and/or Optimfrog simply by ABXing it against the original WAV file. What's different here? C. -------------------- TAK -p4m :: LossyWAV -q 6 | TAK :: Lame 3.98 -V 2
|
|
|
|
May 15 2008, 22:08
Post
#31
|
|
![]() lossyWAV Developer Group: Developer Posts: 1721 Joined: 11-April 07 From: Wherever here is Member No.: 42400 |
You cannot comment on Wavpack and Optimfrog, yet you claim that --quality 5 of your pre-processor is 'generally accepted to be transparent'. May I ask if any comparison was made to support that claim? I can claim an MP3 is transparent without comparing it to Wavpack and/or Optimfrog simply by ABXing it against the original WAV file. What's different here?I mean no offense to you or anyone, I am just curious. C. Take a look at the "lossyWAV Development" thread in the uploads forum for more details. -------------------- lossyWAV -q X -i | FLAC -8 ~= 295kbps
SGS III (Rooted) + 64GB |
|
|
|
May 16 2008, 08:23
Post
#32
|
|
|
Group: Members Posts: 2257 Joined: 9-October 05 From: Dormagen, Germany Member No.: 25015 |
... How does this compare to Wavpack lossy and Optimfrog Dualstream qualitywise? Is it on pair with those or is it superior/inferior? It is my understanding that lossyWAV uses the same concept as Wavpack or Dualstream (correct me if I am wrong). WavPack lossy controls the prediction error, lossyWAV controls the total error. In a sense lossyWAV has the better quality control in at least targeting the 'real' thing. Which does not necessarily mean that lossyWAV has the better quality - at least not at a bitrate which is low for these approaches (~ 300 kbps and below). Apart from quality considerations where there will always be a lack in finally objective judgement (due to ever limited listening experience), there are practical advantages with lossyWAV as you have a choice of final codecs relevant for playback. FLAC can be used which is considered to be the lossless codec which is available best in the universe of players. This post has been edited by halb27: May 16 2008, 08:25 -------------------- lame3100i -V0.5+ --adbr_short 480
|
|
|
|
May 16 2008, 21:03
Post
#33
|
|
![]() Group: Members Posts: 742 Joined: 27-May 02 From: Oslo, Norway Member No.: 2133 |
Can you please link me to the source code?
Its released under the GPL license, but I am unable to find it for download. This post has been edited by krmathis: May 16 2008, 21:04 |
|
|
|
May 16 2008, 21:15
Post
#34
|
|
![]() lossyWAV Developer Group: Developer Posts: 1721 Joined: 11-April 07 From: Wherever here is Member No.: 42400 |
Can you please link me to the source code? Download lossyWAV 1.0.0b Source Have fun!
Its released under the GPL license, but I am unable to find it for download. -------------------- lossyWAV -q X -i | FLAC -8 ~= 295kbps
SGS III (Rooted) + 64GB |
|
|
|
May 17 2008, 01:56
Post
#35
|
|
![]() Group: Members Posts: 132 Joined: 26-January 02 Member No.: 1171 |
I have not followed the development and just discovered this now. I read the older threads and the wiki article and did some testing myself, and I have to say, this software is really great
-------------------- Blubb
|
|
|
|
May 17 2008, 09:24
Post
#36
|
|
![]() Group: Members Posts: 742 Joined: 27-May 02 From: Oslo, Norway Member No.: 2133 |
Download lossyWAV 1.0.0b Source Have fun! Thanks a lot! Downloaded, and will see if I can get this thing going on Mac OS X. |
|
|
|
May 17 2008, 17:59
Post
#37
|
|
![]() Group: Members (Donating) Posts: 73 Joined: 20-July 02 From: Foster City, CA Member No.: 2685 |
|
|
|
|
May 17 2008, 18:37
Post
#38
|
|
![]() lossyWAV Developer Group: Developer Posts: 1721 Joined: 11-April 07 From: Wherever here is Member No.: 42400 |
Downloaded, and will see if I can get this thing going on Mac OS X. Go, krmathis, Go! Also, I could make sure that the remove_bits procedure is modified as per beta 1.0.1, i.e. independent channel bit removal rather than the same bits-to-remove for all channels. This post has been edited by Nick.C: May 17 2008, 18:44 -------------------- lossyWAV -q X -i | FLAC -8 ~= 295kbps
SGS III (Rooted) + 64GB |
|
|
|
May 19 2008, 08:13
Post
#39
|
|
![]() Group: Members Posts: 41 Joined: 5-June 05 From: Paris, France Member No.: 22532 |
This seem to be really interesting but one question comes to my mind ?
With this lossy treatment applied to future lossless files aren't we bluring everything ? I mean, we may not be able now to distinguish a real lossless file from an "almost lossless" file, which is finally a lossy one, don't you think? |
|
|
|
May 19 2008, 08:39
Post
#40
|
|
|
Group: Members Posts: 2257 Joined: 9-October 05 From: Dormagen, Germany Member No.: 25015 |
This seem to be really interesting but one question comes to my mind ? With this lossy treatment applied to future lossless files aren't we bluring everything ? I mean, we may not be able now to distinguish a real lossless file from an "almost lossless" file, which is finally a lossy one, don't you think? We had this argument before. The answer is (for FLAC use as an example): a) the lossyWAV preprocessed FLAC files get the extension .lossy.flac b) the FLAC metadata carry the information about lossyWAV preprocessing c) when looking at a lossless codec file you never know what the input was. It might originate from a 192 kbps DRM WMA file from a company offering DRM protected downloads but which you want to play on a non WMA DAP while not giving away quality. Three years after encoding theere's a chance you don't memorize where it came from. This post has been edited by halb27: May 19 2008, 08:42 -------------------- lame3100i -V0.5+ --adbr_short 480
|
|
|
|
May 19 2008, 10:08
Post
#41
|
|
![]() lossyWAV Developer Group: Developer Posts: 1721 Joined: 11-April 07 From: Wherever here is Member No.: 42400 |
This seem to be really interesting but one question comes to my mind ? If you can't distinguish a lossless file from an almost lossless file, is there any problem with having an almost lossless file?With this lossy treatment applied to future lossless files aren't we bluring everything ? I mean, we may not be able now to distinguish a real lossless file from an "almost lossless" file, which is finally a lossy one, don't you think? As halb27 said, if you do not create the lossless file yourself, you will never really know whether the audio contained in the lossless container really is lossless. Yes, lossyWAV blurs the boundary - however if the almost lossless version cannot be ABX'ed from the original then.... For the record, again, I will be using lossyWAV & FLAC to allow me to fit as much of my music as possible onto as big a Compact Flash as I can afford for use on my iPAQ running TCPMP beta v0.81. My FLAC archive will remain complete and unmolested - lossyWAV & FLAC is purely my DAP transcode method of choice. -------------------- lossyWAV -q X -i | FLAC -8 ~= 295kbps
SGS III (Rooted) + 64GB |
|
|
|
May 19 2008, 16:17
Post
#42
|
|
![]() Group: Members Posts: 41 Joined: 5-June 05 From: Paris, France Member No.: 22532 |
I see.
Point c) from halb27 is indeed a good remark. QUOTE If you can't distinguish a lossless file from an almost lossless file, is there any problem with having an almost lossless file? I do not use myself flac for my music because I only care about transparency. But I think about people who uses flac for perfect losslessness whatever the transparent result you can get with lossy treatments. QUOTE We had this argument before Oops sorry I didn't know. BTW, thank you for your answers. |
|
|
|
May 21 2008, 05:49
Post
#43
|
|
|
Group: Banned Posts: 218 Joined: 22-December 02 Member No.: 4194 |
It should be stated clearly now that lossyWAV is pure variable bitrate perhaps a better way to word it would be that lossyWAV is variable bit depth. just a thought. again amazing work, and the change in v1.0.1 with the processing of individual channels... brilliant. i can't wait to see how it changes the bitrates (post flac of course, lest i be caught in my own trap), and of course it should be higher quality in some cases. |
|
|
|
May 22 2008, 00:32
Post
#44
|
|
|
Group: Members Posts: 174 Joined: 10-October 03 From: Florida, USA Member No.: 9235 |
... set the block size to 512 samples (-b 512 in FLAC) and also to preserve WAV chunks (--keep-foreign-metadata in FLAC)... Is (-b 512 AND --keep-foreign-metadata) mandatory for this to work with FLAC? You mention that it keeps LossWAV from processing the file a second time, but if I am only running the process once can I leave this out and still get the desired results? Thank you for your time and effort. -- E |
|
|
|
May 22 2008, 07:39
Post
#45
|
|
![]() lossyWAV Developer Group: Developer Posts: 1721 Joined: 11-April 07 From: Wherever here is Member No.: 42400 |
... set the block size to 512 samples (-b 512 in FLAC) and also to preserve WAV chunks (--keep-foreign-metadata in FLAC)... Is (-b 512 AND --keep-foreign-metadata) mandatory for this to work with FLAC? You mention that it keeps LossWAV from processing the file a second time, but if I am only running the process once can I leave this out and still get the desired results?Thank you for your time and effort. -- E The -b 512 parameter tells FLAC to use a 512 sample block length for encoding. This matches the 512 sample codec-block length in lossyWAV and will result in optimal FLAC encoding in most cases (excepting cases where bits-to-remove does not vary between codec-blocks). This post has been edited by Nick.C: May 22 2008, 08:11 -------------------- lossyWAV -q X -i | FLAC -8 ~= 295kbps
SGS III (Rooted) + 64GB |
|
|
|
May 26 2008, 07:10
Post
#46
|
|
|
Group: Members Posts: 39 Joined: 16-March 07 Member No.: 41532 |
is there a more in-depth "how to" for foobar planned (compared to what is in the wiki article, that is)?
it's probably my inability to grasp something fully, but i can replicate the settings shown in the image (with differences in path) and copy+paste+save the batch file and eventually go so far as to rip a test wav and watch the encoder interface run for less than a minute, only to hang for a few seconds afterward and then throw up an error indicating that the encoder halted because it could not find the .wav being used in the process. on the contrary, getting it to run through XP's command line saw next to no error, aside from clipping issues with the file since i left that parameter out. i don't find myself crawling to the command line often, so i was hoping to rely on foobar to handle the brunt of the work once i could round up files to run the encoder on. |
|
|
|
May 26 2008, 07:38
Post
#47
|
|
![]() lossyWAV Developer Group: Developer Posts: 1721 Joined: 11-April 07 From: Wherever here is Member No.: 42400 |
is there a more in-depth "how to" for foobar planned (compared to what is in the wiki article, that is)? Have you used a path with spaces in it? I ask as this was an early problem I had with foobar2000 using lossyWAV via a batch file. Also, make sure the extension you type in is "lossy.flac" not ".lossy.flac" as the latter will also crash.it's probably my inability to grasp something fully, but i can replicate the settings shown in the image (with differences in path) and copy+paste+save the batch file and eventually go so far as to rip a test wav and watch the encoder interface run for less than a minute, only to hang for a few seconds afterward and then throw up an error indicating that the encoder halted because it could not find the .wav being used in the process. on the contrary, getting it to run through XP's command line saw next to no error, aside from clipping issues with the file since i left that parameter out. i don't find myself crawling to the command line often, so i was hoping to rely on foobar to handle the brunt of the work once i could round up files to run the encoder on. Don't be too concerned about clipping (in this case) - even at the lowest quality setting lossyWAV only allows up to a maximum of 3 samples to be "clipped" per channel per codec-block (512 samples in length). -------------------- lossyWAV -q X -i | FLAC -8 ~= 295kbps
SGS III (Rooted) + 64GB |
|
|
|
May 26 2008, 18:41
Post
#48
|
|
![]() Group: Developer Posts: 1226 Joined: 27-June 07 Member No.: 44789 |
Nick
I think there's a problem with the recommended batch file code for the foobar setup in the LossyWAV wiki: CODE @echo off z:\bin\lossyWAV %1 %3 %4 %5 %6 %7 %8 %9 --below --nowarnings --quiet z:\bin\flac.exe -5 -f -b 512 "%~N1.lossy.wav" -o"%~N2.flac" del "%~N1.lossy.wav" I, like Jalan was having all sorts of difficulty getting lossyWAV to encode via foobar. Then I noticed that it's calling flac.exe whereas it's calling lossyWAV (.nothing). I changed it to flac (.nothing) and it worked fine. So maybe this is the problem. Here's the batch file that worked for me. CODE @echo off z:\bin\lossyWAV %1 %3 %4 %5 %6 %7 %8 %9 --below --nowarnings --quiet z:\bin\flac -5 -f -b 512 "%~N1.lossy.wav" -o"%~N2.flac" del "%~N1.lossy.wav" Perhaps if Jalan could try this and see if it works too, then if it does it perhaps it's worth amending the Wiki? I'm not sure, but is the "no spaces" tip mentioned in the wiki (didn't see it). Something like this might be helpful: CODE @echo off d:\address_with_no_spaces\lossywav\lossyWAV %1 %3 %4 %5 %6 %7 %8 %9 --below --nowarnings --quiet d:\address_with_no_spaces\lossywav\flac -5 -f -b 512 "%~N1.lossy.wav" -o"%~N2.flac" del "%~N1.lossy.wav" C. This post has been edited by carpman: May 26 2008, 18:42 -------------------- TAK -p4m :: LossyWAV -q 6 | TAK :: Lame 3.98 -V 2
|
|
|
|
May 26 2008, 19:16
Post
#49
|
|
|
Group: Members Posts: 39 Joined: 16-March 07 Member No.: 41532 |
Have you used a path with spaces in it? I ask as this was an early problem I had with foobar2000 using lossyWAV via a batch file. indeed, there were spaces in the path that foobar was attempting to call the batch from. Perhaps if Jalan could try this and see if it works too, then if it does it perhaps it's worth amending the Wiki? tried it with the amended path via Nick C's suggestion (no spaces, direct to the main drive) and your removal of the .exe extension to the flac encoder in the batch text and it produced a full file without issue. thanks for making note of it. This post has been edited by Jalan: May 26 2008, 19:18 |
|
|
|
May 26 2008, 19:28
Post
#50
|
|
![]() Group: Developer Posts: 1226 Joined: 27-June 07 Member No.: 44789 |
tried it with the amended path via Nick C's suggestion (no spaces, direct to the main drive) and your removal of the .exe extension to the flac encoder in the batch text and it produced a full file without issue. thanks for making note of it. Glad it worked for you. I'm pretty sure it's the .exe issue, as I tried it with no spaces first and it still didn't work, then got rid of the .exe and it did. And if that's not scientific evidence then my full name isn't Carpman Sherlock Einstein C. -------------------- TAK -p4m :: LossyWAV -q 6 | TAK :: Lame 3.98 -V 2
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 07:02 |