I am trying to create a waveform image using ffmpeg.
I have successfully created a waveform image, however this does not look very good ...
I was looking to try to create an image so that it looks better, but I could not find any information about this or about any textbooks on this subject.
I use PHP and shell_exec to create a waveform.
I know there is a php library that can do this, but because of the file format, this is a lengthy process.
The code I use is as follows:
$command = 'convertvid\bin\ffmpeg -i Temp\\'.$file.' -y -lavfi showwavespic=split_channels=0:s='.$width.'x50 Temp\\'.$PNGFileName; shell_exec($command);
Basically, I would like to add a line through the middle, because at the moment there are empty places, and I would like to set the background and color of the wave.
source share