Posts for Bisqwit


Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
I have no idea what can be done with AviSynth and what cannot, and have never used it for any purpose, but the NTSC filtering process for NES is rather simple, at least if you have the source material in NES palette indexes format rather than in RGB format. Here is my code (written in PHP of all things) for encoding NES graphics signal into NTSC, and for correspondingly decoding it in a very straightforward manner.
Language: PHP

<?php function GenNTSCsignal($pixel, $phase, $length=8) // Generate NTSC signal corresponding to NES color { // Voltage levels, relative to synch voltage $levels = Array(.350, .518, .962,1.550, // Signal low 1.094,1.506,1.962,1.962); // Signal high // Decode the NES color ("eeellcccc" format). $color = ($pixel & 0x0F); // 0..15 "cccc" $level = ($pixel >> 4) & 3; // 0..3 "ll" $emphasis = ($pixel >> 6); // 0..7 "eee" if($color > 13) { $level = 1; } // For colors 14..15, level 1 is forced. $result = Array(); for($p=0; $p<$length; ++$p) { // Generate the square wave: $sig = $levels[ $level + 4 * ($color <= 12*(($color+$phase)%12 < 6)) ]; // When de-emphasis bits are set, some parts of the signal are attenuated: if($emphasis & (0264513 >> (3*(($phase%12)>>1)))) $sig *= 0.746; // Normalize the signal to 0..1 range, and save: $result[] = ($sig - $levels[1]) / ($levels[7]-$levels[1]); ++$phase; } return $result; } function DecodeNTSCsignal($signal, $begin,$end, $phase, $saturation = 1.7, $brightness = 1.0) { $length = $end-$begin; $factor = $brightness/($length); if($begin < 0) $begin = 0; $c = count($signal); if($end > $c) $end = $c; $y = 0; $i = 0; $q = 0; for($p = $begin; $p < $end; ++$p) { $value = $signal[$p] * $factor; $y += $value; $value *= $saturation; $i += $value * cos( (3.141592653/6) * ($phase + $p)); $q += $value * sin( (3.141592653/6) * ($phase + $p)); } $gamma = 2.0; return 0x10000*(int)min(255, 255.95 * pow(max(0,$y + 0.946882*$i + 0.623557*$q), 2.2 / $gamma)) + 0x00100*(int)min(255, 255.95 * pow(max(0,$y + -0.274788*$i + -0.635691*$q), 2.2 / $gamma)) + 0x00001*(int)min(255, 255.95 * pow(max(0,$y + -1.108545*$i + 1.709007*$q), 2.2 / $gamma)); }
There are many ways to use it. For instance, this loop generates the entire 64-color palette (with black duplicates and stuff) in RGB:
Language: PHP

