PNG To Video

From Hack Sphere Labs Wiki
Jump to: navigation, search

capture script

#!/bin/bash
while :
do
	scrot
	sleep 1
done

ffmpeg command

#!/bin/bash
#manuall set to 10/1 or 10 frames a second
ffmpeg -r 10/1 -pattern_type glob -i '*.png' -vcodec libx264 -pix_fmt yuv420p -r 25 output.mp4