videocaptiontool / setup.sh
hellorahulk's picture
Add video caption app with Whisper auto-captioning and styling options
2302206
raw
history blame contribute delete
628 Bytes
#!/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!"