Oldskooler Ramblings

the unlikely child born of the home computer wars

Archive for the ‘MindCandy’ Category

And so it goes

Posted by Trixter on October 18, 2009

I have finally realized that I have no business blogging, as I lack writing skill.  If that lacked eloquence and sounded a tad too blunt, it’s because I lack writing skill. I was going to start this post by talking about how some people simply operate on a level so far above us that you just can’t help but admire them, but then all my thoughts got jumbled and it faded away.

I have been trying to come to terms with a lot more than that recently, like working at a decent mature job that has hard long hours (note the lack of blog posts in two months), or having all these great ideas in my head that I lack the skill to make real.  I am losing my mental faculties and not dealing with it well.

This has somewhat stalled the MindCandy project, as we found out that the software we already paid for is incapable of producing BDCMF premastering output, which is required for a replication facility — no BDCMF, no glass masters.  So that means authoring a Blu-ray means we have to master from one of four available applications, three of which are too expensive, and a fourth that, while “cheap”, is buggy and unmaintained.  One of those options used to have a monthly license “rental” fee, but they recently stopped doing that and became outside our price range again.

Desperate times call for desperate measures, so I flexed some very old muscles and found an older version of something we’ll call “Canisters”.  “Canisters” is considered by many to be the gold standard for this sort of thing, so I guess I’m glad that I have the chance to look at it, except that Canisters is less of an application and more of a quirky scripting language, running in a quirky operating system, written in said quirky scripting language.  To compare and contrast:  In Adobe Encore, you define actions and playlists by using familiar concepts like, hold onto your hats, “actions” and “playlists”.  In Canisters, however, it is considered lucky if you can avoid building PGC’s by hand without the use of a hex calculator.

I am exaggerating, but only slightly.  What is NOT an exaggeration are the 360 pages of documentation I must consume to have any chance in hell of attempting to use Canisters — assuming the version I have access to is not broken beyond use.  There was a time, when I had my mental faculties (see above), when I was not only be capable of doing so, but would actually be relishing the thought of consuming all that information.   Those days are gone.  Somehow I have to come up with an alternative.

Posted in MindCandy | 9 Comments »

Tips for making your own demodvd

Posted by Trixter on August 24, 2009

I responded to a pouet bbs post recently and thought that the information could help more than just the demoscene, so I’m reproducing and expanding on it here.

As always, some quick background so information below makes sense (if you’re already familiar with the demoscene, skip to the next paragraph):  I’m making a Blu-ray + DVD package called MindCandy Volume 3 that showcases 30+ Windows demos, which in addition to extremely high-quality video will include commentary by the original authors and other fun bits.  Demos are computer programs that showcase the author’s programming skill and creativity, and are usually awesome to look at and listen to.  Demos run realtime (they do not output their graphics+music to output files), which means you need a special capture program to “hook” into the demo and redirect its output to a series of bitmap files+.WAV or .AVI, and the best utility for doing so is kkapture.

Now that that’s out of the way, the question asked was how to get the most decent quality demo footage onto a DVD.  Having had a lot of experience in this area, here are my tips for doing so:

  • Capture the demo in the highest res it allows.  Even if your target is 720×480/576, do it, because the resizing and anti-aliasing will result in less high-contrast transitions which compress better and with less artifacts.
  • Never add filters in any step of the production chain, not even a sharpening filter.  All they do is cover/obscure picture detail, not enhance it.  You can’t create detail that isn’t there, so don’t try.  See previous tip.
  • Preconfigure your graphics card to forced “quality” settings (on my GTX card I’ve been selecting 16xQ anti-aliasing and turning off all texture compression because my card has nearly a gig of vram).  Sometimes this bugs a demo; if so, go back and kkapture it again with more modest settings, but at least try the best settings.
  • Resample down using the best possible resizer that is time-practical (ie. avisynth spline64 or equivalent — bicubic/lanczos are good but can result in ringing, so always inspect your results).
  • Capture in real video rates if you ever want to display on a TV without dropping or adding frames.  This means you enter rates into kkapture like 60000/1001 (NTSC) or 50 (PAL).
  • If you’re putting multiple demos on a dvd, make it one giant output so that 2-pass/n-pass encoding can spread the bitrate appropriately across all the demos.  Yes, it takes longer.  Yes, it is worth it.

And here’s the part people most people forget:

  • If making a dvd, deal with interlacing because a demo at 24/25/30fps really sucks compared to a demo at 50/60fps, and the only way you’re going to get 50/60fps out of a dvd is an interlaced video.  One of the hallmarks of demos as an art form is the nature of having been created on a computer for a computer, and part of that art is a display rate of 50 or 60Hz.  Arbitrarily limiting a demo to a lower framerate when it was created for higher is just wrong.  If a demo is created specifically to look like film, that’s one thing, but limiting it because you want less data to process is a crime.

