Skip to content

Instantly share code, notes, and snippets.

@binakot
Created June 22, 2021 10:18
Show Gist options
  • Save binakot/4267736c95b687e0751e5a7968fcc2eb to your computer and use it in GitHub Desktop.
Save binakot/4267736c95b687e0751e5a7968fcc2eb to your computer and use it in GitHub Desktop.

Revisions

  1. binakot created this gist Jun 22, 2021.
    8 changes: 8 additions & 0 deletions mov2mp4.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    #!/bin/sh

    OUTPUT_DIR=./mp4

    for FILE in *MOV
    do
    ffmpeg -i "$FILE" -vcodec h264 -acodec aac "$OUTPUT_DIR/$FILE.mp4"
    done