Zum Hauptinhalt springen

#155 future wish: link to ffmpeg on server

Veröffentlicht in ‘EasySocial’
Dies ist ein öffentliches Ticket

Jeder kann den Inhalt sehen. Geben Sie keine Benutzernamen, Passwörter oder andere sensible Informationen ein.

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

Wir benutzen Cookies
Wir nutzen Cookies auf unserer Website. Einige von ihnen sind essenziell für den Betrieb der Seite, während andere uns helfen, diese Website und die Nutzererfahrung zu verbessern. Du kannst selbst enscheiden, ob du Cookies zulassen möchtest. Bitte beachte, dass bei Ablehnung womöglich nicht mehr alle Funktionalitäten zur Verfügung stehen.