Timelapse Patch on a PSG

In the public server game PSG #117 (r14508) I tested the timelapse patch by Roujin. It allows you to create screenshots automatically at a given interval. The screenshots can be converted to a movie with a program like mencoder.

I used a 8x zoom for the global view and 4x zoom for the local views to get small images for a 12×512 map. Additionally I use a 60 day timer for the global view and a 30 day timer for the local views. However these values are not well balanced and depends on the number of clients on the server. In the beginning the server was almost inactive, so the timelapse patch creates a lot of images which are the same. Only small changes has been done. But then the activity is increasing and you see the full potentional of the timelapse patch. BBHs get rebuild, station entries/exits improved and priorities added. You can check all timelapse videos at /videos/timelapse/.

After testing it I can say its a good idea to show everyone how someone (like us) is building a network. But you need 1) an active game and 2) some space on your hard drive…

[19:35] progman@proglap ~/.openttd $ du -ch
5.4M    ./data
16M     ./save/autosave
16M     ./save
1.9G    .
1.9G    total
[19:36] progman@proglap ~/.openttd $ dir | grep timelapse# | wc -l
[19:36] progman@proglap ~/.openttd $

Just to get an impression how many screenshots have been created (10 local views + 1 global view).

9 comments so far

  1. Osai November 4, 2008 23:28

    wow… this is really interesting, which codec did you use? I might convert some videos to show them with our build-in player 🙂

  2. Progman November 5, 2008 12:27

    IIRC I used mpeg2video, but can change it to whatever mencoder is supporting (in the man page there are around 20 codecs). I can change it do an other codec if you name me the value for mencoder (its the “vcodec=” setting)

  3. Thraxian November 5, 2008 14:29

    I am also not able to view these videos, even after downloading and installing an mpeg-2 video codec. I agree with Osai that the videos should be made compatible with a web viewer, like the one we use on this site or YouTube.

  4. Zuu November 5, 2008 20:17

    In my experience mpeg2 videos don’t play in Windows Media Player for some silly reason. VLC play them fine though.

  5. XeryusTC November 5, 2008 20:26

    I’m also not able to play the files even though I have both CCCP and K-lite Codec Pack installed. It seems you should stick to a more generic codec.

  6. Progman November 5, 2008 20:38

    asv1, asv2, dvvideo, ffv1, ffvhuff, flv, h261, h263, h263p, huffyuv, libtheora, libx264, libxvid, ljpeg, mjpeg, mpeg1video, mpeg2video, mpeg4, msmpeg4, msmpeg4v2, roqvideo, rv10, snow, svq1, wmv1, wmv2

    Tell me which one you want (mencoder) and I use it 😉

  7. XeryusTC November 7, 2008 21:47

    Well, something like x264 or mpeg4 should work usually

  8. Progman November 9, 2008 12:17

    I have uploaded them as mpeg2 (*.avi), mpeg4 (*.mpeg4.avi) and wmv1 (*.wmv) now. This should be enought (libdivx and x264 isn’t working here :().

  9. thomashauk November 21, 2008 19:00

    The trees add a lot of noise, I didn’t realise they changed that much!

Leave a comment

Please be polite and on topic. Your email-address will never be published.