Skip to content

Instantly share code, notes, and snippets.

@jonathanmtran
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save jonathanmtran/a3c56048a8b84fd5f048 to your computer and use it in GitHub Desktop.

Select an option

Save jonathanmtran/a3c56048a8b84fd5f048 to your computer and use it in GitHub Desktop.

Revisions

  1. jonathanmtran revised this gist Dec 3, 2014. 1 changed file with 14 additions and 0 deletions.
    14 changes: 14 additions & 0 deletions ehehehe.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    #!/bin/sh
    ~/bin/egif.sh 3rd Place.mp4 running_man_223-3rd_place
    ~/bin/egif.sh Fall.mp4 running_man_223-fall
    ~/bin/egif.sh Gold.mp4 running_man_223-gold
    ~/bin/egif.sh HaHa.mp4 running_man_223-haha
    ~/bin/egif.sh Hugs.mp4 running_man_223-hugs
    ~/bin/egif.sh Jihyo.mp4 running_man_223-jihyo
    ~/bin/egif.sh Kwangsoo.mp4 running_man_223-kwangsoo
    ~/bin/egif.sh Rage 2.mp4 running_man_223-rage_2
    ~/bin/egif.sh Rage.mp4 running_man_223-rage
    ~/bin/egif.sh Revenge.mp4 running_man_223-revenge
    ~/bin/egif.sh Sukjin.mp4 running_man_223-sukjin
    ~/bin/egif.sh Tiger 1.mp4 running_man_223-tiger_1
    ~/bin/egif.sh Tiger.mp4 running_man_223-tiger
  2. jonathanmtran created this gist Dec 3, 2014.
    4 changes: 4 additions & 0 deletions egif.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/bin/sh
    ffmpeg -i "$1" -s 640x360 -c:a copy -an $2.mp4
    # ffmpeg -i "$1" -s 640x360 -c:a copy -an $2.webm
    ffmpeg -i "$2.mp4" -s 640x360 -c:a copy -an -c:v libvpx -b:v 1M "$2.webm"