Skip to content

Instantly share code, notes, and snippets.

@rubenkr
Created September 2, 2020 10:21
Show Gist options
  • Save rubenkr/bd5a63684c8361a092d7f8d711b615b0 to your computer and use it in GitHub Desktop.
Save rubenkr/bd5a63684c8361a092d7f8d711b615b0 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "$(date): Script started with paramters {$1} and {$2}" >> /home/recordings.log
newfile=$(cut -c -4 <<<"$2")
path="$1"
#/usr/bin/ffmpeg -i "{$1}/{$2}".mkv -codec copy "{$1}/{$newfile}".mp4
# iOS compatible
/usr/bin/ffmpeg -i "{$1}/{$2}".mkv -c:v libx264 -crf 23 -c:a aac -movflags faststart "{$1}/{$newfile}".mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment