lib/capabilities.js
function(ffprobe, cb) {
        if (ffprobe.length) {
          return cb(null, ffprobe);
        }

        self._getFfmpegPath(function(err, ffmpeg) {
          if (err) {
            cb(err);
          } else if (ffmpeg.length) {
            var name = utils.isWindows ? 'ffprobe.exe' : 'ffprobe';
            var ffprobe = path.join(path.dirname(ffmpeg), name);
            fs.exists(ffprobe, function(exists) {
              cb(null, exists ? ffprobe : '');
            });
          } else {
            cb(null, '');
          }
        });
      }
function(ffprobe, cb) {
        if (ffprobe.length) {
          return cb(null, ffprobe);
        }

        self._getFfmpegPath(function(err, ffmpeg) {
          if (err) {
            cb(err);
          } else if (ffmpeg.length) {
            var name = utils.isWindows ? 'ffprobe.exe' : 'ffprobe';
            var ffprobe = path.join(path.dirname(ffmpeg), name);
            fs.exists(ffprobe, function(exists) {
              cb(null, exists ? ffprobe : '');
            });
          } else {
            cb(null, '');
          }
        });
      }
function ( ffprobe , cb ) { if ( ffprobe . length ) { return cb ( null , ffprobe ) ; } self . _getFfmpegPath ( function ( err , ffmpeg ) { if ( err ) { cb ( err ) ; } else if ( ffmpeg . length ) { var name = utils . isWindows ? 'ffprobe.exe' : 'ffprobe' ; var ffprobe = path . join ( path . dirname ( ffmpeg ) , name ) ; fs . exists ( ffprobe , function ( exists ) { cb ( null , exists ? ffprobe : '' ) ; } ) ; } else { cb ( null , '' ) ; } } ) ; }
Search in the same directory as ffmpeg
Search in the same directory as ffmpeg