More RSS Feeds!

There’s been a couple feature requests to have differentiated RSS feeds and I’m here to announce that the feature is completed.

The resolution-based RSS feeds will contain only download links and enclosures of that particular resolution. If that resolution isn’t available, it’ll fallback to the next highest resolution available.

The trailers / clips only RSS feeds are as the name indicates, it’ll contain only trailers or only clips. I know a bunch of you don’t really care about the clips, so the trailers feed should help you filter those out.

I haven’t found a good way to expose these RSS feeds yet, so for the time being they’ll be displayed on this blog post as well as alternative links inside the <head> of our homepage.

Let us know what you think!

HTML5 Video in Chrome and Safari

We’ve been looking to switch to HTML5 video for sometime, but because Firefox doesn’t support video/mp4 (H.264), we’ve been waiting to see what the final outcome for HTML5 video is. Anyway, I decided to see if there was a way to fall back to Flash if HTML5 mp4 video wasn’t supported.

JW player recently announced that it now supports HTML5 video, with fallback to flash. In concept, it’s a really cool idea. You define if you want to use HTML5 as default and fallback to Flash or vice versa. I created some test pages, but unfortunately, there still seems to be some issues as I was hitting into different bugs running on different browsers.

I then started searching online on how other people dealt with HTML5 video with Flash fallback. Lots of sites recommend including the Flash <embed> or <object> inside the <video> element, but it turns out only browsers that don’t recognize the video tag would render that. In other words if I provided a mp4 video source, it won’t fallback to Flash in Firefox because Firefox recognizes the <video> tag.

After digging around a bit more, the correct logic in JavaScript appears to be:

if( !!document.createElement('video').canPlayType )
{
    var can_play_type = document.createElement('video').canPlayType('video/mp4');
    var browser_supports_mp4 = can_play_type == 'probably' || can_play_type == 'maybe';
}

Initially I had it to return true to only probably, but Chrome, Safari, and IE all returned ‘maybe’ instead of probably. I wonder if I included an audio codec, the return value would be different. Only Firefox returned an empty string which is the correct response if a browser doesn’t support the given codec. The problem with this is that IE also returns maybe, but it can’t seem to actually play trailers from Yahoo! or MovieFone.

In the midst of researching, I landed on VideoJS, and remember Derek had mentioned about it. It’s very similar to JW Player, but backed by the open source community. So I started looking into it and doing a test page. It pretty much worked right out of the box. I did make a couple tweaks here and there to get it to behave the way I want. Looking at it’s logic, it pretty much did the same thing I suggested above.

One of the tweaks we added was in the event neither HTML5 video or Flash was available, we would display the following error:

unsupported browser

Given that it had the same logic as I did, that also meant the IE issue was there, which meant I had to special case Internet Explorer, and make it always use Flash.

There has been another issue I’ve been trying to deal with and that is it’s practically impossible to escape from full screen mode in Chrome. If you missed the initial flash that says to exit full screen mode, hit F11 (or ⌘⇧F in Mac), you’re pretty much stuck. Hitting esc won’t work. It doesn’t seem to use the custom skin which has the toggle full screen mode key. When I first hit this issue, I ended giving up and quitting the app. The next time, I found opening a new tab forces the video exit full screen mode.

So if you’re using Chrome or Safari, let us know what you think of the new HTML5 video player.

Blog Movie RSS Feed is now officially discontinued

The Death of RSSJust wanted to remind you if you haven’t already switched to our new movie RSS feed, you should do it now! Because as of right now, the blog movie RSS feed is officially discontinued. New movie trailers will no longer be posted to the blog, meaning if you’re depending on the blog RSS feed for movie trailer updates, they’ll no longer appear. Instead the blog will be kept mainly for development news announcements.

New RSS Feed: http://feeds.hd-trailers.net/hd-trailers

You also have the option of following us on Facebook and Twitter for new trailer announcements.

