1 2
8 9
Post subject: Flicker in Youtube Videos
Joined: 5/27/2008
Posts: 17
I've noticed that some youtube videos appear not to do well with flicker effects. For instance, the flicker when being hit in Super Metroid. I assume this is because youtube videos are encoded at 30fps, and if the blinking alternates on and off every frame, then the effect will either appear to be always on, or always off. You can see Samus completely disappears on the elevators, when she should be flickering. SDA has sovled this problem by encoding the low quality versions of videos at 20fps, so as to maintain the flicker effect. Perhaps something similar should be done here since youtube does not take 60fps video.
Editor, Player (69)
Joined: 6/22/2005
Posts: 1050
Both the HD Encoding Guide page and the Hybrid Encode Script suggest using 24 fps if the game uses 30-Hz flicker effects.
Current Projects: TAS: Wizards & Warriors III.
Joined: 5/27/2008
Posts: 17
Perhaps someone should re-encode the current Super Metroid run for youtube then.
Editor, Player (69)
Joined: 6/22/2005
Posts: 1050
Which Super Metroid run do you mean? There are three branches.
Current Projects: TAS: Wizards & Warriors III.
NitroGenesis
He/Him
Editor, Experienced player (556)
Joined: 12/24/2009
Posts: 1873
I use 24 fps for basically everything, even stuff that doesn't flicker.
YoungJ1997lol wrote:
Normally i would say Yes, but thennI thought "its not the same hack" so ill stick with meh.
Lex
Joined: 6/25/2007
Posts: 732
Location: Vancouver, British Columbia, Canada
Why not use ~34 fps oslt? YouTube seems to run higher than 30 fps for the 50 fps video(s) I've uploaded. Edit: This has been found to be false. It's just flash player being crazy.
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
But I hate encoding in 24 fps. It makes the video play like **** even without being uploaded to any streaming site, and I find it hard to see because of this. I guess I'll try encoding at the game's native FPS, and them shove it into YouTube, just to see. I'll also try SDA's idea of 20 fps. EDIT: It's not my computer. It can play 60 fps HD videos without any problem.
Banned User
Joined: 3/10/2004
Posts: 7698
Location: Finland
If the game runs at 60 fps and the video is encoded at eg. 24 fps (which is not divisible by 60), does that mean that frames are being simply dropped at irregular intervals? Doesn't this cause jittering motion?
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
Warp wrote:
If the game runs at 60 fps and the video is encoded at eg. 24 fps (which is not divisible by 60), does that mean that frames are being simply dropped at irregular intervals? Doesn't this cause jittering motion?
That's exactly my problem with 24 fps. I'll be encoding the same part of a TAS at 20, 24, 30 and 60 fps, for comparison. I'll probably make a new thread about this.
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
The jitter of 24fps also sets me off a bit too, but I think the tradeoff for having the flicker work 'properly' is very much well worth it. And most people don't notice the jitter at all.
Editor, Experienced player (860)
Joined: 8/12/2008
Posts: 845
Location: Québec, Canada
Mister Epic wrote:
Warp wrote:
If the game runs at 60 fps and the video is encoded at eg. 24 fps (which is not divisible by 60), does that mean that frames are being simply dropped at irregular intervals? Doesn't this cause jittering motion?
That's exactly my problem with 24 fps. I'll be encoding the same part of a TAS at 20, 24, 30 and 60 fps, for comparison. I'll probably make a new thread about this.
I'm looking forward to this. I also agree that 24 fps looks bad on YouTube. There must be a better framerate.
Lex
Joined: 6/25/2007
Posts: 732
Location: Vancouver, British Columbia, Canada
To prevent further time-wasting like Flygon went through,
#tasvideos on Freenode wrote:
09:32:54 <LexSfX> Flygon: weird. the one i said ran at 34 fps (a number i got from fraps' overlay before) reports only 30 fps in its video info[ (right-click the video on YouTube -> Show Video Info)], debunking my claim completely
So, ignore my previous post in this thread.
Joined: 11/22/2004
Posts: 1468
Location: Rotterdam, The Netherlands
As far as I can see, 24fps is the best compromise for these videos. That causes flickering every 6 frames (e.g. AAAAAABBBBBB). Go lower than 24fps and the motion becomes too choppy. Higher than that, and the flickering becomes too slow. Youtube does not seem to support a higher FPS value than 30 or 31 in some cases (apparently when you put a 60fps movie on Youtube, it becomes 31fps, but I haven't tested that).
Senior Moderator
Joined: 8/4/2005
Posts: 5777
Location: Away
24 fps is a bad solution. 20 fps is a better one, a flicker-optimized AviSynth frame blending script (that weaves the adjacent frames together with alternating opacity), while not existing yet, is an even better one.
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
Joined: 5/7/2011
Posts: 40
Location: Melbourne, Australia.
24fps has reduced flickering for me in the past. Don't know if it's console dependant of not, but it does reduce/remove flickering.
(2011) <Mothrayas> Lesbian porn My greatest weakness! (2014) <Mothrayas> COMPLICATED MATH, MY NEW GREATEST WEAKNESS!
Joined: 11/22/2004
Posts: 1468
Location: Rotterdam, The Netherlands
ToonLinkGaming wrote:
24fps has reduced flickering for me in the past. Don't know if it's console dependant of not, but it does reduce/remove flickering.
24fps is specifically meant for 60fps flickering (e.g. on/off on alternating frames at 60fps).
Joined: 11/4/2007
Posts: 1772
Location: Australia, Victoria
moozooh wrote:
24 fps is a bad solution. 20 fps is a better one, a flicker-optimized AviSynth frame blending script (that weaves the adjacent frames together with alternating opacity), while not existing yet, is an even better one.
I've actually made videos that have blended sections and 30fps sections in others, but this is incredibly movie dependent. It also has the unusual issue on that if I only wanted to blend a boss fight but not other areas of the game (that has flicker and moving backgrounds, since blending moving backgrounds makes it much more obvious there is a blend rather than a static boss fight background), I'd have to convert the non-blended segments to 24fps (unless they have no flicker) then upscale to 30fps, which introduces even more strobing artifacts. If you ask me, the best solution is to dump the sprites and backgrounds separately, assuming the emulators can be modified to do so according to my required specifications (specifically, I'd need the hidden parts of the sprites to remain hidden in the sprite only dump... something that can't be so easily done with just turning off the background layer). I'm willing to explain to the curious what I mean in depth, if they want. PAL videos are so much easier to encode, I swear.
Senior Moderator
Joined: 8/4/2005
Posts: 5777
Location: Away
Btw, this is pretty much what I referred to when talking about flicker-optimized AviSynth script, but as I haven't tried it yet I don't know how it would look as a result (I think it might produce a slight interlacing artifact that way due to non-uniform sprite brightness), but it would retain better fluidity than both 20 and 24 fps, and a clear reference to proper flickering as well by alternating between 33% and 66% sprite opacity during such segments (as opposed to 50% the entire flicker time).
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
Lex
Joined: 6/25/2007
Posts: 732
Location: Vancouver, British Columbia, Canada
Yes, that's a great idea, moozooh. I consider that the optimal workaround for YouTube's failure to provide 60fps video, especially with the opacity fluctuation. Can you produce a sample script?
GabCM
He/Him
Joined: 5/5/2009
Posts: 901
Location: QC, Canada
Ok so here are the videos I was talking about. 20 fps 24 fps 30 fps 60 fps Feel free to compare and comment.
Site Admin, Skilled player (1254)
Joined: 4/17/2010
Posts: 11475
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
Surely 60, 30 & 20 suck.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Lex
Joined: 6/25/2007
Posts: 732
Location: Vancouver, British Columbia, Canada
20 seems to blink faster, but the frame rate seems too low otherwise. Without an advanced method as presented by moozooh, 24 seems like a happy medium for games with 30Hz-blinking graphics. Thanks for the demo, Mister Epic.
Joined: 11/22/2004
Posts: 1468
Location: Rotterdam, The Netherlands
Mister Epic wrote:
Ok so here are the videos I was talking about. 20 fps 24 fps 30 fps 60 fps Feel free to compare and comment.
Out of those, the 24fps one looks the best to me. The 20fps one is just too choppy.
Site Admin, Skilled player (1254)
Joined: 4/17/2010
Posts: 11475
Location: Lake Char­gogg­a­gogg­man­chaugg­a­gogg­chau­bun­a­gung­a­maugg
20 doesn't blink faster, it just leaves more frames with sprite than without. It would look opposite if the sprite starts disappearing another frame.
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Senior Moderator
Joined: 8/4/2005
Posts: 5777
Location: Away
I would rate those as 20 > 24 > 30 = 60. The difference in overall fluidity between 20 and 24 is, as I expected, absolutely insignificant, while frame-alternating motion (particularly arm pumping) looks more defined on 20 fps because the amount of frames showing the sprite is equal to the amount of frames without it. Screen-shaking effects look ugly on both.
Warp wrote:
Edit: I think I understand now: It's my avatar, isn't it? It makes me look angry.
1 2
8 9