As for what maximum (not average!) bitrate to choose, you must always choose the maximum (9800), and even then you will find that some demos will have compression artifacts simply because there is too much picture information changing from frame to frame.  This is something I had to come to terms with for MC3 (we’re including a DVD of the main program with the Blu-ray for those who want to upgrade later).  The only way to make it better is to give the encoder less frames for the bitrate — meaning, if 30i or 30p footage has artifacts, feed it 24p.  The DVD and Blu-ray specs were tuned mostly for real-world footage at film rates, something that has made working with 720p/60 footage so painful.

While the above tips were windows-centric, they apply to any type of demo DVD you may work on.

Posted in Digital Video, MindCandy, Technology | 3 Comments »

Supercharging The Free Time

Posted by Trixter on July 23, 2009

One month ago, I started work at my new job, a trading firm in Chicago. I live in the western suburbs, so I have to take a train in to the city. The train ride is only 35 minutes each way, but due to a bus hookup that I have to make, as well as my scheduled working hours (trading hours), I spend a little over an hour on the homebound train. All told, I spend 1h45m sitting still on a train each day. This is time I used to spend computing, which is why people haven’t heard from me in a while. 

With a new job comes some new pay, so I considered it an investment for my sanity to purchase a laptop for the train. All the time I spent waiting to arrive home can now be spent working on projects and answering email. For someone who commutes so much, and has The Combine™ at home to crunch HD video (more on The Combine™ later), I initially thought that I would grab a tiny Dell notebook; they have a supremely tiny 9” model for $300 that can run for hours on fumes. Less to carry, good enough for syncing email for offline review, and I could even surf if I had to (via USB tether to my smartphone). They even come with a choice of shipping with Ubuntu.

The only problem with that idea is that the #1 project I have to focus on, with a deadline no less, is MindCandy volume 3. MC3 poses some significant challenges for me:

  • We have no dedicated DVD/Blu-ray author this time around (Jeremy is working full-time for Futuremark/Sony), which means I have to author it myself
  • The footage is a mixture of 720p (main program) and 1080p (special features)
  • The combined footage (special features + main program) is over 15 hours long
  • We don’t have any graphical artist for the motion menus, which means I have to design/create/render them myself (if you want to volunteer then by all means please contact me!)

MC3 post-production is essentially a one-man show, as you can see above. And with over 2 hours a day LESS free time, I am understandably nervous about getting it done before the end of the year, as is traditional so that you can snag it as a holiday gift. So, I have to work on the project on the train, which means the laptop would have to run Adobe CS4… and would have to play back HD video, including 1080p… and be able to render 3D graphics for the menu work… and it would have to hold at least 300G of low-res proxy footage video data (the real video footage is over 2 terabytes). So the tiny notebook idea was out.

Hey kids, how do you take a normal laptop and turn it into a Blu-ray production powerhouse?

  • Install nothing less than a Core 2 Duo
  • Replace the 720p LCD with a 1920×1080 LED-backlit full-gamut RGB screen
  • Put in a 500G hard drive
  • Upgrade the RAM to 4G
  • Swap out the DVD burner for a Blu-ray reader
  • Shame the embedded Intel video controller and install a Radeon HD 4570 with 512M dedicated video RAM
  • More power means more juice, so toss the 6-cell battery and install the 9-cell model

So that’s exactly what I did, taking a Dell Studio 15 that normally goes for $750 and injecting it with all of the above, then applying a magical 25%-off-anything-with-an-obscene-cost coupon. Final damage was around $1200. Yay Dell credit!

Here I am, laptop the size of a planet, and all I’ve done is write a blog post.

Man, this thing is heavy.

Posted in Digital Video, Lifehacks, MindCandy, Technology | 5 Comments »

Editing HD On a Budget: Cost of Entry

Posted by Trixter on March 3, 2009

Blu-Ray Disc (BD) is expensive to produce.  As previously ranted by a good friend of mine, the minimum cost to produce a BD is a whopping $4600 — $3000 for some licensing cost that goes who-knows-where, and $1600 for a sanity-defying mandatory AACS encryption procedure.  And this is before you press a single disc.  (If you’re wondering why content producers were rooting for HD-DVD to win the format war, it’s partially because of licensing fees like this, plus lower manufacturing costs.  The cost of entry was much lower compared to BD.)  Needless to say, we have to be very careful how we produce MindCandy 3, because these licensing costs automatically take a giant chunk out of the resources we have available.

