Skip to content

Instantly share code, notes, and snippets.

@dansloane
Last active June 13, 2016 14:50
Show Gist options
  • Select an option

  • Save dansloane/21017ea4fd6df4b37eb3b0cde1b23aa4 to your computer and use it in GitHub Desktop.

Select an option

Save dansloane/21017ea4fd6df4b37eb3b0cde1b23aa4 to your computer and use it in GitHub Desktop.

Revisions

  1. dansloane revised this gist Jun 13, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions square_vid_ffmpeg.txt
    Original file line number Diff line number Diff line change
    @@ -3,6 +3,7 @@
    # http://stackoverflow.com/a/20848224

    # Tested on OS X with ffmpeg 3.0.2 via Brew
    # PNG image sequence was 875x875

    ffmpeg -r 25 -f image2 -s 874x874 -i paddedtofive_%05d.png
    -vcodec libx264 -crf 25
  2. dansloane created this gist Jun 13, 2016.
    11 changes: 11 additions & 0 deletions square_vid_ffmpeg.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    # Sources
    # http://hamelot.io/visualization/using-ffmpeg-to-convert-a-set-of-images-into-a-video/
    # http://stackoverflow.com/a/20848224

    # Tested on OS X with ffmpeg 3.0.2 via Brew

    ffmpeg -r 25 -f image2 -s 874x874 -i paddedtofive_%05d.png
    -vcodec libx264 -crf 25
    -pix_fmt yuv420p
    -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" test.mp4