for($c=0; $c<64; ++$c) { $signal = GenNTSCsignal($c, 0, 12); // Generates 12 samples of NTSC signal at phase offset = 0 $rgb = DecodeNTSCsignal($signal, 0,12, 3.9); $palette[$c] = $rgb; }
To generate actual NTSC cross-talk & dot-crawl artifacts, you will need to generate NTSC signal for an entire scanline (8 samples per pixel, for a total of 2048 samples per scanline, with an offset that is varied on each scanline; alternatingly subtracting and adding 4); and then decode it at horizontal resolution of your choice. Decoding the RGB color corresponding to a certain floating point X coordinate on the screen (e.g. 120.25 is perfectly valid) would be: $rgb = DecodeNTSCsignal($signal, $x*2048/256+0, $x*2048/256+12, 3.9); And you can change the +0 and +12 according to your wishes. You get best results if you keep their relative difference as an integer multiple of 12, such as 48, but you might use 23 for some chroma dots, too. You can also use e.g. -6 and +6, but you may need to adjust the hue (phase) correspondingly. I don't remember whether that's the case. This is a quick & lazy algorithm with not very much sophistication to it, but should get one started. I have posted more details at the Nesdev wiki: http://wiki.nesdev.com/w/index.php/NTSC_video If your input image data does not consist of NES palette indexes, but already made RGB values, then you need more work. I don't have code for that provided, but I think you need to convert the RGB into YIQ, determine the phase & amplitude and use them to form the $sig within the inner loop of GenNTSCsignal(). EDIT: Wait a second, I do. I provided that code with the video linked to in the opening post of this thread. It just has a very significant "this is probably wrong" in it that I cannot shake.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
I agree wholeheartedly with DarkKobold's statement. In case a person cannot choose, I appoint myself as the person to contact in case of doubt. Please do talk to me. And I know from experience that Warp's words are true as well. Though I am no longer quite incapable of forming new social connections and/or talking to someone, it is still natural for me to retreat if I choose to. And it can still be difficult to see who is free for talking and when is the right time to disturb without actually disturbing, and difficult to find anything to talk about to begin with.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
nfq wrote:
God, but all his stuff is open-source.
Not really. It's pretty much precompiled all that we see. Even though we can attempt to reverse-engineer it with microscopes and stuff. Fairly safe to say birds' songs are copyright to themselves, if you can recognize them as legal entities :-) Taken conversely, humans, too, act according to their species for most part. Greed, for instance... It just takes various forms, less and more sophisticated. And these copyright mafia guys are just another face of greed. I believe art is another form of an action typical to our species. Humans are not really as creative as we like to think we are.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
This one is not really that weird, but I found it might be interesting to point out how the Japanese use JIS graphics (think ASCII art) even in spam.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
franpa wrote:
Youtube wrote:
Your video, The Legend of Zelda: Parallel Worlds (Part 4) , may include content that is owned or administered by these entities: Entity: rumblefish Content Type: Musical Composition
I don't think the hack uses custom music, who the hell is Rumblefish?
It's the same company that recently sent a copyright claim to someone who recorded birds. http://boingboing.net/2012/02/27/rumblefish-claims-to-own-copyr.html They only reverted it after the issue went public, with the company owner personally posting on Reddit and answering questions. EDIT: I have no idea why TASVideos forum is assigning broken HTML into this post.
Post subject: Re: #3465: cpadolf's SNES Super Metroid in 21:25.12
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Cpadolf wrote:
I have a couple of suggested screenshots that I either though looked good or acted as a statement about the run. I don't think they are usable because of the compressions standards, so I'll include the frame numbers as well. They are, in order: 38170, 40177, 61252, 70378, 72469, 75409.
Your images were fine, but they could be recompressed a lot better (which I believe is part of standard publication process on tasvideos). For instance, your Sm9G3.png which was 18401 bytes, becomes 6568 bytes when I optimize it using [1], without need to recapture it from an emulator. Link here.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Warp wrote:
Another scammer wrote:
Good morning, Your account ACH and Wire transactions have been provisionally placed on hold in order to ensure your security, because of the expiration of your security version. We kindly ask you to download and install the most up-to-date installations, by following this link. As soon as it is installed, your account transactions will be fully reinstated.
I have been receiving tons of those ACH scams lately. About 5 of them every day, most of them somehow penetrating my spam filter. I naturally file a spam report using spamcop for each and every spam that breaches the filter, so this has been lesser slow time in that regard.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
YoungJ1997lol wrote:
i have to admit that i don't know. but i have a question: What is the 21-frame rule???
There is a running counter in the game that counts frames, and every 21th frame, it goes to 0. When the game goes to a new scene through a black screen, at some point it waits for the counter to go 0 before proceeding. This means that any progress you have made that is modulo 21 is completely ignored. (The actual implementation may be different but this is how it appears.) With the exception of the last stripe of the game (the one that ends up rescuing Princess), all stripes in the game can only be finished in time that has a constant modulo 21 result; i.e. you either improve it by n*21 frames or you don't improve it at all.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
There is a precedent of some YouTube users' channels being deleted for containing tons of video game music. One of them (and one of the best known cases, because he/she was very popular) was SilvaGunner.
YouTube account SilvaGunner has been terminated because we received multiple third-party notifications of copyright infringement from claimants including:
  • Record Industry Association of Japan
  • Media Interactive Inc.
