added -y property to ffmpeg when generating waveforms

This commit is contained in:
Ivan Ganev 2017-11-03 12:14:00 +02:00
commit 456d9c6485

View file

@ -134,7 +134,7 @@ class Waveform extends AbstractMediaType
* @see http://ffmpeg.org/ffmpeg.html#Main-options
*/
$commands = array(
'-i', $this->pathfile, '-filter_complex',
'-y', '-i', $this->pathfile, '-filter_complex',
'showwavespic=colors='.$this->compileColors().':s='.$this->width.'x'.$this->height,
'-frames:v', '1'
);