Hello, there!
This is the code what im using to get waveform from audio files:
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:
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!
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';
In _embed.php it's works fine of course:
Code:
<?php echo str_replace(' ', '_', ($file->originalFilename)); ?>
Thank you very much!