Skip to main content

Topic: lossyWAV 1.3.0 Development Thread (Read 147898 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • halb27
  • [*][*][*][*][*]
lossyWAV 1.3.0 Development Thread
Reply #50
Bad news again, sorry.

Inspite of the increased bitrate there's a very audible added hiss now already in the first 0.7 second of furious (in the last second as well).
lame3995o -Q1

lossyWAV 1.3.0 Development Thread
Reply #51
I haven't done any listening tests, but I can see by the noise spectrum that this is a bad move. I'm not trying to offend you, my criticism will be constructive.

Look at what's different between this:


  • shadowking
  • [*][*][*][*][*]
lossyWAV 1.3.0 Development Thread
Reply #52
I will try and test things later this week. If I recall, -Z had big problems with serioustrouble, mandylion-sm, dear-sir. I'd be interested to hear the impact of -Z -A
wavpack -b4x4s1c

  • aand
  • [*]
lossyWAV 1.3.0 Development Thread
Reply #53
Hi! I can't get lossyWAV to work with FLAC or TAK. Here's the error I get:
Code: [Select]
1 out of 1 tracks converted with major problems.

Source: "J:\h\Jay-Z\14 - Jay-Z - My 1st Song.flac"
  An error occurred while writing to file (The encoder has terminated prematurely with code 1 (0x00000001); please re-check parameters) : "C:\Users\Administrator\Desktop\14 My 1st Song.lossy.flac"
Additional information:
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: "C:\Windows\winsxs\wow64_microsoft-windows-commandprompt_31bf3856ad364e35_6.1.7600.16385_none_f15662b6686e5211\cmd.exe" /d /c  G:\Kits\"@ Codec"\lossyWAV_beta_1.2.2f\lossyWAV.exe  - --standard -P --stdout|G:\Kits\"@ Codec"\FLAC\flac.exe - -b 512 -8 -f -o"14 My 1st Song.lossy.flac" --ignore-chunk-sizes
Working folder: C:\Users\Administrator\Desktop\

  Conversion failed: The encoder has terminated prematurely with code 1 (0x00000001); please re-check parameters

I'm using Win7 x64.
Thanks.
  • Last Edit: 31 May, 2010, 10:23:12 PM by aand

  • Bonzaii
  • [*]
lossyWAV 1.3.0 Development Thread
Reply #54
...cmd.exe" /d /c  G:\Kits\"@ Codec"\lossyWAV_beta_1.2.2f\lossyWAV.exe  - --standard -P --stdout|G:\Kits\"@ Codec"\FLAC\flac.exe - -b 512 -8 -f -o"14 My 1st Song.lossy.flac" --ignore-chunk-sizes...


Needs a space in the bolded part. Like this: ...-f -o "14 My 1st Song.lossy.flac"...

See if that works.

Edit: formatting.
  • Last Edit: 31 May, 2010, 11:45:28 PM by Bonzaii

  • Nick.C
  • [*][*][*][*][*]
  • Developer
lossyWAV 1.3.0 Development Thread
Reply #55
Command line: "C:\Windows\winsxs\wow64_microsoft-windows-commandprompt_31bf3856ad364e35_6.1.7600.16385_none_f15662b6686e5211\cmd.exe" /d /c  G:\Kits\"@ Codec"\lossyWAV_beta_1.2.2f\lossyWAV.exe  - --standard -P --stdout|G:\Kits\"@ Codec"\FLAC\flac.exe - -b 512 -8 -f -o"14 My 1st Song.lossy.flac" --ignore-chunk-sizes
You need to remove either --standard or -P (--portable) as both are quality pseudonyms they are mutually exclusive and lossyWAV exits with an error.
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848| FLAC -5 -e -p -b 512 -P=4096 -S-

  • halb27
  • [*][*][*][*][*]
lossyWAV 1.3.0 Development Thread
Reply #56
Though there's certainly room for improvement for the way the adaptive noise shaping is working IMO version 1.2.2.d is very good already. I think it's a significant improvement over not doing adaptive noise shaping.
I didn't only listen to bibilolo and furious, but also enjoyed some regular music - at an average bitrate of 266 kbps for my regular test set!

@Nick: Can you please provide version 1.2.2.d for download again? (More generally speaking: apart from the current test version always that version which is expected to be the best one so far using adaptive noise shaping).

@shadowking: Wonderful to hear you're gonna do listening tests.
  • Last Edit: 01 June, 2010, 03:28:16 AM by halb27
lame3995o -Q1

  • Nick.C
  • [*][*][*][*][*]
  • Developer
lossyWAV 1.3.0 Development Thread
Reply #57
lossyWAV beta 1.2.2g attached to post #1 in this thread.

[edit] spectrograms removed - superseded. [/edit]
  • Last Edit: 04 June, 2010, 02:20:11 PM by Nick.C
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848| FLAC -5 -e -p -b 512 -P=4096 -S-

  • halb27
  • [*][*][*][*][*]
lossyWAV 1.3.0 Development Thread
Reply #58
I tried furious with 1.2.2.g -Z --adaptive.
Hiss is still there, maybe a tiny bit weaker than with 1.2.2.f.

For a comparison I tested 1.2.2.d again. It's the same thing. Same kind of hiss in the first 0.7 second. I just didn't here it before though it isn't very subtle.
lame3995o -Q1

  • aand
  • [*]
lossyWAV 1.3.0 Development Thread
Reply #59
Code: [Select]
cmd.exe /d /c  G:\Kits\"@ Codec"\lossyWAV_beta_1.2.2f\lossyWAV.exe  - --standard --stdout|G:\Kits\"@ Codec"\FLAC\flac.exe - -b 512 -8 -f -o "02 Light It Up.lossy.flac" --ignore-chunk-sizes
  Conversion failed: The encoder has terminated prematurely with code 1 (0x00000001); please re-check parameters

I also put FFTW dlls in c:\windows(the 32bit ones, I suppose lossyWAV has to be compiled for x64 to work witth x64 DLLs).

SOLVED:
  I removed --silent to see if it worked, and I forgot to put it back, now it works! Hey, it was tired and it was late  .
  • Last Edit: 01 June, 2010, 12:48:42 PM by aand

  • Nick.C
  • [*][*][*][*][*]
  • Developer
lossyWAV 1.3.0 Development Thread
Reply #60
@halb27: Would you have time to try different filter orders? The default is 32, but the upper limit is 128. Processing time suffers, but I wonder if the hiss might be reduced with an increase to the filter order.

@aand: Yes, lossyWAV is a 32-bit application and requires one of the 32-bit FFTW DLLs. (I still reckon it was "--standard" and "-P" on the command line that caused your crash....)
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848| FLAC -5 -e -p -b 512 -P=4096 -S-

  • aand
  • [*]
lossyWAV 1.3.0 Development Thread
Reply #61
Nope.

Quote
1 out of 1 tracks converted with major problems.

Source: "F:\@ Music Lossless\Cypress Hill - Rise Up [2010] FLAC\02. Light It Up.flac"
  An error occurred while writing to file (Could not start commandline encoder: The parameter is incorrect.  ) : "C:\Users\Administrator\Desktop\02 Light It Up.lossy.tak.lossy.tak.lossy.tak"
Additional information:
Encoder stream format: 44100Hz / 2ch / 16bps
Command line: ""C:\Windows\winsxs\wow64_microsoft-windows-commandprompt_31bf3856ad364e35_6.1.7600.16385_none_f15662b6686e5211\cmd.exe"" /d /c  "G:\Kits\@ Codec\lossyWAV_beta_1.2.2f\lossyWAV"  - --standard --silent --stdout|C:\"Program Files (x86)"\foobar2000\Takc -e -p2m -fsl512 -ihs - "02 Light It Up.lossy.tak.lossy.tak.lossy.tak"
Working folder: C:\Users\Administrator\Desktop\

  Conversion failed: Could not start commandline encoder: The parameter is incorrect.

So TAK doesn't work. I don't know why it does the strange thing with the extension.

Edit: OK I removed "" from:
"C:\Windows\winsxs\wow64_microsoft-windows-commandprompt_31bf3856ad364e35_6.1.7600.16385_none_f15662b6686e5211\cmd.exe" , and I ended up with lossy.tak.lossy.tak.lossy.tak extension, and the conversion worked. A bit weird tho. I suppose it's in connection with the use of quote signs...
  • Last Edit: 01 June, 2010, 01:54:28 PM by aand

  • carpman
  • [*][*][*][*][*]
  • Developer
lossyWAV 1.3.0 Development Thread
Reply #62
General LossyWAV setup help should probably have its own thread, no?

C.
PC = TAK + LossyWAV  ::  Portable = Lame MP3

lossyWAV 1.3.0 Development Thread
Reply #63
  • Last Edit: 01 June, 2010, 06:59:51 PM by doccolinni

  • halb27
  • [*][*][*][*][*]
lossyWAV 1.3.0 Development Thread
Reply #64
@halb27: Would you have time to try different filter orders? ...


Yes, I will, though probably not today (I got water into my right ear this morning).
lame3995o -Q1

  • Nick.C
  • [*][*][*][*][*]
  • Developer
lossyWAV 1.3.0 Development Thread
Reply #65
I don't know if I did something wrong or you did something wrong, but the spectrum I get for the noise added to "wheee" with -Z --adaptive definitely doesn't look like what you got.
It doesn't look right at all - have you been able to replicate it, and if so, what was your command line?
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848| FLAC -5 -e -p -b 512 -P=4096 -S-

lossyWAV 1.3.0 Development Thread
Reply #66
I don't know if I did something wrong or you did something wrong, but the spectrum I get for the noise added to "wheee" with -Z --adaptive definitely doesn't look like what you got.
It doesn't look right at all - have you been able to replicate it, and if so, what was your command line?

It ends up like that every single time. That's not the lwcdf file mind you, that's me manually opening both the original and the processed file in CoolEdit Pro 2.1 and copying one inverted over the other, which gives the difference between the two waveforms.

Command line is the same one I used for earlier testing:
Code: [Select]
lossyWAV wheeee.wav -Z --adaptive
  • Last Edit: 02 June, 2010, 05:49:01 PM by doccolinni

  • Nick.C
  • [*][*][*][*][*]
  • Developer
lossyWAV 1.3.0 Development Thread
Reply #67
.... but the .lwcdf.wav file is the difference between the two waveforms....

If you try:
Code: [Select]
lossywav wheeee.wav -Z -A -C
ren wheeee.wav wheeee_org.wav
lossywav wheeee.lossy --merge
comp wheeee.wav wheeee_org.wav
you should see that that is the case.
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848| FLAC -5 -e -p -b 512 -P=4096 -S-

lossyWAV 1.3.0 Development Thread
Reply #68
.... but the .lwcdf.wav file is the difference between the two waveforms....

If you try:
Code: [Select]
lossywav wheeee.wav -Z -A -C
ren wheeee.wav wheeee_org.wav
lossywav wheeee.lossy --merge
comp wheeee.wav wheeee_org.wav
you should see that that is the case.

Done "lossywav wheeee.wav -Z -A -C", analysed the lwcdf file, got the same spectrum as the one I posted.

  • Bonzaii
  • [*]
lossyWAV 1.3.0 Development Thread
Reply #69
Is there any way you can expand the Adapative parameter so that it can take values > 128? I've been using -q 1.5 -A 128 and it has reduced filesizes by quite a bit (most of my files are ~320 kbps, which is awesome). It also seems to theoretically improve sound, for a trade-off in encoding speed, but I could wait ~2 minutes a file IF it would, to a significant degree, shrink file size and (theoretically?) improve quality, but that may be just me.

Of course the important question is, does the adaptive filter seem to have much effect past a value of 128?

Thanks, and keep up the great work. I love tinkering around with the program.

-Bonzaii

  • Nick.C
  • [*][*][*][*][*]
  • Developer
lossyWAV 1.3.0 Development Thread
Reply #70
Done "lossywav wheeee.wav -Z -A -C", analysed the lwcdf file, got the same spectrum as the one I posted.
There's an error in the adaptive shaping algorithm when the internal FFT routines are used - this error is not present when the FFTW DLLs are used. I'll get a fix out as soon as I can.

[edit] .... which might explain halb27's hiss problems - @halb27: do you have either of the FFTW DLLs installed on your PC? [/edit]
  • Last Edit: 03 June, 2010, 03:14:55 AM by Nick.C
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848| FLAC -5 -e -p -b 512 -P=4096 -S-

  • halb27
  • [*][*][*][*][*]
lossyWAV 1.3.0 Development Thread
Reply #71
I have libfftw3-3.dll and libfftw3l-3.dll in the same folder as lossyWAV.exe.
Is this enough to have them used?
lame3995o -Q1

lossyWAV 1.3.0 Development Thread
Reply #72
Done "lossywav wheeee.wav -Z -A -C", analysed the lwcdf file, got the same spectrum as the one I posted.
There's an error in the adaptive shaping algorithm when the internal FFT routines are used - this error is not present when the FFTW DLLs are used. I'll get a fix out as soon as I can.

No problem. 

I have libfftw3-3.dll and libfftw3l-3.dll in the same folder as lossyWAV.exe.
Is this enough to have them used?

It used to be, I don't know if it is any more...

I've got libfftw3-3.dll in the same directory as lossyWAV as well and it still does the error, so I presume that you have to provide either -F or --fftw option on the command line. It was probably done so the program wouldn't be confused which .dll to use if both libfftw3-3.dll and libfftw3l-3.dll were present, because -F and --fftw now accept an option which can be either "single", "double" or "off", if I understand correctly.

So to make lossyWAV use FFTW libraries for Fourier transforms you need to provide one of these four options on the command line after "lossyWAV" and the filename:
  • -F single
  • -F double
  • --fftw single
  • --fftw double



That is, if I've understood it correctly.

  • Nick.C
  • [*][*][*][*][*]
  • Developer
lossyWAV 1.3.0 Development Thread
Reply #73
The DLL should be in a directory which is on the path, not necessarily in the directory where lossyWAV is - unless that directory is on the path. By default, lossyWAV will try to use libfftw3-3.dll (double precision) then, if that is not available, libfftw3f-3.dll (single precision) then, if that is not available, internal routines. The easy way to tell is to look at the end of the results line - if "[D]" is present, libfftw3-3.dll was used; if "" is present then libfftw3f-3.dll was used; if "" was used then the internal FFT routines were used.
lossyWAV -q X -a 4 -s h -A --feedback 2 --limit 15848| FLAC -5 -e -p -b 512 -P=4096 -S-

lossyWAV 1.3.0 Development Thread
Reply #74
Ok, this is completely confusing me now.

libfftw3-3.dll is in the same directory as lossyWAV, yet when I add "-F double" to the command line it nonchalantly tells me that libfftw3-3.dll was not found and that it will proceed to use the internal FFT routines.