Posts Tagged ‘youtube’

8-Bit Trip Down Lego Lane

Jess Gurr - August 25th, 2009

Continuing with the Team Rubber Lego obsession, I present you with the “8-Bit Trip”. These are some really insanely clever guys.

0 8 Bit Trip Down Lego Lane

“Now I’ve seen some good Lego animations, but this one takes the 8 Bit biscuit!!!” (via @daviddarnes)

YouTube, Google and counting views.

Tim Wintle - March 13th, 2009

As many people in industries such as ours will have noticed – YouTube is being slow at updating the view count for some videos at the moment. Luckily we have our own numbers to go by, so it’s not affecting us as much as it is affecting many companies, but I thought I’d put my explanation up here so we can refer people to it.

According to youtube, this seems to be due to an algorithm change made on the 25th of February. (they have made similar comments elsewhere)

Quote:

We’ve made a change in our public-facing view counts across the site
that will enable us to consistently reflect what is considered a
‘view,’ based upon video consumption, video streaming and spam
filtering. This only affects view counts from February 25 moving
forward.Implementing this change also caused view count updates to slow down a
bit in general; many people have noticed this and we’re aware of the
issue.

This raises some very interesting points (these are my observations, have not been confirmed with Google and may not reflect the opinions of Team Rubber):

First, for people who don’t deal with software like this every day (like I do for the viral ad network), I’ll explain the common way that numbers like this are updated:

  • There are one or more “tracking servers”, running all over the place – these are the servers that actually record a “view”, “hit”, or “action” – and they simply record lots of information about each action, which will be looked over later.
  • Every few minutes the main algorithm runs over all the data it hasn’t looked at yet and updates the numbers that are shown on the dashboards.

The important thing to notice is that the views are recorded right at the beginning and they will be updated at some point. Even if the main algorithm is stopped entirely for a few days, it will carry on in the future if you’re patient.

Prioritizing videos (“Why does this only happen once I reach 200/300 views?”)

You may have noticed that the number of views per video has always been updated quicker for videos with few views than for videos with more views. For example, a newly uploaded video will normally update it’s view count within a few minutes of a video being watched, where a video that has already had several thousand views will update it’s view count more slowly.

This suggests that when Google run their main script, they tend to update the numbers for videos with less views more often than for videos with a higher number of views – and leave the other data to be processed less often (say every few hours)

This makes a lot of sense, because  people with 50 views are more likely to be watching their numbers every few minutes to see if they have another 5 views than people who have had 200,000 views – who may only care about their views increasing by 1,000. It keeps users happier.

This explains why we (and others affected by this issue) have seen view counts rising as normal until they get above 200-300 views – at which point the numbers appear “stuck”.

Balancing the work (“Why doesn’t this affect all videos?”)

Clearly a massive site like YouTube getting so many views need more than one computer running to update these numbers. I’m going to assume that Google run this over their normal map-reduce system.

They may tens, hundreds, or even thousands of computers running their view-counting algorithm (and I don’t expect to ever find out…), but all views for a video have to be counted by the same computer, so they need some manner of splitting up the millions of views they have recorded into batches of work to be done.

They almost certainly do this using some form of hash function – you can picture this as saying that every video on YouTube is grouped into various buckets – each of these buckets will have it’s views processed on the same machine (or at the same time).

The problem comes when a hash function doesn’t split up the items equally (i.e. one “bucket” has significantly more/less videos in it than another one). This appears to be the problem here – only some videos have been affected, and my assumption is that this is because one of these “buckets” has ended up with far more views than the others – meaning that one set of machines (or one job) gets over-loaded and ends up being incredibly slow.

Lessons Learned

For me, working with a similar system to the above, the number one thing that I have learned is that for tasks like this that might be incredibly sensitive to hash functions it’s not safe to assume that a hash function that’s theoretically good is going to remain good.

I don’t know if they are able to,  but the situation would be better if YouTube chose the hash function at the beginning of each main job. I.e. each time that they run the main script that updates the information on the dashboards, they chose to use a different hash function. This way, if a video ends up in a bucket that’s overloaded one time, it will end up in a different bucket next time (which shouldn’t be overloaded).

Of course, this is all theoretical, and is based on a large number of assumptions – YouTube may perform their hashing at a far earlier stage, and they may not be able to change the hash function each time they run the job.

Tim Wintle

We Made it to Number 1!

Jenny Hardy - March 5th, 2009

Congratulations to the team! A mix of good content and hard work has been getting us some awards for our Rubber Republic YouTube channel. This week we’ve made it to number 1 most viewed UK channel, Gurus!
picture 76 We Made it to Number 1!

Happy New Year- Best and not so best New Year messages

Jenny Hardy - January 5th, 2009

My Best is Electrabel

0 Happy New Year  Best and not so best New Year messages

Electrabe’s pixilation using 288,000 individual candles. Pixilation and stop motion techniques have been around since the 1900′s. The techniques seam to be growing in popularity, with all the new technology and software that has made these techniques available to any person in their bedroom. It is pushing creatives to think harder and for the final creation to prove beyond doubt that a lot of time was spent on this! This reminds me of all those domino rallies in the 80′s, there must be an universal fascination with finicky tasks that take up a lot of time. When it works it looks like Electrabel and when it tries to hard it’s “Happy New Year! (2009) in HD”

My not so best is Happy New Year! (2009)
0 Happy New Year  Best and not so best New Year messages

This guy having a go in his room is commendable FlippyCat’s channel has 1,026,401 views and currently the 5th most viewed all time for Canada.

Which is the more successful new years message?

Removing the new YouTube Search Box

Tim Wintle - December 4th, 2008
YouTube added a new search box to the youtube embedded player today.

Update: YouTube appear to have listened to users’ comments, and made a second update in a day – the search box now only displays when you hover over the video.

Here’s what it looks like:

0 Removing the new YouTube Search Box

Understandably, many people might want to remove this “feature” – so here’s how:
(The YouTube api has been updated to mention this, so it appears to be a supported method)

  1. In your embed code, find the url for the flash player (it is in there twice if you are using the standard YouTube embed code)
  2. Add the parameter showsearch=0 (by adding “&showsearch=0″ to the url)
  3. There is no step three – the video shouldn’t be showing the search box any more.

The video should now look like this:

0 Removing the new YouTube Search Box

Code:

<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″ width=”425″ height=”344″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0″><param name=”allowFullScreen” value=”true” /><param name=”allowscriptaccess” value=”always” /><param name=”src” value=”http://www.youtube.com/v/4Cq4O_z5Blo&hl=en&fs=1&showsearch=0″ /><embed type=”application/x-shockwave-flash” width=”425″ height=”344″ src=”http://www.youtube.com/v/4Cq4O_z5Blo&hl=en&fs=1&showsearch=0″ allowscriptaccess=”always” allowfullscreen=”true”></embed></object>

I’m sure some people will find that useful when they look at their blogs today …

Tim W

Data-Mining YouTube

Tim Wintle - February 13th, 2008

We have been having a look at the number of views that various YouTube videos recieve, and we’ve had some pretty interesting results.

You can read the reports over on Viral Manager, but in the meanwhile, you can get a good idea of the main findings in this youtube video.