Skip to content

Does this package support URLs ?  #46

@allMighto

Description

@allMighto

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);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions