IPB

Welcome Guest ( Log In | Register )

lossyWAV 1.0.0 released., Added noise WAV bit reduction method.
Nick.C
post May 12 2008, 20:53
Post #1


lossyWAV Developer


Group: Developer
Posts: 1791
Joined: 11-April 07
From: Wherever here is
Member No.: 42400



lossyWAV 1.0.0b released:
CODE
lossyWAV 1.0.0b, Copyright © 2007,2008 Nick Currie. Copyleft.

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful,but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this program.  If not, see <http://www.gnu.org/licenses/>.

Usage   : lossyWAV <input wav file> <options>

Example : lossyWAV musicfile.wav

Quality Options:

-q, --quality <n>   quality preset (10=highest quality, 0=lowest bitrate;
                    -q 5 is generally accepted to be transparent)
                    default=-q 5.

Standard Options:

-c, --check         check if WAV file has already been processed; default=off.
                    errorlevel=16 if already processed, 0 if not.
-C, --correction    write correction file for processed WAV file; default=off.
-f, --force         forcibly over-write output file if it exists; default=off.
-h, --help          display help.
-L, --longhelp      display extended help.
-M, --merge         merge existing lossy.wav and lwcdf.wav files.
-N, --noclips       set allowable number of clips / channel / codec block to 0;
                    default=3,3,3,3,2,1,0,0,0,0,0 (-q 0 to -q 10)
-o, --outdir <dir>  destination directory for the output file(s).
-v, --version       display the lossyWAV version number.

Special thanks:

David Robinson for the method itself and motivation to implement it.
Don Cross for the Complex-FFT algorithm used.
Horst Albrecht for valuable tuning input and feedback.


Explanation, history and lossless codec settings in the wiki article

[edit] 1.0.0b necessitated by unknown WAV chunk handling error and 24-bit --correction / --merge parameter error.

Link to GNU GPLv3+ source code for lossyWAV 1.0.0b [/edit]

N.B.: lossyWAV 1.1.0b released here.


This post has been edited by Nick.C: Mar 20 2009, 23:18
Attached File(s)
Attached File  lossyWAV_1.0.0b.zip ( 64.18K ) Number of downloads: 1945
 


--------------------
lossyWAV -q X -a 4 --feedback 4| FLAC -8 ~= 320kbps
Go to the top of the page
+Quote Post
 
Start new topic
Replies
Balnes
post May 13 2008, 15:21
Post #2





Group: Members
Posts: 4
Joined: 17-April 08
Member No.: 52850



QUOTE (Nick.C @ May 12 2008, 20:53) *
lossyWAV 1.0.0 released:

Usage : lossyWAV <input wav file> <options>

Example : lossyWAV musicfile.wav

Quality Options:

-q, --quality <n> quality preset (10=highest quality, 0=lowest bitrate;
-q 5 is generally accepted to be transparent)
default=-q 5.


Hello,
I guess this is a beginners question blink.gif , but when I have a wave-file and use lossyWav.exe, I get an exact copy of the original Wave file. Is this correct?
I get no difference if I try "lossyWAV <input wav file> -q 0" or "lossyWAV <input wav file> -q 10" or just "lossyWAV <input wav file>". I always ends up with a new file with lossy.wav filetype, but the exact same file-size as the original.

Balnes
Go to the top of the page
+Quote Post
Nick.C
post May 13 2008, 16:01
Post #3


lossyWAV Developer


Group: Developer
Posts: 1791
Joined: 11-April 07
From: Wherever here is
Member No.: 42400



QUOTE (Balnes @ May 13 2008, 15:21) *
Hello,
I guess this is a beginners question blink.gif , but when I have a wave-file and use lossyWav.exe, I get an exact copy of the original Wave file. Is this correct?
I get no difference if I try "lossyWAV <input wav file> -q 0" or "lossyWAV <input wav file> -q 10" or just "lossyWAV <input wav file>". I always ends up with a new file with lossy.wav filetype, but the exact same file-size as the original.

Balnes
It should not be exactly the same size, there is a 'fact' chunk inserted immediately after the 'fmt ' chunk, probably about 50 to 100 bytes long. The WAV file then requires to be encoded with a compatible lossless codec, e.g. FLAC, TAK, WavPack, taking care to set the block size to 512 samples (-b 512 in FLAC) and also to preserve WAV chunks (--keep-foreign-metadata in FLAC). When you compare the filesizes of the FLAC and the lossy.FLAC you should notice a difference.


--------------------
lossyWAV -q X -a 4 --feedback 4| FLAC -8 ~= 320kbps
Go to the top of the page
+Quote Post
tev777
post May 22 2008, 00:32
Post #4





Group: Members
Posts: 181
Joined: 10-October 03
From: Florida, USA
Member No.: 9235



QUOTE (Nick.C @ May 13 2008, 11:01) *
... 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
Go to the top of the page
+Quote Post
Nick.C
post May 22 2008, 07:39
Post #5


lossyWAV Developer


Group: Developer
Posts: 1791
Joined: 11-April 07
From: Wherever here is
Member No.: 42400



QUOTE (tev777 @ May 22 2008, 00:32) *
QUOTE (Nick.C @ May 13 2008, 11:01) *
... 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 --keep-foreign-metadata is optional in this case, the -b 512 is not (well, it is, but you would be best not to omit it).

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 -a 4 --feedback 4| FLAC -8 ~= 320kbps
Go to the top of the page
+Quote Post

