MAD lost sync

Dave
2012-06-05
2013-04-24
  • Dave
    Dave
    2012-06-05

    I'm new to SoX and libMAD, but eager to use the combination for converting MP3 (uploaded from Android phones) to OGG (for browser compatibility and display from a website).

    My first few conversions from OGG to MP3 were successful (using lame and libmad I suppose), but when I go from MP3 to OGG, I get the following error stream:


    # sox mp3.mp3 ogg.ogg
    # sox clip1.mp3 clip1.ogg
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: recoverable MAD error
    sox WARN mp3-util: MAD lost sync
    sox WARN mp3-util: MAD lost sync
    sox FAIL formats: can't open input file `clip1.mp3':


    I'm reading in the forum here how an ID3 tag missing could result in lost sync at beginning or end of the file, but this seems to be happening a lot, and none of the files are successfully converting. Suggestions?

    My SoX version is as follows:

    distill@fijit $ sox -V6 -version
    sox:      SoX v14.4.0
    time:     Jun  3 2012 14:54:59
    uname:    Linux fijit.zatchu.com 2.6.18-028stab099.3 #1 SMP Wed Mar 7 15:20:22 MSK 2012 i686
    compiler: gcc 3.4.6 20060404 (Red Hat 3.4.6-8)
    arch:     1248 48 44 L
    distill@fijit $ sox -version
    sox:      SoX v14.4.0
    distill@fijit $ sox -V2 -version
    sox:      SoX v14.4.0
    distill@fijit $ sox -V3 -version
    sox:      SoX v14.4.0