Bus Route Video

After playing around with the code I now have a suitable video of the bus route map being created. Time and file size savings were made by experimenting with the processing MovieMaker class, and also using it more wisely. Firstly it was changed to only add a frame every other time a new stop is added – there are a lot of stops and it runs quite quickly so this is hardly noticed. I also played around with different MovieMaker settings, in the end I found that using ANIMATION (type) and HIGH (quality) gave the best compromise between file size and quality.

The video has a marker that shows where it is currently drawing, which is handy towards the end when the map gets quite crowded. Because of the way I added it in though, it meant that I was re-drawing the whole map each time up to the point of the current stop. This is a very uneconomical way of getting what I was trying to achieve, but as video frames are grabbed only at the end of each draw of the map it made no difference to the video size. What it meant was that it took hours to create. Since making the video I’ve looked more into using buffered windows. A far better way to make the video would have been to build up the map on a buffer and then on each call of draw: clear the screen, add the buffer image, and then place the current position circle. The end result would have been the same though:

Advertisements

3 responses to “Bus Route Video

  1. Any idea of the total distance travelled by the buses?

  2. Hi there great website! Does running a blog such as this take a great deal of work?
    I have virtually no understanding of coding but I was
    hoping to start my own blog soon. Anyways, should you have any suggestions or techniques for new blog owners please
    share. I know this is off subject but I just needed to ask.
    Thanks a lot!

    • This is a WordPress blog, so took very little effort to set up. Just go to their site and sign up, choose a theme, then start blogging. It then all depends on how much you blog as to how much further effort it takes – none if you blog as little as me!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s