Spaces:
Running
Running
File size: 628 Bytes
2302206 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
#!/bin/bash
# Install FFmpeg if not already installed
if ! command -v ffmpeg &> /dev/null
then
echo "FFmpeg not found, installing..."
apt-get update && apt-get install -y ffmpeg
else
echo "FFmpeg is already installed"
fi
# Install FFprobe if not already installed (should come with FFmpeg but checking to be safe)
if ! command -v ffprobe &> /dev/null
then
echo "FFprobe not found, installing..."
apt-get update && apt-get install -y ffmpeg
else
echo "FFprobe is already installed"
fi
# Make sure the script has appropriate permissions in case it needs execution
chmod -R 755 .
echo "Setup complete!" |