Image courtesy of Isaac’s COM125

Please Point To Our New RSS Feed Location

RSS IconWe’ve finally gotten around to automating our RSS feed and will shortly stop posting movie trailers to our blog. The current scheduled cut off date is Saturday 11/19. So for the next week, we’ll still be posting trailers to our blog, giving any application or service that uses our blog feed a chance to update.

Previously we used the blog to post HD clips and trailers from other sources, but with the most recent set of updates we’ve made, it’s rendered all movie trailer blog postings as duplicates.

The new feed location is at: http://feeds.hd-trailers.net/hd-trailers

The formatting of the new feed should be pretty much identical. If you hit into issues, please let us know.

Our blog will remain as a source of development news afterwards.

If you have any suggestions, please feel free to contact us.

We’ll post a final update on 11/19.

ClipConverter.cc (YouTube Video Downloads / Converter)

ClipConverter.cc

So for the longest time, I’ve tried to avoid posting YouTube videos because there wasn’t a simple and easy solution to download them. Sure there were a bunch of browser add-ons and extensions that one can use, but I don’t consider installing an extension simple and easy.

However, I finally gave in and began to include YouTube videos, while also including a link to KeepVid. But KeepVid was horrible, requiring you to use Java and who knows what other crap they install on your machine, but there just wasn’t a better solution at that time.

There’s also a bunch of smart Javascript bookmarklets that reveal the video download links, but I couldn’t easily expose them since you have run the script after loading the YouTube page first.

@boxofficeBUZ suggested I check out File2HD.com and it was awesome. The interface was exactly what I was looking for, but it didn’t include the HD versions (480p/720p/1080p) of the videos, which is the main purpose of this site.

I did some more searching and ended up with ClipConverter.cc. It was elegant and simple to use. Provide it with the YouTube url and it’ll give you the option to download or choose from 11 different formats to convert it to (mp3, aac, wma, m4a, ogg, mp4, 3pg, avi, mpg, wmv, flv).

Enjoy!

Google Search to Include Thumbnail Images?

So I was doing a random search on our site and noticed that Google now began including thumbnail images in custom search results. An example:

Google search results with thumbnail images

I tried a similar search on Google’s main search engine, but the thumbnails didn’t show, so I’m guessing it’s something they’re experimenting on custom search and may or may not bring to their main search engine in the future.

At first I thought Google had some deeper integration with WordPress, since the results only seemed to show thumbnails for my blog results. But I’ve noticed a small amount of pages on our main site also had a thumbnail images (as the 1st search result above shows).

As you probably noticed, some of those images are obviously wrong and the purpose of this post is to see if anyone knows what Google is keying off of or if we can provide better guidance as to what the thumbnail image should be. The rest of the internet seems to refer to the image_src link tag for thumbnail guidance, but Google doesn’t appear to be using that.

<link rel="image_src" href="http://static.hd-trailers.net/images/the-darkest-hour-8f0-4aa2fcd932500-poster.jpg" />

If anyone has any idea, I’m all ears!

Update: Found the answer: Custom Search Help: Specify thumbnails

Quicker Yahoo! Updates and HD Clips!

Yahoo High Definition Trailers

For anyone that’s been monitoring Yahoo’s High Definition Trailers Page, you’ve probably noticed they’ve really been slacking off, only updating once or twice a week, while new HD trailers come out everyday.

I’ve decided to go a different route and monitor their recently added trailers page instead and this should provide quicker updates to new trailer releases.

Another good thing that came out of this is now the main catalog will also include HD clips from Yahoo!, something I had been planning to do for some time.

Enjoy!

YouTube HD Trailers

As some of you may have already noticed, we’ve posted a couple YouTube trailers on our site this week (e.g. Donkeys). Many have suggested their inclusion in the past, but I’ve always been against it due to 2 main reasons:

  1. The quality tends to be lower due to the way YouTube does compression
  2. There isn’t an easy way for us to provide you with a download link

