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";
}
?>

We use cookies
We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience. You can decide whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.