HydrogenAudio

Hydrogenaudio Forum => Validated News => Topic started by: tycho on 2016-09-27 16:33:48

Title: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: tycho on 2016-09-27 16:33:48
lossyflac v1.2 converts between WAV/FLAC and lossy.flac/lwcdf.flac
Resulting lossy.flac and flac files store tags and picture art from input.

Usage: lossyflac inputfile... [lossywav-options] [@ flac-options][/b]

This tool makes it easy to convert back and forth between FLAC and lossy.flac + lwcdf.flac files, while maintaining tags and picture art. Required tools are flac.exe, metaflac.exe and lossyWAV.exe somewhere in %PATH%. Un-comment the line: REM set "dir=%~dp0" to use tools placed in the same folder as lossyflac.cmd instead of PATH.

Some examples
1) Convert all flac and wav files in current folder to lossy.flac files (keeps flac tags and art).
  lossyflac *.flac *.wav -o outdir -s o @ -6

2) Convert all flacs in folder into tagged lossy.flac and correction files (lwcdf.flac)
  lossyflac *.flac -o lfdir -C -f

3) Reconstruct (merge) all the original tagged flac files from lossy.flac and correction flac files.
  lossyflac lfdir\*.lossy.flac -M -o flacdir

Changes
1.2
- fixed argument parsing of - for stream in.
- option -o outname corrected. Will now work with dBpoweramp and others.
- temporary files now in %TEMP% folder, not output.
1.1
- fixed handling of special characters in file names.
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: gottkaiser85 on 2016-11-09 14:23:58
Thanks for creating this useful script.

Do you take feature requests? I'm not able to extend the script as I wish.
It would be great to be able to specify a folder and it will convert all lossless FLAC files in the sub folders.
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: tycho on 2016-11-10 13:27:23
Thanks for creating this useful script.

Do you take feature requests? I'm not able to extend the script as I wish.
It would be great to be able to specify a folder and it will convert all lossless FLAC files in the sub folders.
That's possible. I'll look into when I get some time.
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: tycho on 2016-11-11 14:38:31
Attached lossyflac v1.3.

This should not be a development thread, but the suggested feature was important also for for my own usage. Do not post more feature requests, only bugs.
Changes since v1.2:
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: gottkaiser85 on 2016-11-12 04:40:45
Thank you very much!  :)
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: Nick.C on 2016-11-12 14:12:13
Nice one! Well done Tycho.
Title: lossyflac 1.4.0 released
Post by: tycho on 2016-11-19 00:33:58
lossyflac 1.4.0


Previous changes
1.3:
1.2
1.1

This is likely the final version of this script. The features added in 1.3 and 1.4 are somewhat redundant as they could (and still can) be achieved by setting up lossyflac.cmd in foobar2000 as an encoder. The script should also be useful as a template for any similar converters, though.
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: gottkaiser85 on 2016-11-19 11:18:00
nice one.  :)
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: tycho on 2016-11-20 20:38:24
lossyflac 1.4.1

Unfortunately, a minor bug sneaked into the last version. Sorry about my sloppy testing. Hope this is the final.
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: verse_n_chorus on 2017-01-17 18:54:23
Please change the file extension used , so as to not confuse with flac
(the free lossless audio codec) .
Maybe use fwac (the free lossy wave audio codec) .
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: 2Bdecided on 2017-01-17 22:08:49
Please change the file extension used , so as to not confuse with flac
(the free lossless audio codec) .
Maybe use fwac (the free lossy wave audio codec) .
You're nearly ten years too late ;-)
https://hydrogenaud.io/index.php/topic,55522.msg498343.html#msg498343

Cheers,
David.
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: Nick.C on 2017-01-18 11:32:23
You're nearly ten years too late ;-)
https://hydrogenaud.io/index.php/topic,55522.msg498343.html#msg498343

Cheers,
David.

Indeed he is....

.... plus, changing the file extension affects the file association.

.... plus, a FLAC file is a FLAC file - there's no guarantee (unless one created it from source) that it does, indeed, contain lossless audio (the FLAC encoding being lossless in and of itself, of course).
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: Porcus on 2017-01-18 14:52:55
verse_n_chorus could maybe consider ".fla", which was frequently seen for FLAC files on Windows in old days when people liked to stick to 8+3 filenames. It seems to be decently supported still. And dropping a letter from ".flac" does hint at some kind of lossiness, doesn't it? ;-)

Check first if one has other files with that suffix, e.g. Flash files.
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: Wombat on 2017-01-18 15:08:33
These days flac even is dsd or MQA!
Title: Re: lossyflac v1.2 released (uses lossyWAV and flac)
Post by: Kraeved on 2021-04-04 00:02:18
What is lwdir? This abbreviation doesn't tell me anything.
Also, how do I create lossyFLAC+corr from WAV? This case is not explained.
SimplePortal 1.0.0 RC1 © 2008-2021