Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Check if the input file is provided
- if [ -z "$1" ]; then
- echo "Usage: $0 <input_video_file>"
- exit 1
- fi
- # Get the input file name without the extension
- input_file="$1"
- base_name=$(basename "$input_file" | cut -d. -f1)
- # Convert the video to .webm format
- ffmpeg -i "$input_file" "${base_name}.webm"
- echo "Conversion complete: ${base_name}.webm"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement