[Bug 361571] [NEW] mp3 --> raw doesn't work, but mp3 --> wav --> raw works

Gabriel gabriel.rossetti at arimaz.com
Wed Apr 15 09:17:47 UTC 2009


Public bug reported:

Binary package hint: sox

If I try to convert an mp3 to a raw audio file it does not work :

sox file.mp3 -c1 -r8000 out.raw
sox sox: Error writing: this encoding is not supported for this data size
sox sox: resample clipped 3 samples; decrease volume?

but if I use an intermediate wav file (mp3 --> wav --> raw) it works:

sox file.mp3 -c1 -r8000 -t wav - | sox -t wav - out.raw 
sox wav: Length in output .wav header will be wrong since can't seek to fix it
sox sox: resample clipped 3 samples; decrease volume?
sox sox: -: output clipped 2 samples; decrease volume?
sox wav: Premature EOF on .wav input file

(the last msg doesn't seem to cause a problem).

Here is some possibly useful info :

aptitude search sox
p   libsox-dev                                                                                      - Development files for the SoX library                                                                    
i   libsox-fmt-all                                                                                  - All SoX format libraries                                                                                 
i A libsox-fmt-alsa                                                                                 - SoX alsa format I/O library                                                                              
i A libsox-fmt-ao                                                                                   - SoX Libao format I/O library                                                                             
i A libsox-fmt-base                                                                                 - Minimal set of SoX format libraries                                                                      
i A libsox-fmt-ffmpeg                                                                               - SoX ffmpeg format library                                                                                
i A libsox-fmt-flac                                                                                 - SoX FLAC format library                                                                                  
i A libsox-fmt-gsm                                                                                  - SoX GSM format library                                                                                   
i A libsox-fmt-mp3                                                                                  - SoX MP3 format library                                                                                   
i A libsox-fmt-ogg                                                                                  - SoX OGG Vorbis format library                                                                            
i A libsox-fmt-oss                                                                                  - SoX OSS format I/O library                                                                               
i A libsox-fmt-sndfile                                                                              - SoX libsndfile format library                                                                            
i A libsox0                                                                                         - SoX library                                                                                              
i   sox                                                                                             - Swiss army knife of sound processing   

sox version : 14.0.0-5
Ubuntu version : 8.04.2 (all updates installed)

** Affects: sox (Ubuntu)
     Importance: Undecided
         Status: New

-- 
mp3 --> raw doesn't work, but mp3 --> wav --> raw works
https://bugs.launchpad.net/bugs/361571
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list