Skip to content

Instantly share code, notes, and snippets.

@pgsin pgsin/commands.sh

Last active Feb 14, 2018
Embed
What would you like to do?
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
<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
You can’t perform that action at this time.