Skip to content

Instantly share code, notes, and snippets.

@kyeah
Last active September 5, 2022 21:59
Show Gist options
  • Save kyeah/f89d4119a5fc2ed57689583186151018 to your computer and use it in GitHub Desktop.
Save kyeah/f89d4119a5fc2ed57689583186151018 to your computer and use it in GitHub Desktop.
Convert mov files to mp4 with specific width for web
for filename in my-folder/*.mov; do; /Applications/VLC.app/Contents/MacOS/VLC -I dummy -vvv "$filename" --sout="#transcode{vcodec=h264,aenc=none,width=2000}:standard{access=file,mux=mp4,dst=${filename%\.mov}.m4v}" vlc://quit; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment