This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script combines an image and an audio file into a video using ffmpeg. | |
# It prompts the user for the paths to the image and audio files, an optional | |
# fixed length in seconds, and the output file name. The script ensures that | |
# the paths are properly quoted and constructs the appropriate ffmpeg command. | |
# Function to add quotes around a path if not already present | |
add_quotes() { | |
local path="$1" |