You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
input_video=$1 ##video file is passed to the script as the first argument on execution
output_dir="$(dirname $input_video)"/ ##the path containing the video file is determined in order to output the converted file to it's original location
output_video="$(basename "$input_video" "${input_video#*.}")"mov ## the file extension is changed from it's original to .mov
output="$output_dir""$output_video" ##the output path + filename are combined
ffmpeg -i "$input_video" -vcodec mjpeg -q:v 2 -acodec pcm_s16be -q:a 0 -f mov "$output" ##conversion to .mov motionjpeg video using ffmpeg