Posts in this topic
- Nick.C   lossyWAV 1.0.0 released.   May 12 2008, 20:53
- - collector   QUOTE (Nick.C @ May 12 2008, 11:53) lossy...   May 12 2008, 21:19
|- - Nick.C   QUOTE (collector @ May 12 2008, 21:19) QU...   May 12 2008, 21:23
|- - Dologan   RE: lossyWAV 1.0.0 released.   May 12 2008, 21:25
- - PabUK   22 minutes late. Bitterly disappointed. Kidding ...   May 12 2008, 21:20
- - sauvage78   Just Thanks Edit: plz validated news & fro...   May 12 2008, 21:32
|- - Nick.C   QUOTE (sauvage78 @ May 12 2008, 21:32) Ju...   May 12 2008, 21:51
|- - TBeck   QUOTE (Nick.C @ May 12 2008, 21:51) Unfor...   May 13 2008, 02:17
|- - Nick.C   QUOTE (TBeck @ May 13 2008, 02:17) QUOTE ...   May 13 2008, 07:45
- - Mitch 1 2   Nice work. Taking this experimental concept and fo...   May 13 2008, 02:59
- - skamp   All in all, this release came pretty fast, and it...   May 13 2008, 08:07
|- - Nick.C   QUOTE (skamp @ May 13 2008, 08:07) All in...   May 13 2008, 08:18
- - 2Bdecided   Well done Nick, and thank you. Thank you too to a...   May 13 2008, 10:08
|- - Nick.C   QUOTE (2Bdecided @ May 13 2008, 10:08) We...   May 13 2008, 10:25
- - Balnes   QUOTE (Nick.C @ May 12 2008, 20:53) lossy...   May 13 2008, 15:21
|- - Nick.C   QUOTE (Balnes @ May 13 2008, 15:21) Hello...   May 13 2008, 16:01
|- - collector   QUOTE (Nick.C @ May 13 2008, 07:01) The W...   May 13 2008, 23:49
||- - Nick.C   QUOTE (collector @ May 13 2008, 23:49) Pl...   May 14 2008, 06:28
||- - collector   QUOTE (Nick.C @ May 13 2008, 21:28) QUOTE...   May 14 2008, 10:04
||- - Nick.C   QUOTE (collector @ May 14 2008, 10:04) QU...   May 14 2008, 10:19
|- - tev777   QUOTE (Nick.C @ May 13 2008, 11:01) ... s...   May 22 2008, 00:32
|- - Nick.C   QUOTE (tev777 @ May 22 2008, 00:32) QUOTE...   May 22 2008, 07:39
- - shadowking   Very good work. Much appreciated.   May 13 2008, 15:42
- - halb27   Hallo Nick, I've just come home from the exte...   May 13 2008, 22:03
|- - Nick.C   QUOTE (halb27 @ May 13 2008, 22:03) Hallo...   May 13 2008, 22:08
- - jesseg   Or if someone dithered to 16bit and saved as 24bit...   May 14 2008, 11:02
- - ckjnigel   Most importantly, I add my congrats. The techn...   May 14 2008, 18:51
- - carpman   A little late, but congratulations Nick.C, halb27 ...   May 14 2008, 19:38
- - beto   I have not followed the development of lossyWAV cl...   May 15 2008, 20:55
|- - Nick.C   QUOTE (beto @ May 15 2008, 20:55) I have ...   May 15 2008, 21:04
||- - beto   QUOTE (Nick.C @ May 15 2008, 17:04) ... ...   May 15 2008, 21:57
|||- - carpman   QUOTE (beto @ May 15 2008, 21:57) You can...   May 15 2008, 22:03
|||- - Nick.C   QUOTE (carpman @ May 15 2008, 22:03) QUOT...   May 15 2008, 22:08
||- - jesseg   QUOTE (Nick.C @ May 15 2008, 15:04) It sh...   May 21 2008, 05:49
|- - halb27   QUOTE (beto @ May 15 2008, 21:55) ... How...   May 16 2008, 08:23
- - krmathis   Can you please link me to the source code? Its rel...   May 16 2008, 21:03
|- - Nick.C   QUOTE (krmathis @ May 16 2008, 21:03) Can...   May 16 2008, 21:15
|- - krmathis   QUOTE (Nick.C @ May 16 2008, 22:15) Downl...   May 17 2008, 09:24
|- - spies   QUOTE (krmathis @ May 17 2008, 01:24) Dow...   May 17 2008, 17:59
|- - Nick.C   QUOTE (spies @ May 17 2008, 17:59) QUOTE ...   May 17 2008, 18:37
- - hödyr   I have not followed the development and just disco...   May 17 2008, 01:56
- - french dok   This seem to be really interesting but one questio...   May 19 2008, 08:13
|- - halb27   QUOTE (french dok @ May 19 2008, 09:13) T...   May 19 2008, 08:39
|- - Nick.C   QUOTE (french dok @ May 19 2008, 08:13) T...   May 19 2008, 10:08
- - french dok   I see. Point c) from halb27 is indeed a good remar...   May 19 2008, 16:17
- - Jalan   is there a more in-depth "how to" for fo...   May 26 2008, 07:10
|- - Nick.C   QUOTE (Jalan @ May 26 2008, 07:10) is the...   May 26 2008, 07:38
- - carpman   Nick I think there's a problem with the recom...   May 26 2008, 18:41
- - Jalan   QUOTE (Nick.C @ May 26 2008, 02:38) Have ...   May 26 2008, 19:16
|- - carpman   QUOTE (Jalan @ May 26 2008, 19:16) tried ...   May 26 2008, 19:28
- - memomai   I'd like to integrate lossyWAV into foobar2000...   May 31 2008, 19:13
- - halb27   QUOTE (memomai @ May 31 2008, 20:13) I...   May 31 2008, 23:04


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th September 2014 - 20:08