lib/utils.js
function parseProgressLine(line) {
  var progress = {};

  // Remove all spaces after = and trim
  line  = line.replace(/=\s+/g, '=').trim();
  var progressParts = line.split(' ');

  // Split every progress part by "=" to get key and value
  for(var i = 0; i < progressParts.length; i++) {
    var progressSplit = progressParts[i].split('=', 2);
    var key = progressSplit[0];
    var value = progressSplit[1];

    // This is not a progress line
    if(typeof value === 'undefined')
      return null;

    progress[key] = value;
  }

  return progress;
}
function parseProgressLine(line) {
  var progress = {};

  // Remove all spaces after = and trim
  line  = line.replace(/=\s+/g, '=').trim();
  var progressParts = line.split(' ');

  // Split every progress part by "=" to get key and value
  for(var i = 0; i < progressParts.length; i++) {
    var progressSplit = progressParts[i].split('=', 2);
    var key = progressSplit[0];
    var value = progressSplit[1];

    // This is not a progress line
    if(typeof value === 'undefined')
      return null;

    progress[key] = value;
  }

  return progress;
}
function parseProgressLine ( line ) { var progress = { } ; // Remove all spaces after = and trim line = line . replace ( / =\s+ / g , '=' ) . trim ( ) ; var progressParts = line . split ( ' ' ) ; // Split every progress part by "=" to get key and value for ( var i = 0 ; i < progressParts . length ; i ++ ) { var progressSplit = progressParts [ i ] . split ( '=' , 2 ) ; var key = progressSplit [ 0 ] ; var value = progressSplit [ 1 ] ; // This is not a progress line if ( typeof value === 'undefined' ) return null ; progress [ key ] = value ; } return progress ; }
Parse progress line from ffmpeg stderr

@param {String} line progress line
@return progress object
@private
Parse progress line from ffmpeg stderr