From 4c0b6f35959acd6c04352179bda8b520605bbb48 Mon Sep 17 00:00:00 2001 From: Romain Biard Date: Wed, 16 Nov 2016 12:49:33 -0300 Subject: [PATCH] Fixed a bug in the way the input file is passed to the waveform request --- src/FFMpeg/Media/Waveform.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/FFMpeg/Media/Waveform.php b/src/FFMpeg/Media/Waveform.php index 062d006..feb26b3 100644 --- a/src/FFMpeg/Media/Waveform.php +++ b/src/FFMpeg/Media/Waveform.php @@ -82,10 +82,9 @@ class Waveform extends AbstractMediaType * @see http://ffmpeg.org/ffmpeg.html#Main-options */ $commands = array( - '-i', 'input', '-filter_complex', + '-i', $this->pathfile, '-filter_complex', 'showwavespic=s='.$this->width.'x'.$this->height, - '-frames:v', '1', - $this->pathfile + '-frames:v', '1' ); foreach ($this->filters as $filter) {