damianociarla / node-ffmpeg

ffmpeg module for nodejs
MIT License
604 stars 140 forks source link

Audio extration error #80

Open rajatpathak opened 4 years ago

rajatpathak commented 4 years ago
> ffmpeg('./video/2020-05-30-184150929.mp4')
>  //        .output('./video/2020-05-30-fdgfdg1841509sdfsd29.mp3')
>  //        .noVideo()
>  //        .format('mp3')
>  //        .outputOptions(['-map 0:v:0', '-map 1:a:0'])
>  //        .on('end', function() {                    
>  //            console.log('conversion ended');
>  //           return callback(null);
>  //        }).on('error', function(err){
>  //            console.log(err);
>  //            return callback(err);
>  //    }).run();
> 

The video is 30 seconds and I am only getting 3 seconds audio in the output.

Let me know!