simple ffmpeg script to convert a video's audio codec to pcm, for davinci resolve studio on linux. run it in the terminal like so: ./convert.sh myawesomevideo.mp4
0
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# run the ffmpeg command
13ffmpeg -i "$input_file" -c:v copy -c:a pcm_s32le "${input_file%.*}.mov"