@mose
To configure ffmpeg with XAMPP in Ubuntu, you can follow these steps:
1
|
sudo apt-get install ffmpeg |
1
|
ffmpeg -version |
1
|
which ffmpeg |
Copy the output of the above command and edit the /opt/lampp/etc/php.ini file using a text editor. Add the following line at the end of the file:
1
|
ffmpeg.bin = /path/to/ffmpeg |
Replace /path/to/ffmpeg with the actual path you copied from the "which ffmpeg" command.
1 2 3 4 |
<?php $output = shell_exec('ffmpeg -version'); echo "<pre>$output</pre>"; ?> |
Save the file in the XAMPP htdocs directory and access it through the browser. You should see the ffmpeg version information displayed on the screen.
With these steps, you should be able to configure ffmpeg with XAMPP in Ubuntu successfully.