The original wav file:
CODE
foobar v0.8.3 special info:
Original file:
bitrate = 1411
samplerate = 44100
channels = 2
codec = PCM
bitspersample = 16
--------------------
635299244 samples @ 44100Hz
Length: 4:00:05.878
Foobar reported file size: -1,753,770,276 Bytes (2423.47 MB) <--- not sure why it reports this as minus 1??
Win XP sp2 reported file size: 2,541,197,020 Bytes (2.36 GB)
To clarify, this is a large wav file of just over 4hrs in duration with a file size of approx 2.4gbOriginal file:
bitrate = 1411
samplerate = 44100
channels = 2
codec = PCM
bitspersample = 16
--------------------
635299244 samples @ 44100Hz
Length: 4:00:05.878
Foobar reported file size: -1,753,770,276 Bytes (2423.47 MB) <--- not sure why it reports this as minus 1??
Win XP sp2 reported file size: 2,541,197,020 Bytes (2.36 GB)
I used four different 'methods' of trying to encode this file into a FLAC, Ogg Vorbis & mp3 (LAME) file.
Encoding 'methods' used:
foobar v0.8.3
foobar v0.9.2b4
'drops': lamedropXPd.exe (V2.0 with 3.97b2) :: oggdropXPd.exe (1.8.9 with libvorbis 1.1.2) :: FlacDrop.exe (V1.2 with FLAC 1.1.2)
Command line running of the LAME, Ogg Vorbis & FLAC exe's.
Versions & switches used (unless where specified, i.e. oggdropXPd.):
mp3: LAME 3.97b2 :: -V2 --vbr-new
Ogg Vorbis: oggenc283_sse2_lancer20060529 :: -q4
FLAC: 1.1.2 :: --best -V
---
Results:
==== foobar 0.8.3 ====
LAME:
CODE
INFO (CORE) : startup time: 1500 ms
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://C:\Audio\lossless\flac\Non Commercial\_To Be Sorted\file.wav" (0)
INFO (foo_out_dsound_ex) : Created stream: 44100Hz 16bps 2ch
INFO (foo_clienc) : CLI encoder: C:\My Downloads\Encoders\lame\lame 3.97b2\lame.exe
INFO (foo_clienc) : Destination file: file://C:\Audio\lossless\flac\Non Commercial\_To Be Sorted\file.mp3
INFO (foo_clienc) : Source file: file://C:\Audio\lossless\flac\Non Commercial\_To Be Sorted\file.wav
INFO (foo_clienc) : 44100Hz 24bps 2ch
INFO (foo_clienc) : Encoding took 503016 milliseconds, speed 16.13x
ERROR (foo_diskwriter) : Conversion failed.
---
Resulting file:
File size: 163,163,802 Bytes (155.61 MB)
Length: 2:15:15.000
Tech Info:
lame_version = LAME3.97
lame_profile =
lame_profile_index = 0
enc_delay = 576
enc_padding = 1332
mp3_accurate_length = yes
bitrate = 161
codec = MP3
channels = 2
samplerate = 44100
extrainfo = VBR
mp3_stereo_mode = joint stereo
357871500 samples @ 44100Hz
(mod 588 = 0)
Ogg Vorbis:
CODE
INFO (CORE) : opening file for playback :
INFO (CORE) : location: "file://C:\Audio\lossless\flac\Non Commercial\_To Be Sorted\file.wav" (0)
INFO (foo_out_dsound_ex) : Created stream: 44100Hz 16bps 2ch
INFO (foo_clienc) : CLI encoder: C:\My Downloads\Encoders\ogg\oggenc283_sse2_lancer20060529\oggenc2.exe
INFO (foo_clienc) : Destination file: file://C:\Audio\lossless\flac\Non Commercial\_To Be Sorted\file.ogg
INFO (foo_clienc) : Source file: file://C:\Audio\lossless\flac\Non Commercial\_To Be Sorted\file.wav
INFO (foo_clienc) : 44100Hz 32bps 2ch
ERROR (foo_clienc) : Writing to encoder failed
INFO (foo_clienc) : Encoding took 204907 milliseconds, speed 29.70x
ERROR (foo_diskwriter) : Conversion failed.
---
Resulting file:
File size: 85,831,414 Bytes (81.86 MB)
Length: 1:41:26.000
Tech Info:
bitrate = 113
channels = 2
samplerate = 44100
bitrate_nominal = 128
codec = Vorbis
vorbis_vendor = BS; Lancer(SSE2) [20060529] (based on aoTuV b4b [20051117])
268392600 samples @ 44100Hz
FLAC:
CODE
INFO (foo_clienc) : CLI encoder: C:\My Downloads\Encoders\flac\flac 1.1.2\flac.exe
INFO (foo_clienc) : Destination file: file://C:\Audio\lossless\flac\Non Commercial\file.flac
INFO (foo_clienc) : Source file: file://C:\Audio\lossless\flac\Non Commercial\_To Be Sorted\file.wav
INFO (foo_clienc) : 44100Hz 16bps 2ch
INFO (foo_clienc) : Encoding took 1223687 milliseconds, speed 11.77x
---
Resulting file:
File size: 1,257,970,356 Bytes (1199.69 MB)
Length: 3:22:53.000
Tech Info:
FLAC_vendor = reference libFLAC 1.1.2 20050205
bitrate = 827
samplerate = 44100
channels = 2
bitspersample = 16
codec = FLAC
536829300 samples @ 44100Hz
==== foobar 0.9.2b4 =====
LAME:
CODE
Error writing to file (Encoder has terminated prematurely with code 0; please re-check parameters) : file://C:\Audio\lossless\flac\Non Commercial\_To Be Sorted\test file\file.mp3
---
Resulting file:
File size: 163,185,039 Bytes (155.63 MB)
Length: 2:15:15.962
Tech Info:
lame_version = LAME3.97
lame_profile =
lame_profile_index = 0
enc_delay = 576
enc_padding = 1523
mp3_accurate_length = yes
bitrate = 161
codec = MP3
channels = 2
samplerate = 44100
extrainfo = VBR
mp3_stereo_mode = joint stereo
357913933 samples @ 44100Hz
(rounded samples : 357913836)
Ogg Vorbis:
CODE
Error writing to file (Encoder has terminated prematurely with code 0; please re-check parameters) : file://C:\Audio\lossless\flac\Non Commercial\_To Be Sorted\test file\foobar 0.9.4 converted\file.ogg
---
Resulting file:
File size: 115,247,651 Bytes (109.91 MB)
Length: 2:15:15.962
Tech Info:
bitrate = 114
channels = 2
samplerate = 44100
bitrate_nominal = 128
codec = Vorbis
vorbis_vendor = BS; Lancer(SSE2) [20060529] (based on aoTuV b4b [20051117])
357913933 samples @ 44100Hz
FLAC:
CODE
.::. foobar did not report an error with this convertion, but the file was not correct .::.
---
Resulting file:
File size: 1,258,058,161 Bytes (1199.78 MB)
Length: 3:22:53.943
Tech Info:
FLAC_vendor = reference libFLAC 1.1.2 20050205
bitrate = 827
samplerate = 44100
channels = 2
bitspersample = 16
codec = FLAC
536870900 samples @ 44100Hz
==== 'Drops' ====
LAME:
CODE
Ran successfully, with no errors
---
Resulting file:
File size: 297,906,724 Bytes (284.11 MB)
Length: 4:00:05.878
Tech Info:
lame_version = LAME3.97
lame_profile =
lame_profile_index = 0
enc_delay = 576
enc_padding = 1684
mp3_accurate_length = yes
bitrate = 165
codec = MP3
channels = 2
samplerate = 44100
extrainfo = VBR
mp3_stereo_mode = joint stereo
635299244 samples @ 44100Hz
(rounded samples : 635298720)
---
Resulting file:
File size: 297,906,724 Bytes (284.11 MB)
Length: 4:00:05.878
Tech Info:
lame_version = LAME3.97
lame_profile =
lame_profile_index = 0
enc_delay = 576
enc_padding = 1684
mp3_accurate_length = yes
bitrate = 165
codec = MP3
channels = 2
samplerate = 44100
extrainfo = VBR
mp3_stereo_mode = joint stereo
635299244 samples @ 44100Hz
(rounded samples : 635298720)
Ogg Vorbis:
CODE
Ran successfully, with no errors
---
Resulting file:
File size: 200,754,234 Bytes (191.45 MB)
Length: 4:00:05.878
Tech Info:
bitrate = 111
channels = 2
samplerate = 44100
bitrate_nominal = 128
codec = Vorbis
vorbis_vendor = Xiph.Org libVorbis I 20050304
635299244 samples @ 44100Hz
---
Resulting file:
File size: 200,754,234 Bytes (191.45 MB)
Length: 4:00:05.878
Tech Info:
bitrate = 111
channels = 2
samplerate = 44100
bitrate_nominal = 128
codec = Vorbis
vorbis_vendor = Xiph.Org libVorbis I 20050304
635299244 samples @ 44100Hz
FLAC:
CODE
Ran successfully, with no errors
---
Resulting file:
File size: 1,484,715,685 Bytes (1415.94 MB)
Length: 4:00:05.878
Tech Info:
FLAC_vendor = reference libFLAC 1.1.2 20050205
bitrate = 825
samplerate = 44100
channels = 2
bitspersample = 16
codec = FLAC
635299244 samples @ 44100Hz
---
Resulting file:
File size: 1,484,715,685 Bytes (1415.94 MB)
Length: 4:00:05.878
Tech Info:
FLAC_vendor = reference libFLAC 1.1.2 20050205
bitrate = 825
samplerate = 44100
channels = 2
bitspersample = 16
codec = FLAC
635299244 samples @ 44100Hz
==== Command Line ====
LAME:
CODE
Ran successfully, with no errors
---
Resulting file:
File size: 297,906,665 Bytes (284.11 MB)
Length: 4:00:05.878
Tech Info:
lame_version = LAME3.97
lame_profile =
lame_profile_index = 0
enc_delay = 576
enc_padding = 1684
mp3_accurate_length = yes
bitrate = 165
codec = MP3
channels = 2
samplerate = 44100
extrainfo = VBR
mp3_stereo_mode = joint stereo
635299244 samples @ 44100Hz
(rounded samples : 635298720)
---
Resulting file:
File size: 297,906,665 Bytes (284.11 MB)
Length: 4:00:05.878
Tech Info:
lame_version = LAME3.97
lame_profile =
lame_profile_index = 0
enc_delay = 576
enc_padding = 1684
mp3_accurate_length = yes
bitrate = 165
codec = MP3
channels = 2
samplerate = 44100
extrainfo = VBR
mp3_stereo_mode = joint stereo
635299244 samples @ 44100Hz
(rounded samples : 635298720)
Ogg Vorbis:
CODE
Ran successfully, with no errors
---
Resulting file:
File size: 207,977,860 Bytes (198.34 MB)
Length: 4:00:05.878
Tech Info:
bitrate = 115
channels = 2
samplerate = 44100
bitrate_nominal = 128
codec = Vorbis
vorbis_vendor = BS; Lancer(SSE2) [20060529] (based on aoTuV b4b [20051117])
635299244 samples @ 44100Hz
---
Resulting file:
File size: 207,977,860 Bytes (198.34 MB)
Length: 4:00:05.878
Tech Info:
bitrate = 115
channels = 2
samplerate = 44100
bitrate_nominal = 128
codec = Vorbis
vorbis_vendor = BS; Lancer(SSE2) [20060529] (based on aoTuV b4b [20051117])
635299244 samples @ 44100Hz
FLAC:
CODE
Ran successfully, with no errors
---
Resulting file:
File size: 1,484,715,685 Bytes (1415.94 MB)
Length: 4:00:05.878
Tech Info:
FLAC_vendor = reference libFLAC 1.1.2 20050205
bitrate = 825
samplerate = 44100
channels = 2
bitspersample = 16
codec = FLAC
635299244 samples @ 44100Hz
---
Resulting file:
File size: 1,484,715,685 Bytes (1415.94 MB)
Length: 4:00:05.878
Tech Info:
FLAC_vendor = reference libFLAC 1.1.2 20050205
bitrate = 825
samplerate = 44100
channels = 2
bitspersample = 16
codec = FLAC
635299244 samples @ 44100Hz
---
Conclusion:
foobar cannot correctly convert my file.
The 'drop' frontends and the use of the command line does work.
---
I found out all this after I'd discovered a bug with wavegain. I posted that in this thread. john33 had a look and confirmed a bug in the code citing:
the use of "signed long ints in a couple of places where they should be unsigned"
and
the use of "functions 'fseek' and 'ftell' when closing the file to ensure that any chunks that appear after the 'data' chunk are copied over, and both of these functions use signed ints!! Hence, the often seen 2GB limit!! I've circumvented this issue by using '_fseeki64' and '_ftelli64' which, as the names suggest, are similar functions, but use signed 64 bit ints. Oddly, these 64 bit functions are completely undocumented regarding their existence."
See this thread too.
---
So, I thought I'd create this looong (sorry) post in the hope of highlighting a problem presumably with foobar or foo_diskwriter / foo_converter ???
---
EDIT: meant to say 0.9.2b4 and not 0.9.4
