Skip to main content
Recent Posts
1
MP3 / Re: best mp3 encoder with something better than a command line interface?
Last post by BrilliantBob -
It's not forbidden to ask questions. People are just pointing out to you that it is extremely unlikely that you found some secret 'magic' settings for lame that are better than the default settings.
You haven't the faintest clue how this forum started.
Certain extended LAME settings outsmart the default settings and preserves the original quality.

The original.wav sample was extracted from the "Alan Parsons Project - I Robot (1977) - 10 - Genesis Ch.1. V.32.wav" as you can hear in any original CD.

original.wav  = the sample extracted from the original CD file
MyEnc.mp3      = the sample encoded with my extended settings of LAME.
DefaultEnc.mp3 = the sample encoded with the default LAME settings.
Code: [Select]
1. The default settings
================================
lame original.wav DefaultEnc.mp3
================================
2. My settings
=======================================================================================================================================================================
lame.exe -ms --ns-bass -8 --ns-alto -8 --ns-treble -8 --ns-sfb21 -16 --interch 0.0002 --verbose -V0 -b256 -B320 -F --lowpass -1 --highpass 0.001 original.wav MyEnc.mp3
=======================================================================================================================================================================
C:\>lame original.wav DefaultEnc.mp3
LAME 3.100 64bits (http://lame.sf.net)
Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz
Encoding original.wav to DefaultEnc.mp3
Encoding as 44.1 kHz j-stereo MPEG-1 Layer III (11x) 128 kbps qval=3
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
  1169/1169  (100%)|    0:02/    0:02|    0:02/    0:02|   10.469x|    0:00
-------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  128.0        1.0  99.0        96.6   1.8   1.6
Writing LAME Tag...done
ReplayGain: -8.0dB
............................................................................................
C:\>lame.exe -ms --ns-bass -8 --ns-alto -8 --ns-treble -8 --ns-sfb21 -16 --interch 0.0002 --
verbose -V0 -b256 -B320 -F --lowpass -1 --highpass 0.001 original.wav MyEnc.mp3
Warning: highpass filter disabled.  highpass frequency too small
LAME 3.100 64bits (http://lame.sf.net)
polyphase lowpass filter disabled
Encoding original.wav to MyEnc.mp3
Encoding as 44.1 kHz stereo MPEG-1 Layer III VBR(q=0)

misc:

        scaling: 1
        ch0 (left) scaling: 1
        ch1 (right) scaling: 1
        huffman search: best (outside loop)
        experimental Y=0
        ...

stream format:

        MPEG-1 Layer 3
        2 channel - stereo
        padding: all
        variable bitrate - VBR mtrh (default)
        using LAME Tag
        ...

psychoacoustic:

        using short blocks: channel coupled
        subblock gain: 1
        adjust masking: -6.8 dB
        adjust masking short: -6.8 dB
        quantization comparison: 9
         ^ comparison short blocks: 9
        noise shaping: 1
         ^ amplification: 2
         ^ stopping: 1
        ATH: using
         ^ type: 5
         ^ shape: 1 (only for type 4)
         ^ level adjustement: -7.1 dB
         ^ adjust type: 3
         ^ adjust sensitivity power: 1.000000
        experimental psy tunings by Naoki Shibata
           adjust masking bass=-8.5 dB, alto=-8.25 dB, treble=-8.025 dB, sfb21=-15.5 dB
        using temporal masking effect: no
        interchannel masking ratio: 0.0002
        ...

    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
  1169/1169  (100%)|    0:03/    0:03|    0:03/    0:03|   7.6477x|    0:00
256 [   0]
320 [1169] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-------------------------------------------------------------------------------
   kbps        LR  %     long switch short %
  320.0      100.0        95.5   2.3   2.2
Writing LAME Tag...done
ReplayGain: -8.5dB

C:\>

The Results:

MyEnc.mp3 is almost identical with the original.wav and is clearly different than DefaultEnc.mp3, as you see in the ABX tests.

The BASS area in the DefaultEnc.mp3 is boosted (sounds more loud) probably due to the [ATH type 4] and/or the psychoacoustic default settings.

MyEnc.mp3 was encoded with my experimental LAME settings (including the dev settings ON), with [ATH type 5] and the psychoacoustic settings lowered to minimum. And sounds almost identical with the original.wav (no BASS boost). According with the LAME developers from 2001, the ATH type 5 is based on collected data. The other LAME ATH curves are simply based on experimental data. https://sourceforge.net/p/lame/mailman/message/4770856/

The HF 16,000 Hz-20,000 Hz area wiped out by the LAME default settings is irrelevant for people who can't hear anything in this range. Maybe the youngers may feel any differences. Not my case.

It's up to you to judge if my LAME settings are snakeoil or not. Feel free to comment.
         

    
3
3rd Party Plugins - (fb2k) / Re: De-emphasis components
Last post by MJmusicguy -
what it means is post processing rarely works unless marked loading as a dsp is mush simpler especially when the preset is used but be sure only use it on content you know needs it because it will per mentally alter the file
dont worry about anything just follow my  instructions
5
3rd Party Plugins - (fb2k) / Re: De-emphasis components
Last post by mus1c1smyl1fe -
As postprocessor it works on files that have tag PRE_EMPHASIS or PRE-EMPHASIS with value "1", "on" or "yes" even if it is not in active DSP list. As DSP it works on ALL files if it is in active DSP list.

I see, thanks! So that's a big difference to lvqcl's foo_dsp_deemph.zip, right? Because on my PC, lvqcl's DSP plugin does only de-emphasise files that have the  PRE_EMPHASIS or PRE-EMPHASIS with value "1", "on" or "yes". Why is lvqcl's DSP plugin not available on Foobar's official components page anyway?
6
3rd Party Plugins - (fb2k) / Re: External Tags
Last post by sveakul -
Thanks Sergey77, this works!  I noticed that the new tag created in the "external-tags" folder after doing so grows in size to about the same as the picture attached, so I assume the picture itself is actually put inside the new "wrapped" tag, like embedding into an audio file.  I was hoping that instead it would just contain the LINK to the picture's location and Foobar could use that path to display it in the view box, but hey I'm good with this too  ;D

Case:  Possible bug noticed:  After a new wrapped tag has been created from an existing stream that had a "regular" external tag, using the context command "Remove External Tags" deletes the tag from the external-tags folder, but the stream's "properties" still show "Tag Type" as "External Apev2", and the filepath/folder name still have the prefix "exttag://" after refreshing the entry.  Can these be removed also from wherever  that info is being stored?
7
3rd Party Plugins - (fb2k) / Re: De-emphasis components
Last post by Rollin -
As postprocessor it works on files that have tag PRE_EMPHASIS or PRE-EMPHASIS with value "1", "on" or "yes" even if it is not in active DSP list. As DSP it works on ALL files if it is in active DSP list.
8
3rd Party Plugins - (fb2k) / Re: De-emphasis components
Last post by mus1c1smyl1fe -
I am just interested in why Mudlord's plugin simply de-emphasises every PE-tagged file I play even when the plugin is NOT listed in "Active DSPs"
Because it is postprocessor, not just DSP. Did you read its description?
Quote
Performs RIAA CD/phono deemphasis eith as a decode postprocessor or selectable DSP.

Thanks! Yes, I read that. But I am pretty new to this kind of stuff, I wasn't sure what it means. Does it mean that as soon as the Plugin is installed, it will start de-emphasising every file that is played and has the PRE-EMPHASIS tag set to "1" or "yes"?

EDIT: But given that the description says EITHER postprocessor or selectable DSP, there should be a way to use it as DSP rather as postprocessor, no? I just didn't find out how I can do that.
10
3rd Party Plugins - (fb2k) / Re: De-emphasis components
Last post by mus1c1smyl1fe -
use
 http://www.foobar2000.org/components/view/foo_dsp_effect instead put your cd in. File, Open Audio Cd, it should find your drive, hit Rip, A dialog box comes up, you can use any of the databases for the track listing, now hit the button "Proceed to the converter set up dialog"
Now another box comes up, in the left box it has your saved presets, if any just delete them all, we'll start from scratch, on the right hand side you can choose output format, pick whatever suits you, now click on 'processing' another box appears, check the box in the upper left, now in the right hand box you will see a box filled with different filters and such, scroll till you find IIR Filter, highlight it and click the arrow so it goes into the Active DSP box, now highlight that and click on 'configure selected' there will be a dropbox, select 'CD-De-emphasis" click ok, now you can go 'Back' now you "Save' that preset, and it should show in the left hand box "Saved Presets", I just named mine 'pre' , now hit the 'convert' button, a file destination folder will pop up, so just direct it where you want the files (songs) to go. a 'converter' box will pop up adding the new EQ while it's ripping the disc :)
Now whenever you have another disc with pre, after you hit 'Rip' you now have a choice of using the preset

Wow, thank you very much for the detailed description, it is appreciated!

However, this is not exactly what I want. I have ripped multiple pre-emphasised discs with EAC, they are now put away in store; I have the FLAC files on my PC, and what I am looking for is a way of playing these files the way they are, with de-emphasis added on the fly. The tools discussed here are exactly what I need.

Anyway, I am just interested in why Mudlord's plugin simply de-emphasises every PE-tagged file I play even when the plugin is NOT listed in "Active DSPs"; and if there's any updates the the components shared in the first post of this thread.

P.s.: I just noticed that lvqcl's foo_dsp_deemph.zip seems to have a weird bug: I played two FLAC files from two different folders, both have the PRE-EMPHASIS tag properly set to "1"; and lvqcl's DSP plugin is listed in "Active DSPs". Now, one file gets de-emphasised - and one doesn't! I experimented a bit and found out this: When I copied he file that didn't get de-emphasised to a different location on my hard drive with much less subdirectories and shorter folder names, it suddenly did get de-emphasised properly. I added both, the original file at the original location and the one I had moved to a different location, to the playlist, and indeed: 100% identical files sound differently because one does not get de-emphasised apparently because its file path is too long! I am just happy I figured this out quickly. Will re-organise my folders now in order to avoid long paths with too many letters.
SimplePortal 1.0.0 RC1 © 2008-2018