Skip to content

Instantly share code, notes, and snippets.

@cfr
Last active August 6, 2019 15:08
Show Gist options
  • Select an option

  • Save cfr/c08899b11ee6105ca24d to your computer and use it in GitHub Desktop.

Select an option

Save cfr/c08899b11ee6105ca24d to your computer and use it in GitHub Desktop.

Revisions

  1. cfr revised this gist Jun 13, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions devert
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,3 @@
    #!/usr/bin/env sh
    # http://stackoverflow.com/a/30819570/187663
    ffmpeg -i $1 -i $1 -filter_complex "[0:v]scale=-1:720[scaled_video];[1:v]scale=1280:720,boxblur=16[blur_image];[blur_image][scaled_video]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2[outv]" -c:v libx264 -aspect 1280/720 -map [outv] -map 0:a -c:a copy $1.fixed.mp4
  2. cfr created this gist Jun 13, 2015.
    2 changes: 2 additions & 0 deletions devert
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #!/usr/bin/env sh
    ffmpeg -i $1 -i $1 -filter_complex "[0:v]scale=-1:720[scaled_video];[1:v]scale=1280:720,boxblur=16[blur_image];[blur_image][scaled_video]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2[outv]" -c:v libx264 -aspect 1280/720 -map [outv] -map 0:a -c:a copy $1.fixed.mp4