HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: Rollin on 2011-06-27 18:43:15

Title: Using LossyWAV encoder with portable foobar2000
Post by: Rollin on 2011-06-27 18:43:15
Is there any way to use lossywav encoder with portable foobar and save full portability?

(I have no problems with other encoders+portable foobar and no problems with lossywav+normal foobar installation)
Title: Using LossyWAV encoder with portable foobar2000
Post by: Nick.C on 2011-06-27 18:56:39
I use lossyWAV (unsurprisingly.... ) with foobar2000 using a portable installation.

Are you having trouble pointing to the lossywav executable?
Title: Using LossyWAV encoder with portable foobar2000
Post by: Rollin on 2011-06-27 19:30:33
Are you having trouble pointing to the lossywav executable?

Yes. For other encoders I just place exe file to folder where foobar2000.exe is. But for lossywav it does't work.
Here my settings. lossywav.exe and flac.exe in the same folder where foobar2000.exe:
(http://img15.imageshack.us/img15/5928/20110627222813.th.png) (http://imageshack.us/photo/my-images/15/20110627222813.png/)
Title: Using LossyWAV encoder with portable foobar2000
Post by: db1989 on 2011-06-27 19:50:01
But for lossywav it does't work.
How exactly? Is there an error message from either foobar2000, cmd.exe, or lossyWAV; what does it say; etc.
Title: Using LossyWAV encoder with portable foobar2000
Post by: Rollin on 2011-06-27 20:03:11
Is there an error message from either foobar2000, cmd.exe, or lossyWAV; what does it say; etc.

Error mesage from foobar says:
Quote
1 out of 1 tracks converted with major problems.

Source: "D:\1\white noise.wav"
  An error occurred while writing to file (The encoder has terminated prematurely with code 1 (0x00000001); please re-check parameters) : "D:\1\white noise.lossy.flac"
  Additional information:
  Encoder stream format: 44100Hz / 2ch / 16bps
  Command line: "c:\windows\system32\cmd.exe" /d /c lossywav.exe - -q X --silent --stdout|flac.exe - -b 512 -8 --ignore-chunk-size -o "white noise.lossy.flac"
  Working folder: D:\1\
 
  Conversion failed: The encoder has terminated prematurely with code 1 (0x00000001); please re-check parameters

If in "Parameters" I write full (not relative) path to lossywav.exe and flac.exe (
Quote
/d /c d:\foobar2000\lossywav.exe - -q X --silent --stdout|d:\foobar2000\flac.exe - -b 512 -8 --ignore-chunk-size -o %d
instead of
Quote
/d /c lossywav.exe - -q X --silent --stdout|flac.exe - -b 512 -8 --ignore-chunk-size -o "white noise.lossy.flac
), then everything works.
Title: Using LossyWAV encoder with portable foobar2000
Post by: Nick.C on 2011-06-27 21:46:11
Searching "portable" in the foobar2000 support forums seems to indicate that this is an outstanding issue with fb2k in portable mode - it does not seem to find other executables in its main directory.
Title: Using LossyWAV encoder with portable foobar2000
Post by: no404error on 2011-08-14 12:44:11
LossyFLAC portable

Files paths
Code: [Select]
foobar folder\@.bat
foobar folder\encoders\flac.exe
foobar folder\encoders\lossywav.exe


@.bat
Code: [Select]
"%~dp0encoders\lossywav.exe" "%~dp1%~nx1" -q %3 --silent --stdout|"%~dp0encoders\flac.exe" - -b 512 -%4 -f -o "%~dp1%~nx2"


Foobar2000 coverter
Code: [Select]
Encoder: @.bat
Extension: lossy.flac
Parameters: %s %d preset compression
Format is: lossless or hybrid
Highest BPS mode supported: 24


*preset = I, E, H, S, C, P, X
*compression = 0-8