Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Files encoded with foobar differ in byte count (Read 5410 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Files encoded with foobar differ in byte count

Hello,

I encoded a flac file to ogg vorbis using lancer's oggenc2.83 through foobar.  I also encoded the same file with lancer's oggdropXPd with the exact same parameters I used in foobar.  The file encoded with foobar are always a few bytes larger.  I've noticed it with wavpack and flac files too.  Foobar files are a few bytes larger than the command line encoded files.

Is this a big deal?


Thanks,

Gary

Files encoded with foobar differ in byte count

Reply #1
Foobar encodes from the command line also.  If we're only talking 3 bytes, I'm guessing foobar is adding some metadata that your other app(s) are not.  In any case it's nothing to worry about.

Files encoded with foobar differ in byte count

Reply #2
I guess the variation is more than a few bytes.  The command line encoded vorbis file shows a size of 7,911KB while the foobar encoded one is 7,913KB.

Files encoded with foobar differ in byte count

Reply #3
Maybe foobar is padding the tags a little more than the commandline encoder would or oggdropXPd.  Other than that I can't think of what it would be.
Nero AAC 1.5.1.0: -q0.45

Files encoded with foobar differ in byte count

Reply #4
Check to see if any DSPs or Replaygain are active during encoding. Either of these could account for variations.
audiomars
Reason is immortal, all else mortal
- Pythagoras

Files encoded with foobar differ in byte count

Reply #5
Install the "Binary Comparator" component from here: http://www.foobar2000.org/components/index.html.
You'll get a new item named as "Bit-Compare Tracks" under the Utils right-click menu. (This is for foobar v. 0.9.3 or newer).

After that you can use the tool for checking if the audio contents are identical. If they are, then the difference is only in the file tag area as suggested.

Files encoded with foobar differ in byte count

Reply #6
Install the "Binary Comparator" component from here: http://www.foobar2000.org/components/index.html.
You'll get a new item named as "Bit-Compare Tracks" under the Utils right-click menu. (This is for foobar v. 0.9.3 or newer).

After that you can use the tool for checking if the audio contents are identical. If they are, then the difference is only in the file tag area as suggested.


I did as suggested.  I encoded multiple files to ogg vorbis and flac and bit compared them.  They were identical. 

I guess foobar just adds a little more padding to files it encodes.  Flac files always have a difference of 77KB and ogg vorbis files always have a difference of 2KB.

 

Files encoded with foobar differ in byte count

Reply #7
The FLAC difference is because of some stupid behavior in foobar2000 resulting in FLAC making thousands of seekpoints. Make it decode to a temporary input file (%s) instead of - and it won't do that anymore.