fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.97k stars 881 forks source link

Utf-8 Paths is not working when adding inputs #1169

Open ahgsql opened 2 years ago

ahgsql commented 2 years ago

Version information

Code to reproduce

 var command=ffmpeg("D:\Yazılım\input.mov").videoCodec('libvpx-vp9').output("out_processed.webm\"').on('progress', function(progress) {
                console.log('Processing: ' + progress.percent + '% done');
              })

(note: if the problem only happens with some inputs, include a link to such an input file)

Expected results

When path contains unicode charachters, there is no problem

Observed results

node:events:368 throw er; // Unhandled 'error' event ^

Error: ffmpeg exited with code 1: "D:\Yaz�l�m\aa.mov": Invalid argument

at ChildProcess.<anonymous> (C:\Yazilim\ffmpeg-araclari\node_modules\fluent-ffmpeg\lib\processor.js:182:22)
at ChildProcess.emit (node:events:390:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
EivydasV commented 1 year ago

try to add this event listener .on('error', (err) => { console.log('An error occurred: ' + err.message); });