The issue probably is a combination of quantity and luck. If a trigger-happy media-mafia representative fires a copyright claim on your video containing material (whether video or audio) created by their client (but practically owned by the mafia), there's not much you can do. Chances for that happening, well. Nobody knows.
Post subject: Re: Fonts of subtitles
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
ThatGugaWhoPlay wrote:
Which font is the recommended for the subtitles?
I have used Helvetica, Lucida Sans Regular, Arial, Aquafont, MS Gothic, and Mikachan. There is no regulation which font you should use. There are guidelines though: It should be readable, neat, and not very subject to chroma supersampling artifacts that may make narrow lines unreadable. It should also be in a neutral, rather desaturated color, and not e.g. dark red or blue. And obviously, it must be able to represent all characters of your text. Hence you need e.g. a Chinese-capable font if you want to present a Chinese author's name. And it should be placed 1) near the beginning of the movie and 2) in a section that will not be skipped over if one chooses to jump over / cut out the intros; possibly meaning two or more instances of the subtitles. Additionally, it should never overlap with any interesting content, such as onscreen actors or platforms that the actors may soon interact with.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Post subject: Re: Mega Man 3
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Mister Morn wrote:
I had an idea for a run on the game that I thought might be fun to watch: no damage, must kill every enemy and collect every item.
There is a problem… well, two problems… well, three, with killing all enemies. ― Enemies are autogenerated by screen scrolling. Scroll back, and forth, and enemies reappear. ― There are enemy launching automatons, such as the bees in Hardman. ― Some enemies are invulnerable. But I would indeed, probably, like to see such a run.
Post subject: Re: Hi! I'm new and have a question.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Mister Morn wrote:
Here's my question: how old does a topic have to be before posting in it is considered bad form? I have an idea for a "challenge" run on a game, but the last post on said game's topic was a few months ago and I don't want to be rude by reviving it out of turn, so to speak.
As long as your post is on-topic, and the topic is well defined (as opposed to something like "I have a question"), there is no limit. Even a 8 years old thread is fine.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Warp wrote:
Of course I'm not saying that you should do this. I'm just saying that if you wanted, you could get a decent gaming platform for relatively cheap.
The issue is twofold: Obsoletion and dedication. Any computer nowadays gets obsolete really quick. A good gaming computer of today cannot run high-end games that are released five years from now. And if I bought a new good computer, I just could not dedicate it for gaming use. It would really quick be used for all kinds of typical purposes, such as storage for files, workhorse for programming projects, for those applications that benefit from processing power (such as audacity and gimp), and so on. From the combination of these two follows that before I have had time to take advantage of the applicability of the machine for gaming, I have already made it impossible to take advantage of the machine for gaming by making it too full of stuff for games to fit there, even before it's too old to run the newest games. And in my opinion, something like 300 euros is definitely not a little money especially if invested on a regular basis. (Then again, I live in the shallow end of the income pool of my social class.)
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Warp wrote:
Do you simply not find computer games interesting, or do you simply not have the time to play them, or is there some other reason why you play so extraordinarily few games (which is quite peculiar, taking into account that you created a hugely popular website related to computer gaming)?
I think it's a combination of many factors. ― Lack of hardware which to dedicate for playing games. And being too stingy to invest in such hardware. ― Lack of time. Which is an illusion; there is ample time but it is all the matter of how to spend it. Negative mental states (such as depression or burning out for two well known examples) can degrade the efficient use of time for prolonged periods. ― Formed habits. Without going too much to details, I can summarize it: when I was a child, I discovered console games and computers roughly around the same time (in a window of 2 years), but in long term I had more access to computers than to consoles. On those computers, I was able to invest time into programming, but not to games. So I learned to love programming; for games, it was more about watching others play. Though later I became independent in the matter, the mindset was already formed. Creating rather than consuming.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
pirate_sephiroth wrote:
Warp, faith is not based on evidence. It's based on imagination. How are we supposed to debate imagination?
I think it is more complex than that. Evidence can be objective and subjective. Even objective evidence can be debated. For example, I believe there is objective evidence of the Israeli exodus from Egypt as detailed in the biblical book of Exodus, but there are people who dismiss the discoverers of that evidence as hoaxes, and the inflammable political status surrounding the sites of that evidence does not help gain independent reviews. It is my subjective opinion that the evidence (I have seen videos and photographs and met people who have been to some of the sites personally) is objectively true. And for some objective evidence, interpretations can be subjective. Such as, are the coral formations that seem to be shaped like Egyptian cart wheels, formed by taking shape around the real deal, or just randomly. I have heard people who have had medical miracles happen to them; people whom I know somewhat well and people who have come abroad to tell. Supposedly, those miracles are objectively verifiable, but I have not had the opportunity to verify them myself (no access to medical records, etc). But all of that is dismissable as well. In the words of Yeshua, even if Moses or someone of the dead come back and witness to us, we would not believe. There is always a theory, rational explanation. People are masters of explaining. Even if I imagined up a completely fictional scenario full of fantastic miracles, given enough time, I'm sure people would be able to put together a completely rational theory why and how those events would transpire without any supernatural intervention ― even if it requires the creation of a completely new scientific theory (super strings? Probabilistic analysis?). I know this because I exercise this kind of behavior myself. There is subjective evidence. In prayer sessions, I have received prophecies that have been fulfilled, and other kinds of words that strike true. But these interpretations are always subject to phenomena like the confirmation bias. And then there is always this problem. And I have also received prophecies and other kinds of words that did not strike true. So in the end, it still comes to faith. All sides come together through the route of imagination. No matter which view point you represent, it's up to your imagination to make up theories and justifications for your own viewpoint. And that's why the debates go nowhere.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Warp wrote:
What's the problem with that? How else should I address somebody? In the third person?
Pit topics against each others, not people. Confrontational discussion style pits people against people and uses the you-word quite often. I emphasized such occurrences to make the degree thereof rather obvious.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Warp wrote:
just pseudoscientific crap
Warp wrote:
amusing and sad [...] how you[...]. You lack internal consistency in your world view.
Warp wrote:
You haven't been reading anything I have been writing, have you? [...]you not understand
Warp wrote:
Do you understand
Warp wrote:
please start [...] instead of pseudoscientific crap. For your own good.
Warp wrote:
Do you understand that you are[...]
Warp wrote:
You seem to be mindlessly repeating[...] You don't even understand what you are saying. You are effectively saying[...] I don't think you even know
Warp wrote:
So you are basically saying
Warp wrote:
You see, that's another annoying
Warp wrote:
I don't think you understand
No, Warp, I don't think it's your avatar that makes people think you are angry. You just are awfully confrontational. (Sorry about an off-topic post but I could not think how better to expose such an example. And yes, I know this post is confrontational.)
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Deign wrote:
Have you played Alice: Madness Returns? That shit was awesome =D
Nope. Never heard of it. According to Wikipedia, it was released in June 2011. Of the games released within last 5 years, I have only played two: Portal, and Portal 2. (Aside from some very random indie titles such as Sideroller.)
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Zeupar wrote:
Bisqwit, do you think religious debates are meaningful? :v
sudgy wrote:
What do you feel about people arguing in a topic made for you?
I would like to respond to these two questions at the same time. As long as it remains interesting to me, I don't mind. I do like competitions towards the clarity of meaning concerning biblical phrases, for instance. Or discussions about cultural and sociological significance of holy books or characters. I can jump in at any moment if I have an insight. I do not like prove-god-exists or prove-god-does-not-exist type debates (replace god with evolution, or many other controversial topic), because they tend to get nowhere at all. I have long ago learned to not participate in such debates. However, discussion of alleged contradictions in a Bible go towards the middle ground of these. I can do and like to do debunking at times, but only in moderation. What this means is that I can and do like spending an equal effort compared to the poster's effort (and the effort behind the resources they quote), and there is a limit to that. If they post a question about a verse, that is fine. If they post a collection of 100 claims, that's out limits. Of course, they might post each of those 100 claims individually, and getting me to respond to each of them that way, but at least then they have had to expend effort in posting each question separately and in discussing my replies in between. If they don't wish to engage in discussions sparking from each of my replies that I have expended effort in thinking and writing, then it might disqualify them from posting further questions made by just quoting someone else's argumentative material.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
DarkKobold wrote:
Bisqwit, do you think TASing will still be relevant and/or popular in 20 years? Do you think people will stop caring about SMB1, SMW, and SM64 after a certain amount of time? Where do you think the community you started will be in 20 years?
I presume that interest in certain games will gradually wither as the population who grew with them outgrows the practicality of following that topic, but there will always be some historic interest, and it will not be a forgotten art. Interest in TASes for SMB1, SMW and SM64 will gradually die as a combination of that and those TASes becoming frame-perfect, however long it might take. 20 years might however be a too short time for that. 20 years goes past surprisingly fast. We are already nearly 10 years ahead from when TASVideos was created. If the question was about 50 years, I would see it more relevant. The answer would still be the same. These techniques will continue to exist for newer consoles and for new platforms that we do not yet imagine, so I don't think TAS as an art form will ever die as long as the technology and tools are available for it. I take it as something as fundamental as the film is to threatre. EDIT: Also, thanks for taking the effort to moderate the thread. 11 pages is a lot of effort to sift through.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
sudgy wrote:
Can you provide evidence that there is no God?
One cannot prove a negative. As very well put by James Randi: http://www.youtube.com/watch?v=qWJTUAezxAI
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
funnyhair wrote:
Bisqwit: Do you like to eat biscuits made of Bisquick, with Bison in a Bistro with Bisque and a Biscotti?
I don't think so.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
Very good movie, and an excellent submission message. I enjoyed both, and the combination thereof.
Editor, Experienced Forum User, Published Author, Active player (296)
Joined: 3/8/2004
Posts: 7469
Location: Arzareth
antd wrote:
hey bisqwit, how do you feel when you notice that someone has 666 posts?
At that point they are about 1/3 way to having 2000 posts. Commence a third of a congratulation, rounded down. Here goes: Cong. Also, in base-36, they've got II posts. In base-666, they finally have 10 posts.
pirate_sephiroth wrote:
OK I was saving this one for a special moment because I think it's very funny ① Isaiah 40:28 [...] God [...] fainteth not, neither is weary V.S. Ex. 31:17 [...] on the seventh day he rested, and was refreshed. ② Matthew 19:26 ... but with God all things are possible V.S. Judges 1:19 And the Lord was with Judah, and he drave out the inhabitants of the mountain; but could not drive out the inhabitants of the valley, because they had chariots of iron.
On the risk of stating the obvious... ① Anyone likes resting, whether they're weary or not. When you wake up at morning, you are supposedly very refreshed and not weary in any way (at least if you slept well). In that situation, which scenery would you more like to observe, as you open the curtains: a busy street with chaotic traffic and honking, or this one? Which one would refresh you, despite you being not weary in any way? That's what God did: On the seventh day he rested (as in defense may rest in a courtroom), and observed everything he had created, which was good. And he set us an example. I don't see a contradiction here. (Tangential: The Finnish translation uses, rather than "was refreshed", a word which simultaneously means to breathe and something to do with his spirit/soul. The original Hebrew text shares this dual meaning, except stronger. However, I found this claim of contradiction perfectly debunkable without such detailed study.) ② Logical argument: All things being possible does not mean all things do happen. Literally minded argument: The verse does not say that Lord was with Judah when he tried to drive out the inhabitants of the valley; only that He was with him when drave out the inhabitants of the mountain. The wording in the Finnish version makes this more obvious than the somewhat ambiguous English version ("for he was not able" rather than "but could not"). However, a relationship to God is not an open license to do-what-you-damn-please and he will bless you and you will succeed. It is always with a notion of "as long as you stick to my plans" (which, as Isaiah 55:8 puts it, are completely alien to men's plans). Which, cynically taken, really makes for a fantastic fatalistic counter-argument to almost any argument about God's actions.