#!/bin/bash # get input file from the command line input_file="$1" # checkiing if the input file exists if [ ! -f "$input_file" ]; then echo "Error: Input file not found." exit 1 fi # run the ffmpeg command ffmpeg -i "$input_file" -c:v copy -c:a pcm_s32le "${input_file%.*}.mov"