convert.sh
1#!/bin/bash
2
3# get input file from the command line
4input_file="$1"
5
6# checkiing if the input file exists
7if [ ! -f "$input_file" ]; then
8 echo "Error: Input file not found."
9 exit 1
10fi
11
12# set the output file name
13output_file="${input_file%.*}.mov"
14
15# run the ffmpeg command
16ffmpeg -i "$input_file" -c:v copy -c:a pcm_s32le "$output_file"