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: MP3 conversion not outputting selected quality (Read 2213 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

MP3 conversion not outputting selected quality

So I'm doing something unconventional and am having issues.  I have an MP4 video file of a presentation that I want to get the audio from.  Since it's a presentation, I'm not concerned about lossy > lossy conversion.  If I load the MP4 directly into foobar and convert the file, it outputs fine.

One thing I tried doing however was increasing the audio in GoldWave or removing certain segments, then saving the edited audio as a WAV file and converting the WAV to MP3 in foobar.  When I do this, I selected V4 as the output quality, however the created file shows V2 as the profile in foobar.  Any idea what may be happening?

 

Re: MP3 conversion not outputting selected quality

Reply #1
What is the samplerate of the source files?

Re: MP3 conversion not outputting selected quality

Reply #2
What is the samplerate of the source files?
According to foobar, the sample rate of the WAV file after I edit the MP4 audio is 22050 Hz.
Also, I want to note, it seems that the bitrate and file size of the "V2" file actually correlates with what would be expected of a V4, yet it still says V2.

Re: MP3 conversion not outputting selected quality

Reply #3
Could this be a bug in Lame? Mediainfo reports it as a -V 2 encoding.

Code: [Select]
C:\Users\xxxxxx\Music>lame.exe -V 4 test.wav
LAME 3.100 32bits (http://lame.sf.net)
CPU features: MMX (ASM used), SSE (ASM used), SSE2
polyphase lowpass filter disabled
Encoding TEST.wav to TEST.mp3
Encoding as 22.05 kHz j-stereo MPEG-2 Layer III VBR(q=2.44706)
    Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
  9096/9096  (100%)|    0:02/    0:02|    0:02/    0:02|   102.37x|    0:00
  8 [   1] *
 16 [   0]
 24 [   0]
 32 [   0]
 40 [  31] %
 48 [  38] %
 56 [   0]
 64 [   8] %
 80 [ 425] %*******
 96 [3889] %%%%%%%%%%%%%%%%%***************************************************
112 [2707] %%%%%%%%%%%%%%%%%%%*****************************
128 [ 422] %%%*****
144 [ 338] %%****
160 [1237] %%%%%%%%%%%%**********
-------------------------------------------------------------------------------
   kbps        LR    MS  %     long switch short %
  111.6       32.6  67.4        79.0  11.9   9.1
Writing LAME Tag...done
ReplayGain: -9.2dB

Mediainfo
Code: [Select]
Complete name                            : C:\Users\xxxxxx\Music\TEST.mp3
Format                                   : MPEG Audio
File size                                : 3.16 MiB
Duration                                 : 3 min 57 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 111 kb/s
Writing library                          : LAME3.100

Audio
Format                                   : MPEG Audio
Format version                           : Version 2
Format profile                           : Layer 3
Format settings                          : Joint stereo
Duration                                 : 3 min 57 s
Bit rate mode                            : Variable
Bit rate                                 : 111 kb/s
Minimum bit rate                         : 8 000 b/s
Channel(s)                               : 2 channels
Sampling rate                            : 22.05 kHz
Frame rate                               : 38.281 FPS (576 SPF)
Compression mode                         : Lossy
Stream size                              : 3.16 MiB (100%)
Writing library                          : LAME3.100
Encoding settings                        : -m j -V 2 -q 0 -lowpass 11 --vbr-new -b 8

Foobar file properties
Code: [Select]
File name : TEST.mp3
Folder name : C:\Users\xxxxxx\Music
File path : C:\Users\xxxxxx\Music\TEST.mp3
Subsong index : 0
File size : 3.15 MB (3 308 641 bytes)
Last modified : 2019-11-01 15:17:13
Duration : 3:57.547 (5 237 904 samples)
Sample rate : 22050 Hz
Channels : 2
Bitrate : 111 kbps
Codec : MP3
Codec profile : MP3 VBR V2
Encoding : lossy
Tool : LAME3.100
Embedded cuesheet : no
<ENC_DELAY> : 576
<ENC_PADDING> : 816
<MP3_ACCURATE_LENGTH> : yes
<MP3_STEREO_MODE> : joint stereo
Who are you and how did you get in here ?
I'm a locksmith, I'm a locksmith.

Re: MP3 conversion not outputting selected quality

Reply #4
I can't add anything to the discussion other than to report that LAME 3.99r does the same thing (screenshot #1).
-S --noreplaygain -V 4 - %d

Based on the output bitrate, ffmpeg doesn't (screenshot #2).
-i - -ignore_length true -c:a libmp3lame -q:a 4 -id3v2_version 3 %d


Re: MP3 conversion not outputting selected quality

Reply #6
Are you using the "internal" or "external" encoder?
Maybe there are differences in version?


If you select the fb2k mp3 encoder preset and choose a quality, then select "custom" from the drop down list at the top, fb2k fills in the appropriate command line based on your settings (the same applies to the other fb2k encoder presets). So unless you specify a different encoder file path after choosing "custom", it should be the same encoder.


Re: MP3 conversion not outputting selected quality

Reply #8
So unless you specify a different encoder file path after choosing "custom", it should be the same encoder.
Good to know, thank you!

Re: MP3 conversion not outputting selected quality

Reply #9
Code: [Select]
[...] MPEG-2 Layer III [...]
lame.exe 32bit corrupt? lame linux 64 is OK - mpeg1.
Are you using the correct sample rate for your test. It should be MPEG-2 Layer III for 22.05kHz
Who are you and how did you get in here ?
I'm a locksmith, I'm a locksmith.