Below is my code for trying to retrieve a video from an url and saving it as an adio file on my local disk. but it has an Error on input file. Does it mean that this package does not support urls ?
try {
var process = new ffmpeg("http://www.url.mp4");
process.then(function (video) {
// Callback mode
console.log('video', video);
video.fnExtractSoundToMP3('localpath.mp3', function (error, file) {
console.log('files is', file);
if (error) console.log(error);
if (!error)
console.log('Audio file: ' + file);
});
}, function (err) {
console.log('Error: ' + err);
});
} catch (e) {
console.log(e.code);
console.log(e.msg);
}
Below is my code for trying to retrieve a video from an url and saving it as an adio file on my local disk. but it has an Error on input file. Does it mean that this package does not support urls ?