TooTallNate / node-lame

Node.js native bindings to libmp3lame & libmpg123
MIT License
567 stars 113 forks source link

MP3 file will be speed up and length will be short. #53

Open chestermax01 opened 9 years ago

chestermax01 commented 9 years ago

If I convert a file which have been converted, it will be speed up and length will be short

fs.createReadStream localFilePath
  .pipe new lame.Decoder
  .pipe new lame.Encoder
      bitRate: 24
      outSampleRate: 16000
      mode: lame.STEREO
  .pipe fs.createWriteStream path.resolve uploadDirPath+'/converted.mp3'
loosemoose commented 8 years ago

I am having the same issue, anyone have any info on it?

darkyen commented 8 years ago

I cannot reporduce this, there might be an issue with your sampling rate? Can you make sure your encoder respects what the output gives?

TooTallNate commented 8 years ago

Could somebody provide a sample file and repro code (preferably not in CoffeScript)?