feat: timelapse rework

This commit is contained in:
pwgen2155 2024-03-04 15:37:31 +11:00
parent f7dd063aab
commit 730c96191a
2 changed files with 5 additions and 4 deletions

View file

@ -2,7 +2,7 @@
rm /opt/dawdlerpg/site/static/map.mp4;
ffmpeg -framerate 10 -pattern_type glob -i '/opt/dawdlerpg/map/*.png' \
ffmpeg -framerate 30 -pattern_type glob -i '/opt/dawdlerpg/map/*.png' \
-c:v libx264 -pix_fmt yuv420p \
/opt/dawdlerpg/site/static/map.mp4

View file

@ -8,10 +8,11 @@
Mon, Feb 26 00:05:24 UTC 2024 </p>
{% with timelapse='DEFAULT' %}
<p> Last Generated: {{ timelapse }} </p>
<p> Video @ 30 FPS at 1 minute per frame. (1 second = 30 minutes of gameplay)</p>
{% endwith %}
<video controls width="500"> <source src="/static/map.mp4" type="video/mp4" />
<p> Week 1: <p>
<video controls width="500"> <source src="/static/map-week-1.mp4" type="video/mp4" />
<video controls width="500"> <source src="/static/map.mp4" type="video/mp4" /></video>
<p> Original Week 1: (1 frame is 15 minutes of gameplay) <p>
<video controls width="500"> <source src="/static/map-week-1.mp4" type="video/mp4" /></video>
</div>