Fixed a bug in the way the input file is passed to the waveform request

This commit is contained in:
Romain Biard 2016-11-16 12:49:33 -03:00
commit 4c0b6f3595

View file

@ -82,10 +82,9 @@ class Waveform extends AbstractMediaType
* @see http://ffmpeg.org/ffmpeg.html#Main-options * @see http://ffmpeg.org/ffmpeg.html#Main-options
*/ */
$commands = array( $commands = array(
'-i', 'input', '-filter_complex', '-i', $this->pathfile, '-filter_complex',
'showwavespic=s='.$this->width.'x'.$this->height, 'showwavespic=s='.$this->width.'x'.$this->height,
'-frames:v', '1', '-frames:v', '1'
$this->pathfile
); );
foreach ($this->filters as $filter) { foreach ($this->filters as $filter) {