Title is pretty self-explanatory. I'm having trouble with paths that have spaces in them.
import ffmpeg from "ffmpeg"
try {
let process = new ffmpeg("C:\\Users\\JR\\Desktop\\new folder\\test.m4a");
process.then(video => {
video.save("C:\\Users\\JR\\Desktop\\test.mp3", (error, file) => {
if (!error) {
console.log("converted!");
} else {
console.log("uh oh error: " + error);
}
});
},
error => {
console.log("Error: " + error);
});
} catch (error) {
console.log(error.code);
console.log(error.msg);
}
Below are all the variations I've tried. They all result in either an error from the module itself saying "The input file does not exist" or an error from ffmpeg saying "No such file or directory".
let process = new ffmpeg("C:\\Users\\JR\\Desktop\\new folder\\test.m4a");
let process = new ffmpeg('C:\\Users\\JR\\Desktop\\new folder\\test.m4a');
let process = new ffmpeg('"C:\\Users\\JR\\Desktop\\new folder\\test.m4a"');
let process = new ffmpeg("C:/Users/JR/Desktop/new folder/test.m4a");
let process = new ffmpeg('C:/Users/JR/Desktop/new folder/test.m4a');
let process = new ffmpeg("C:\\Users\\JR\\Desktop\\new\ folder\test.m4a");
let process = new ffmpeg('C:\\Users\\JR\\Desktop\\new\ folder\test.m4a');
And probably several other variations that I'm forgetting. Any ideas?
Title is pretty self-explanatory. I'm having trouble with paths that have spaces in them.
Below are all the variations I've tried. They all result in either an error from the module itself saying "The input file does not exist" or an error from ffmpeg saying "No such file or directory".
And probably several other variations that I'm forgetting. Any ideas?