Skip to content

Instantly share code, notes, and snippets.

@pgsin
Last active February 14, 2018 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pgsin/3e5a00f88538b9fc969c9c80aea3d1dd to your computer and use it in GitHub Desktop.
Save pgsin/3e5a00f88538b9fc969c9c80aea3d1dd to your computer and use it in GitHub Desktop.
ffmpeg -i input_video.mp4 -ss 00:00:30 -to 00:00:40 -c:v copy cropped.mp4
convert -depth 8 -resize 50% -background none plate.svg plate.png
ffmpeg -i cropped.mp4 -i plate.png -filter_complex "overlay=0:446:enable=between(t\,1\,9)" plated.mp4
ffmpeg -i plated.mp4 -vf drawtext="fontfile=Arial.ttf: text='Everything is empty, all lies, except this infinite sky': fontcolor=black: fontsize=12: x=200: y=476" result.mp4
Display the source blob
Display the rendered blob
Raw
<svg width="1440" height="200">
<rect fill="rgba(222,222,222,0.5)" x="0" y="20" width="1440" height="160"/>
<rect fill="tomato" opacity="0.75" stroke="grey" stroke-width="2" stroke-dasharray="10,5" x="51" y="1" width="180" height="180"/>
<circle fill="lightblue" opacity="0.75" stroke="grey" stroke-width="2" stroke-dasharray="10,5" cx="359" cy="91" r="90"/>
<polygon fill="lightgreen" opacity="0.75" stroke="darkgray" stroke-width="4" points="160,199 250,43 340,199"/>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment