Diary Of An x264 Developer

05/06/2008 (8:20 pm)

Test clips

Filed under: test sequences,videos,x264 ::

Many users have wondered what kind of test clips are used to test x264 during development. In this post, I will attempt to enlighten readers on my personal suite of test clips and why I chose each one.

My first test clip is a roughly 3600-frame-long segment from Pirates of the Carribean: The Curse of the Black Pearl. I often just use the first 500 or so frames of this. The primary reason this test clip was chosen was to serve as an “ordinary” standard-definition video with a reasonable amount of film grain and the same sort of imperfections that most DVD sources have. The clip can be downloaded here.

My second test clip is a section from Elephant’s Dream, the free full-CGI short made in Blender and released by the Orange Open Movie Project studio. This sample is useful for a number of reasons: first, it is available in true lossless 1080p, so I can use a completely flawless source as input to the encoder. Second, of course, it is completely free. Finally, it serves as a good example of a CGI source for which to test x264 on. The full lossless original can be found in PNG sequence format here. If I need an extra HD CGI short, I usually use For the Birds or Lifted.

Next, I usually have an anime/cartoon source of some sort. I sometimes use the Flash version of the Azumanga Daioh OP, but this clip is often less useful than one would think; because its Flash, it is completely lossless. Most real anime/cartoon sources are either DVD or TV broadcast and are therefore far less clean than the above clip. Since x264 has to be able to deal with the flaws in its input, I usually use a fansub copy of the Haruhi ED sequence.

My penultimate test clip is from the VC-1 Blu-ray version of “300.” This is a serious torture test for any video encoder; the artificial grain in this source is unbelievable and requires a ridiculously high bitrate to maintain at any resolution. This is also one of the main test clips I used in developing my film grain optimization. While I obviously can’t upload the whole video nor even a reasonably sized segment of the source, a relatively high quality sample rip can be found here.

My final test clip is the ultimate torture test: a set of 640×480 videos that need over 4 megabits to avoid noticeable visual artifacts. These are lossless FRAPS captures of Touhou Project games, a series of “danmaku” vertical-scrolling shmups with a difficulty ranging from high to completely ridiculous. With this difficulty comes incredibly complex bullet patterns that make can make many video encoders completely choke; it is nearly impossible to effectively compress the sharp-edged bullets enough to reach the target bitrate without completely decimating the backgrounds. I have used these clips for a comparison between x264 and Elecard and a sample video for H.264-in-browser using Flash. I also have a short lossless clip available for those interested.

11 Responses to “Test clips”

  1. Anonymous Says:

    Please add profile support to x264.exe please.

  2. Dark Shikari Says:

    “Profile support”? I’m not sure exactly what you mean. x264 supports subsets of Baseline, Main, High, and High 4:4:4 profiles.

  3. plonk420 Says:

    gawd, i can’t wait until Finding Nemo comes out on Blu-Ray… quality even higher than the DVD version should be fun to play with. or was Elephants Dream’s light rays similar enough to Finding Nemo to be a test clip good enough of rivaling that type of situation?

  4. Jason Says:

    I think what he ment to say and what I also wonder is there is no configure input for which profile the result bit-stream x264 is going to generate. Like when we try to generate a stream with level 40, we can attach a –level 40 as an argument to x264, although we can not do the same thing for profile.

    I know it is probably hard to have this since it may have to check everything before compressing, but it is still very useful if we can do that.

    Thanks for your valuable work all along!

  5. Ranguvar Says:

    @Jason:

    It’s as simple as not using the features of the profile you don’t want to use. I mean, I can see a little benefit, but not much. It’s pretty easy to figure out what profile your encode is going to be in. The level switch is more useful, because it actually restricts things like max macroblocks.

  6. Reader Says:

    The FRAPS captures of Touhou are great… I’d love to see all of the lossless clips used.

    Did you do the capture yourself? If not, where can I find them available? If so, would you share more?

    Thanks!

  7. Dark Shikari Says:

    @Reader

    I capture them with FRAPS. If you want to cap your own, just grab some replays from the Touhou Wiki and capture them accordingly. I can’t really effectively share long lossless ones, as they tend to be extraordinarily large even with x264 lossless compression.

  8. Reader Says:

    Thanks, FRAPS is awesome. A few thoughts.

    1) Just an fyi, the changelog for FRAPS reports a recent change allowing for lossless RGB option…

    3.0.0 – 5th Nov 2009
    …
    - Force lossless RGB option to always capture video in pure form

    2) When I extract the 264 from LosslessTouhou.mkv, not all decoders\players are happy with it. JM14 and JM16 both complain about the level being to high… would love to get your feedback what’s going on.

    3) The settings for TouhouHighQuality.zip link appears to be broken…

  9. Dark Shikari Says:

    @Reader

    The zip files are way out of date; just use the latest x264. There’s even a –tune touhou option.

    JM won’t decode the old-style lossless streams because the profile was removed from the specification. x264 only generates new-style lossless streams now (Predictive Lossless).

  10. R.T. Systems Says:

    [necropost]
    I’m curious as to how you load the lossless azumanga SFW for encoding. It’s clearly not an FLV, so standard video decoding wouldn’t work. I see a few DirectShow based methods to render SFW, but they all seem to cost Very Large Sums of Money.

  11. Dark Shikari Says:

    @R.T.

    I found some cheap shareware app to do it, and there’s apparently now an Avisynth plugin for it as well.

Leave a Reply