Skip to content

Commit

Permalink
feat(symlinks): add alias to convert video to MP4
Browse files Browse the repository at this point in the history
  • Loading branch information
trystan2k committed May 26, 2022
1 parent ec77c16 commit e5a877d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions symlinks/.aliases
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,10 @@ function dl_github_sub() {
rm -rf "./$folder/.svn"
}

# Convert a video file to MP4 using ffmpeg
function convert_to_mp4() {
ffmpeg -i "$1" -c:v libx264 -c:a aac -movflags +faststart -vf format=yuv420p "${1%.*}.mp4"
}

#shellcheck source=/dev/null
[ -f "$HOME/.aliases.local" ] && source "$HOME/.aliases.local"

0 comments on commit e5a877d

Please sign in to comment.