Channel: Bisqwit
Category: Education
Tags: libswscalec++libavcodecditherbinkvideoportal 2decodinglibavformatlanczoscodecdjgpplive programming256 colorsditheringffmpeg
Description: A few days ago (relative to April 2011, when this video was originally made) I purchased a copy of Portal 2, Valve’s newest video game, an instant classic. When I received it, I did what any geek does when they acquire a new gadget: Disassemble and dissect it. Here is some of the outcome… The program is designed for DJGPP, as was what I did back then for various reasons. Rather than redesign it over, I decided to publish it as-is. Although I used the newest iteration of That Editor rather than the 2011 snapshot. The videos I chose to decode in the original video were chosen for their visual traits and their mostly non-spoilerific nature (the two trailers are also published on Valve's Youtube channel). — “Please remain calm” — Turrets trailer — Boots trailer In this remastered version, the video is from the ending of a fan-created game, Portal Stories: Mel. The audio was added in postprocess, as the program does not do audio. The 256-color palette I use in this video, or the algorithm to generate it, was devised on spot; it was not tuned for these videos in any manner (except for the "aperture science cyan" entry). It simply selects 12 colors from the hue wheel, discards two of them that are least different from others, and samples each of the remaining ten colors in five different saturation and five different brightness settings, where one of the saturation settings is specifically tweaked to produce pastel colors. I found the palette produced in this manner surprisingly good. Its very few obvious shortcomings appear as dithering patterns that contain highly contrasting pixels. I created the editor myself. The narration ends at 1:25. Until 8:43 there is nothing but music. Feel free to mute the video if you don’t like the music; this was one of my less successful conversions. Music: Aero the Acro-Bat 2 :: Fort Redstar (Act 1) :: Fox Productions (homebrew SPC-OPL3 conversion, played through ADLMIDI) Source code: bisqwit.iki.fi/jkp/bink.cc Purchase “Portal Stories: Mel” here: store.steampowered.com/app/317400/Portal_Stories_Mel #binkvideo #libavcodec #example