0

I am trying to convert the following file to wav audio using FFMPEG

Input File

const ffmpeg = require('fluent-ffmpeg');
ffmpeg()
        .input('https://github.com/cleancoder7/FFmpeg-Playground/blob/master/audio_file.mp4?raw=true')
        .noVideo()
        .format('wav')
        .outputOptions('-ar 16000')
        .outputOptions('-ac 1')
        .on('start', commandLine => console.log(`Spawned Ffmpeg with command: ${commandLine}`))
        .on('error', function (err) {
            console.log('An error occurred: ' + err.message);
        })
        .on('end', function () {
            console.log('Processing finished !');
        })
        .save('converted_out.wav');

But i am getting distorted audio in the output file. What am i missing ??

Sujith
  • 7,543
  • 1
  • 28
  • 38

0 Answers0