Skip to main content

#155 future wish: link to ffmpeg on server

Posted in ‘EasySocial’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Podobin

For those who don't know the default location for ffmpeg encoder on their server (administrator/index.php?option=com_easysocial&view=settings&layout=form&page=audios), a few lines php might clarify things. I used the following script to find my path. Perhaps integrate it with a button?

<?php
// Use 'which' or 'type -P' to find the absolute path
$ffmpeg_path = trim(shell_exec('which ffmpeg'));
if (empty($ffmpeg_path)) {
$ffmpeg_path = trim(shell_exec('type -P ffmpeg'));
}

if (!empty($ffmpeg_path)) {
echo "FFmpeg gevonden op: " . htmlspecialchars($ffmpeg_path) . "\n";
// You can now use this path in your further FFmpeg commands
// Example:
// shell_exec($ffmpeg_path . ' -i input.mp4 output.avi');
} else {
echo "FFmpeg not found in system PATH.\n";
}
?>