Google Video Viewer

Google has released Google Video Viewer, a browser plugin based on VLC. Here’s one of the features they’ve added:

+    // Google mods
+    const char* allowed_host = "video.google.com";
+    char * host_found = strstr(p_sys->url.psz_host, allowed_host);
+    if ((host_found == NULL) ||
+	((host_found + strlen(allowed_host)) !=
+	 (p_sys->url.psz_host + strlen(p_sys->url.psz_host)))) {
+      msg_Warn( p_access, "invalid host, only video.google.com is allowed" );
+      goto error;
+    }

This “feature” prevents you from playing videos that are not hosted on Google’s servers. Download and run this patch I wrote to remove this restriction. Running the patch requires a .NET runtime.

Update: Journalists never cease to amaze me with their ability to blow things out of proportion. For the record, I haven’t spoken to or exchanged emails with a single journalist about this, so when the Associated Press writes “said he needed only one day” that’s a complete and utter fabrication since I’ve said no such thing here on my blog.

Some of you have requested the source code for the patch: GVVPatch.cs

64 thoughts on “Google Video Viewer

  1. Brian

    VLC already has a Mozilla-compatible plug-in. Why do we need the hacked up Google version to play their videos?

  2. Andrew Palfreyman

    That was quick – kudos!
    Do you know what protocol the Google player is using? it’s obviouslty 2-way, but is it HTTP or RTP or perhaps both?

    Andrew

  3. JonLech

    Brian:

    The Mozilla plugin in the latest release (0.8.2) of VLC doesn’t include support for the MIME type (application/x-google-vlc-plugin) that Google is using (it has been added to trunk).

    Another difference is that Google is paying patent royalties on both MPEG4 ASP and MPEG4 AVC.

    Andrew:

    HTTP only. Here’s a list of the VLC modules that Google has included: help, memcpymmx, i420_rgb_mmx, i422_yuy2_mmx, i420_ymga_mmx, i420_yuy2_mmx, memcpymmxext, memcpy3dn, access_http, access_tcp, aout_directx, avi, dummy, ffmpeg, glwin32, hotkeys, ipv4, logo, memcpy, normvol, opengl, playlist, rc, s16tofloat32, showintf, trivial_channel_mixer, trivial_mixer, ugly_resampler, wingdi, dshow, vout_directx

  4. Jon Gales

    That’s curious that they introduce a new video player that is open source and stick in something so lame. If they want people to use their player, they should let it play any type of video from any server.

  5. Brian Turner

    It sounds like an interesting piece of work, but I’m curious as to people who apply the patch will be liable for prosecution for infringement?

  6. Passy

    Hi Jon,

    I have been following your good fights over in Norway. Got the link to your site from Dagbladet’s front page, well done.
    Now I just have a question, if the google video player is based on vlc isn’t possible to just get a plug-in for the normal vlc player to play videos from their server, or do we have to download their player and then remove the restrictions with your patch?

  7. Alex

    Any chance you could pub the source code for your patch? For us budding .NET enthusiasts out there:)

    -Alex

  8. Jon

    Jon – you’re always thinking outside the box. I’m not exactly sure the purpose of this one. I’ve been wondering why no one has utilized the lightest player around VLC.

    Also, just curious if you think a real MS crack is possible – the Japanese seem to have had some success with it. I’m all for DRM, it it’s invisible and doesn’t limit me in any way (which i know is impossible). DRM has a place in history :)

  9. Ed Campbell

    Looking at your notes, it still looks like Mac and Linux types are left out. Since we’re not likely to be running a version of VLC that requires .NET runtime.

  10. eight

    Jon!

    You have done it again! First and foremost, down with all DVD/video/DRM encryption!
    Secondly, they will never stop you! A computer program is only as good as it’s programmer!
    You will always find flaws to exploit when people put faith into digital rights management (DRM). When will America stop pushing DRM onto the rest of the world. Yes, piracy is bad, however strict DRM will harm “fair usage”. How the hell is my parents supposed to play a DRM CD-ROM that requires Windows XP when I can’t even get them to upgrade from Windows 98 to Windows XP? (Yes, I had them on XP, they hated it, so back on 98 they went).

  11. Lucas Gonze

    Jon –

    Have you submitted your patch back to the source tree? I’d like to see Google’s reaction to that, since their restricting the domain of sources to Google is so obviously selfish.

    I wonder if Google’s mods to VLC included a port to make the plugin work under ActiveX? I remember seeing a feature request in the VLC bug database for that. The response was it was too much work to happen anytime soon, so if Google contributed that work back to the VLC root tree then they did something useful.

  12. DaBlade

    Hey Jon
    Mind releasing a version for Linux too? The google video search sounds cool. Found some interesting, but unplayable stuff. :(
    I use Kubuntu Linux BTW. :)
    Nice job releasing it so quickly by the way. I’m amazed :D
    Jeg er forresten en stor fan av deg. Jeg ba SlyckTom spør deg beskrive uttrykkene på MPAA’s ansikter da du vant. :)
    Jeg liker forresten den nye designen på siden din. Jeg kjører wordpress også, på linuxp2p.com/blog. :)
    Keep up the good work :)

  13. Mauricio

    Unfortunately for you the press has made an enormous deal about this patch claiming you have struck again :) It normally would not be a big deal but people who do not read the blog think you yourself are claiming to have written some marvelous hack. The result is a lot of misdirected hate…

  14. Damon Thompson

    Very nice job and I agree, the various news groups did blow this waay outta proportion. Once again, very nice job.

  15. NuclearFury

    I do agree, the media does always tend to make more of things then what they really are, Jon here just enjoys doing this stuff, and he likes open source software, nothing really bad with that.

  16. Jon Myrstad

    Hei Jon,

    Jeg har alltid vært imponert over alt du har gjort. Morsomt hvordan f.eks. It-avisen nærmest reklamerer for den patchen her. Takk skal du ha må jeg nesten si.

    Er på samme måte som deg en liten data-entusiast i tidlig alder (16-åring nå, begynte som 11-åring). Men har for det meste holdt med innenfor web-programmering da.

    Gleder meg til neste til du kommer opp med av crack/addons/patch. Nyter også å lese bloggen din, vel-formulert, innholdrik og ikke minst morsom.

    Nais navn foreldrene dine gav deg
    Jon Myrstad

  17. Tony E

    Well, this news is now on Engadget so get ready for a bunch of blogs adding to the hype. I admit, it does make fo an interesting story: Young man “hacking” software of one of the biggest media companies in the world. What’s next Jon???

  18. Magnus 'Calva'

    Thanxx a lot Jon. This makes it a bit more amusing and usefull :-)

    Just thinkin’… Totally another ball game, but still… Could you possibly create something that takes care of the ‘Aurora’, the spy ware (pop up, with ads), which just annoys 1000 of people around the world… And is damn hard to get rit off. A way to get rit of it and a way to ‘punish’ these boys who makes lots of dollars on this shit…

    Just a thougt… Håber du nyder din sommer og kan slippe lidt ud i solen ;-)

    //Magnus

  19. Deelight

    Amazing, most of the french press talks about it !
    Also, I love Google’s reaction (on http://news.com) : “It could result in security vulnerabilities on their computer and may disrupt their computer’s ability to access Google Video”. Do they really understand their own code ?

  20. Herminio Gonzalez

    Kudos to you for the reverse-engineering, Jon.

    Google must at least be quite pleased at the publicity they are getting from this controversy.

    In fact, I only learned about the existence of Google Video after I read the article on ElReg.

  21. David

    From Google’s own licensing agreement -
    “You may redistribute it and/or modify it under the terms of the GPL; either version 2 of the license, or (at your option), any later version.”

    Not really sure what the hubbub is all about, and I’m not one to be a ‘free everything’ fanboy.

  22. skat1980

    I followed your link about the press – thought you’d like to know it ran in today’s (06.30.05) Hollywood Reporter also.

  23. Muad'Dib

    Well, patching something like that can’t be difficult.

    I do not know how this is in other countries, but I expect that it is limilar to the situation in Slovakia, EU.

    You, IMHO, can *freely* apply a patch to any “computer program”; however, you may not be able to use the patched “computer program” afterwards. But patching itself does not necessarily lead to litigation.

  24. hriata

    Not to all this may not be the big Deal! but u know in my collage this a big feast ! great work keep up the good work! long life !

  25. Alvin

    Good job! As Herminio said, I’ ve just learned about GV after reading this page… IMHO, maybe Google needs to change their minds, it seems that bright dream of a good browser and related services has died to stocks and nasdaq, they should turn back to good programming as their goal.

  26. Mangykid

    Not to hijack your post comments or anything, I just have an idea here, I didn’t know where to put it, and figured you would be the best person to tell this kind of thing.

    I was thinking, couldn’t you have a program take the AAC files from itunes and make an audio CD iso? I guess it would be possible to create a virtual cd-burner, much like current virtual drives, but it has a setting to produce isos from whatever program accesses it, rather than burning. Ie: pick it in itunes to burn to and it produces the iso or bin and cue or whatever would be easiest to a previously specified folder. After making an iso you could simply mount that and convert from it. This would also possibly enable you to convert MORE songs at a time, as the audio cd iso wouldn’t necessarily have to be only 700 megs (depending on what you use to mount it I guess, unfortunately I don’t think iTunes lets you go over 700 megs anyway). It would also keep the quality slightly higher, completely digital re-encoding rather than digital to sort-of analog cd back to digital.

    You could even take it a step further and have the whole thing mostly automated, the virtual drive produces isos to a certain folder after you use it to burn in itunes, then you start up another program that automatically checks the folder, you pick the newest iso, mount it and it convert the files to mp3.

    It isn’t exactly directly circumventing protection, maybe. Seems like this would be a pretty gray area as far as the law is concerned, especially with whatever they’re doing to change the DMCA.

    Oh well, just a thought. If anyone can do this, you can.

  27. Jason

    Anyone else having problems with video playback? I just get a big G and then no video, but I get the audio, any suggestions?

  28. Mike Conner

    Hi Jon,

    First of all, I would like to congratulate you for the Superb Work and the great benefit that the Internet society has gained from your stunts. Indeed, any effort to withhold any information….

  29. Lan Fisher

    ># TopherTony2 says:
    >June 30th, 2005 at 3:58 am
    >
    >Who does google pay the mpeg royalties to? Someone owns that?

    From my understanding, Google pays royalties to YOU, the owner of the video. They will only do this if you set a fee for viewing your video. When you upload a video to Google they will ask if you would like to set a fee for viewing the video, and how much. Even if you tell Google that you will offer the video for free, if the video becomes very popular and many people start to view it, Google may impose a fee on their own for the cost of bandwidth, and give you royalties as well.

    That is my understanding. If I’m wrong, I’m sure someone will let me know. ;)

    Lan

  30. Amato

    - – - – - – - – - – - – - – - – - – - -
    Pozdrowienia z POLSKI :)
    - – - – - – - – - – - – - – - – - – - -
    Greetings from Poland ;)
    - – - – - – - – - – - – - – - – - – - -

  31. Rod

    Patches – OK – That`s done

    Now, I`d like to see a few speculative remarks about the Google Video scheme per se. That is, Is the venture good, bad, indifferent?

    Rod

  32. budding geek

    Could someone point me to somesort of text that will explain the process of knowing what to look for in the code so it could be altered? I’m interested in how were byte values were deterimed too.

    Thank you!

    Great work!!!

  33. Omar

    I searched a long for ur site and voila i found it… cool coz i heard about u that u patched the google viewer

  34. Ruben

    so is there a way to make the google player available to poste perhaps on a myspace?

Comments are closed.