Converter + waveform

naurissteins5013

New Member
YetiShare User
Apr 17, 2015
20
0
1
Hello, there!

This is the code what im using to get waveform from audio files:
Code:
$conversionPathCmd      = FFMPEG_PATH . ' -i ' . $localFile . ' -acodec libmp3lame -ac 2 -ab 96k -ar 44100 ' . $convertedFilename . ' && ffmpeg -i ' . $localFile . ' -filter_complex showwavespic=s=1200x320 ' . '/folder/to/waveform/' . $originalFilename . '.png';
I want to save waveform images in the same name as is file name. How to get working $originalFilename in converter.php?
In _embed.php it's works fine of course:
Code:
<?php echo str_replace(' ', '_', ($file->originalFilename)); ?>
Maybe here is an better solution? Actually I just want to convert image to any name and get working in _embed.php.

Thank you very much!