And what are those resources?  I’ll describe our budget thusly:  Dan and myself put up the initial capital in 2000, with the hope that we would at least make it back, as well as some extra that would fund a second volume.  That second volume would sell, which would make just enough for the third volume, etc.  The goal from the beginning was to try to have the project generate the money it needed to keep going for as many volumes as possible.  When we found ourselves with a little extra, we donated it to scene.org, or sponsored some demoparties.  When we found ourselves a little short, we did everything we could to keep costs down.  This is no different than the reasons why people organize demoparties, really;  for example, Scamp wants Breakpoint to be successful enough so that, instead of losing 10,000 euros, he can break even and put on another party next year.  The goal is equilibrium.  For the first two volumes, we achieved it.   Now, with BD having such a giant up-front cost, that equilibrium is in jeopardy and forces us to look at alternative ways of producing volume 3 so that we don’t run out of money before it’s ready!

There are many places where money goes in the production of any end-user product, but they tend to fall into the following buckets:

  1. Development
  2. Pre-Production
  3. Production
  4. Post-Production
  5. Distribution

Luckily for us, some of these buckets have no cost other than our personal time.  Development and Pre-Production are all organizing and research, which we do for free because we like doing it.  Thanks to the demoscene community, Production also has no cost as long as we get permission from the authors.  Post-Production involves a hardware and software cost (storing, editing, mastering, and authoring the footage onto media), and Distribution is a setup fee, a per-item manufacturing cost, and shipping costs.  (We also budget for the free copies we set aside to everyone who authorized their demo to be included, provided commentary, donated time or materials, or helped us out in some other way.)

The Distribution cost, thanks to the ass-tastic licensing I mentioned previously, is relatively fixed.  The Post-Production costs, however, are not, and this is where demoscene sensibility comes into play:  How can we make the best of what we’ve got?  What can we pull off, given the limited resources available to us?  It’s time to make a demo — using budgets!  A budgetro, if you will.

In a later post, I’ll start diving into the gritty details of how we’re able to edit HD footage at less than 1/100th the cost of how production companies normally edit HD footage.  Stay tuned.

Posted in Digital Video, MindCandy | 12 Comments »

The Next Big Thing

Posted by Trixter on January 12, 2009

As some followers of a certain thread on pouet might have guessed, the MindCandy crew has started production on MindCandy 3.  This time around we’re mixing the familiar with the unfamiliar:  We’re revisiting the PC — specifically Windows  — but unlike any other demoscene project, we’re doing it all in HD.  That’s right:  MindCandy 3 will be Blu-Ray.

Oh, we’re going to make a DVD available as well, don’t worry.  In fact, we’re tossing around the idea of including the DVD in with the BD, so that there’s only one package to get and you can enjoy the BD when you eventually upgrade your hardware.  Nobody gets left in the cold, and the demos get the proper treatment they deserve.  And it’s one hell of a treatment; thanks to kkapture, we’re able to get clean and pure video from most demos, 60 frames per second, at 720p.  For those who hate interlacing artifacts, this is the fastest progressive video specification HD supports. For some demos (like Into The Pink), the video exceeds what most 2008 machines are capable of.

Work on MindCandy 3 actually began before MindCandy 2 was finished.  In mid-2003, a good friend of the project, Steinar H. Gunderson, worked with us to create “demorender”, which did exactly what it said it did:  Hooked DirectX 8 and 9 calls to grab the data from a frame, dump it through a VFW codec, and then continue, all the while faking the timer so that the demo would be fed a constant timebase.  We were able to capture around 50% of the demos out there when ryg announced kkapture in 2006 and we found that, right off the bat, kkapture did everything our tool did.  We weren’t ready to begin MC3 at that time — and farbrausch is, well, farbrausch — so Steinar contributed the source code of demorender to ryg to fill in a hole or two in kkapture (I believe it was in .wav writing or something but I’d have to check the sources to be sure).

Fast-forward to 2008, and we start to get the MindCandy bug again.  We were in the middle of tossing around ideas to cover, when Blu-Ray finally won the HD format war, and we took that as a sign that that’s what we should target.  The first MindCandy, which was in production from 2000 to 2002, came right at the cusp of the DVD revolution; it was the right product at the right time, and as a result, it did well and the demoscene gained some new converts.  We’re at another cusp:  HD video.  We’re excited to work in that medium and we hope that we can live up to the standards set by MC1 and 2.

While the www.demodvd.org website will remain and start to get updated as we get rolling, I’m moving the Developer’s Blog over here, because this space is an actual blog and not some Python code I slapped together.  I’ll tag them appropriately, for those who want to follow only MindCandy development.

Because part of capturing HD material is making sure you have an HD monitor, I have one now.  Unfortunately, I can’t stand how my 1920-wide window displays a 640-wide skinny little blog in the center, so I will be checking wordpress.com every week to see if they have a theme available with a flexible width that doesn’t royally suck.

Posted in Demoscene, Digital Video, Entertainment, MindCandy | 12 Comments »