damianociarla / node-ffmpeg

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

Empty information when filename have a space character #52

Open Yggdragstyle opened 6 years ago

Yggdragstyle commented 6 years ago

Hello,

I've a problem to read a movie information with space in the name (only space, no problem with special char same coma and other.. ) When this module try to read this movies, I got a obejct with empty properties like this :

video { filename: '',
  title: '',
  artist: '',
  album: '',
  track: '',
  date: '',
  synched: false,
  duration: { raw: '', seconds: 0 },
  video:
   { container: '',
     bitrate: 0,
     stream: 0,
     codec: '',
     resolution: { w: 0, h: 0 },
     resolutionSquare: { w: 0, h: NaN },
     aspect: {},
     rotate: 0,
     fps: 0,
     pixelString: '',
     pixel: 0 },
  audio:
   { codec: '',
     bitrate: '',
     sample_rate: 0,
     stream: 0,
     channels: { raw: '', value: '' } } }

But if I try to read it directly with "ffmpeg -i", I got the right information ! Apparently this function Stringify the filename received in params, and ironically if I copy this file name on this command > ffmpeg -i "this name" on command line, this work fine !?

I use Powershell on Windows 10, I've not try on Linux or Mac. I'm French, sorry if I not speak correctly English.