[Software] Lame on Debian 12 don't convert wav to mp3

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
UnknownDef
Posts: 3
Joined: 2024-08-30 09:10

[Software] Lame on Debian 12 don't convert wav to mp3

#1 Post by UnknownDef »

I try to convert lame SIP.wav to sip.mp3 and it don't work

SIP.wav is PCM Wave format 6mb and 6 min 51 s

Code: Select all

    Input File     : 'SIP.wav'
    Channels       : 1
    Sample Rate    : 8000
    Precision      : 16-bit
    Sample Encoding: 16-bit Signed Integer PCM

After convert i have sip.mp3 is 1kb and 0min.

What's problem?

Code: Select all

lame sip.wav sip.mp3 --verbose
    LAME 3.100 64bits (http://lame.sf.net)
    Using polyphase lowpass filter, transition band:  3000 Hz -  3097 Hz
    Encoding sip.wav to sip.mp3
    Encoding as 8 kHz single-ch MPEG-2.5 Layer III (16x)   8 kbps qval=3
    
    misc:
    
            scaling: 0.95
            ch0 (left) scaling: 1
            ch1 (right) scaling: 1
            huffman search: best (outside loop)
            experimental Y=0
            ...
    
    stream format:
    
            MPEG-2.5 Layer 3
            1 channel - mono
            padding: off
            constant bitrate - CBR
            ...
    
    psychoacoustic:
    
            using short blocks: allowed
            subblock gain: 1
            adjust masking: 0 dB
            adjust masking short: 0 dB
            quantization comparison: 9
             ^ comparison short blocks: 9
            noise shaping: 2
             ^ amplification: 1
             ^ stopping: 1
            ATH: using
             ^ type: 4
             ^ shape: 11 (only for type 4)
             ^ level adjustement: 30 dB
             ^ adjust type: 3
             ^ adjust sensitivity power: 1.000000
            experimental psy tunings by Naoki Shibata
               adjust masking bass=-0.5 dB, alto=-0.25 dB, treble=-0.025 dB, sfb21=0.5 dB
            using temporal masking effect: yes
            interchannel masking ratio: 0.0012
            ...
    
        Frame          |  CPU time/estim | REAL time/estim | play/CPU |    ETA
         2/2     (100%)|    0:00/    0:00|    0:00/    0:00|   953.64x|    0:00
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       kbps       mono %     long  %
        8.0      100.0       100.0
    ReplayGain: +64.8dB
    WARNING: ReplayGain exceeds the -51dB to +51dB range. Such a result is too
             high to be stored in the header.

I noticed that Lame show only 2/2 Frame. In CentOS7 in this sip.wav Lame shows 1311/1311 Frame and conversion works good.

Please help me to solve problem.
Last edited by UnknownDef on 2024-08-30 13:00, edited 1 time in total.

User avatar
ruwolf
Posts: 923
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 91 times
Been thanked: 71 times

Re: [Software] Lame on Debian 12 don't convert wav to mp3

#2 Post by ruwolf »

Why do you use -t switch?

UnknownDef
Posts: 3
Joined: 2024-08-30 09:10

Re: [Software] Lame on Debian 12 don't convert wav to mp3

#3 Post by UnknownDef »

use -t switch?
I try many switchs and it dont helps....

User avatar
ruwolf
Posts: 923
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 91 times
Been thanked: 71 times

Re: [Software] Lame on Debian 12 don't convert wav to mp3

#4 Post by ruwolf »

What do you see in this command?

Code: Select all

ffprobe -hide_banner -v 40 SIP.wav
(From man page: ffprobe gathers information from multimedia streams and prints it in human- and machine-readable fashion.)

UnknownDef
Posts: 3
Joined: 2024-08-30 09:10

Re: [Software] Lame on Debian 12 don't convert wav to mp3

#5 Post by UnknownDef »

ffprobe -hide_banner -v 40 SIP.wav

Code: Select all

[wav @ 0x5638d0588700] parser not found for codec pcm_s16le, packets or times may be invalid.
[wav @ 0x5638d0588700] max_analyze_duration 5000000 reached at 5120000 microseconds st:0
[wav @ 0x5638d0588700] Estimating duration from bitrate, this may be inaccurate
Input #0, wav, from 'SIP.wav':
  Duration: 00:06:51.65, bitrate: 128 kb/s
  Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s
[AVIOContext @ 0x5638d05912c0] Statistics: 196652 bytes read, 1 seeks
ruwolf wrote: 2024-08-30 13:42 What do you see in this command?
Do u have any ideas?

Post Reply