We can fix reason #2 by downloading the trailers ourselves and hosting it, but because of reason #1, we prefer to wait for official releases with higher quality. However, we have come to realize that certain HD trailers will only be on YouTube. With that in mind and wanting our site to be the central hub for all movie HD trailers, we came to a decision to include them.

Update: To make our intentions a bit clearer, the only YouTube trailers we’ll be posting are for trailers we cannot find a higher quality for. Secondly, we won’t stop posting trailers from Apple, Yahoo, etc. This will only be in addition to what we’re currently doing.

Unfortunately we can’t provide direct download links to YouTube videos, but we have provided a link to KeepVid, which will provide you with direct download links. It’s a bit annoying when you get that Java prompt, but I notice even if you click NO, the download links will still be provided.

There are also other browser extensions/add-ons and download utilities that one can use which will make downloading YouTube videos easier. I’ll probably be writing up a tutorial on how to download from YouTube sometime later. I’m also looking into getting JavaScript to download the video you’re watching.

One might argue why anyone would come here to search for YouTube trailers. Our reply would be our target audience isn’t really searching for that trailer, but instead is browsing our website checking out new trailers for movies they’ve never heard of.

We won’t be posting these YouTube trailers on our blog, but if there’s enough demand, we might reconsider. If you have any questions, comments, or suggestions, please do leave them below. We’d love to hear from you.

Found The Culprit!

After re-enabling my site, I immediately saw our site getting hammered and our CPU usage spike up. A quick look at our access logs revealed that 90% of the load is being generated by XBMC clients. All their queries appear to be search related, so for the time being, I’ve disabled the internal WordPress search engine and switched to using our Google custom search engine.

Can someone who works on the HD-Trailers.net plug-in for XBMC or if you know someone who does, please get in touch with us? Our email can be found on our contact page.

I’ve gone ahead and reverted all the things I disabled.

I also found out the Lightword Theme doesn’t actually have a 404 page, and it was returning a 200 even when no page was found. Apparently all you have to do is create a 404.php in the theme folder and WordPress would use that. So I quickly whipped one out using their single.php as a template:

<?php header("HTTP/1.0 404 Not Found"); ?>
<?php get_header(); ?>
<div id="content-body">
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('<p id="breadcrumbs">','</p>'); } ?>

<h2><?php _e('Not Found','lightword'); ?></h2>
<p><?php _e("Sorry, but you are looking for something that isn't here.","lightword"); ?></p>

</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Blog Maintenance

As some of you may have noticed, our blog was under maintenance for a little over a day. Turns out it was using too much CPU and we were notified that our site would be disabled and told us to come up with a plan on lowering our CPU usage.

Our blog will be running with a bunch of features disabled while we investigate how to lower our CPU usage. We have some ideas on how to do this, but the gist of it is WordPress turns out to be a major CPU hog and DreamHost has told us we needed lower our CPU usage. Turns out our blog was using ~15000 CP minutes per day. For comparison, our main catalog library is only using ~300 CP minutes a day.

Our main catalog services 3x the # of visitors a day more than our blog, yet use only 2% of the CPU that our WordPress blog is using.

We already had Hyper Cache and we only had a small set of plug-ins enabled . I have been searching and going through tons of suggestions on how to lower the CPU usage. A couple things we did:

  • Confirmed that our MYSQL DB had the correct caching enabled
  • Verfied settings in Hyper Cache
  • Installed WP-Optimize and optimized the DBs
  • Disabled new comments from being posted (Akismet was catching 5000+ spams a month)
  • Disabled WordPress.com Stats plug-in
  • Disabled Twitter Tools plug-in
  • Disabled Cufón
  • Enabled mod_pagespeed
  • Removed recent comments from our side bar
  • Trying out different lightweight themes (our old theme was making 30-40 queries per page)

If you noticed any issues, please do let us know.