forked from pwgen2155/dawdle
12 lines
338 B
Bash
Executable file
12 lines
338 B
Bash
Executable file
#!/bin/bash
|
|
|
|
rm /opt/dawdlerpg/site/static/map.mp4;
|
|
|
|
ffmpeg -framerate 3 -pattern_type glob -i '/opt/dawdlerpg/map/*.png' \
|
|
-c:v libx264 -pix_fmt yuv420p \
|
|
/opt/dawdlerpg/site/static/map.mp4
|
|
|
|
now=$(date -u)
|
|
|
|
sed -i "s/{% with timelapse='.*' %}/{% with timelapse='${now}' %}/" /opt/dawdlerpg/site/dawdle/templates/dawdle/timelapse.html
|