Skip to content

Instantly share code, notes, and snippets.

@mikeseif
Created September 19, 2016 15:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeseif/a2ca4752e412a40c8c012471b6f88ea8 to your computer and use it in GitHub Desktop.
Save mikeseif/a2ca4752e412a40c8c012471b6f88ea8 to your computer and use it in GitHub Desktop.
Example ffmpeg commands to: inset video into padding, overlay the device art frame (transparent png). In this example, the source screen recordings are from a Nexus 6P at 1440x2560, and the device art is 1564x3258. The x and y values are the coordinates that the actual screen content should originate from in the device art.
ffmpeg -i InputVideo.mp4 -vf "pad=width=1565:height=3258:x=59:y=329:color=white" padded_OutputVideo.mp4
ffmpeg -i padded_OutputVideo.mp4 -i Nexus6P_full.png -filter_complex "overlay=x=0:y=0" OverlayVideo.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment