| |
Raistlin
Registered: Mar 2007 Posts: 680 |
Screenshots of Interlace Pics
I’m interested to know what people’s thoughts are on screenshotting interlace pics…
On C64GFX, we do things a bit differently to CSDb. Generally, we care more about the original art than how it’s presented - so we’ll host logos with all the “extras” removed (scrollers, textual information, etc). But of course CSDb screenshots are of how things are actually released.
With interlace pics, it’s more complicated. In theory we should be displaying animations at 50fps (usually) switching between 2 screenshots.. but I’m lead to believe that that could cause battery drain and other problems on devices - plus the FPS probably wouldn’t be 50.
Some sort of blending was suggested.. or simply choosing alternate pixels and merging to create a full-res pic.
The latter is what I’ve tried with some pics .. eg. Some of Leon’s. It looks good and it looks like it’s true to the original creation - I’d hazard a guess that he simply drew these pics at full 320x200px resolution on most of these, actually, rather than drawing on C64 in an interlace editor?
Eg. https://c64gfx.com/image/168046
I toyed with the idea of blending the 1px offset pictures (frame 0 and frame 1).. but I’m not sure that that’s correct either.
Others have suggested some fairly complex blending schemes that presumably show more like it would be on CRT - and I think this is where the 1,000s of colours problem comes in (evident on many CSDb screenshots). This seems unfair since regular MC/HI screenshots don’t get the same treatment.
Anyway, interested to know thoughts… both for CSDb and for C64GFX.com |
|
... 71 posts hidden. Click here to view all posts.... |
| |
Count Zero
Registered: Jan 2003 Posts: 1932 |
Hm - video.html works on my FF ESR (128.4 here currently) and Chrome, video2.html works on Chrome only. Shrug.
"Video can't be played because the file is corrupt." (using the mp4 directly - html has just a blank page) ? |
| |
Gordian
Registered: May 2022 Posts: 80 |
Quote: Hm - video.html works on my FF ESR (128.4 here currently) and Chrome, video2.html works on Chrome only. Shrug.
"Video can't be played because the file is corrupt." (using the mp4 directly - html has just a blank page) ?
There is something wrong with video codec. I will try encode later.
HTML is <video> tag with attributes autoplay, loop and muted (this one is needed to autoplay without user interaction). |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
I'd try a static 50/50 blend as the fallback, and then replace it with a javascript anim with two alternating 70/30 and 30/70 frames.
It'll never look exactly how it does on a proper crt in the web browser, so you'll have to find an approximation that isn't too jarring. Flipping between two frames without blending sadly never looks right on modern browsers.
Extracting hires pixels from MCI like your example above just looks wrong and should be avoided imho — it'll never look anything even remotely like that on a real C64. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
Those flickering gifs are headache inducing, awful
video doesn't work for me (static), browser doesn't offer "loop" either.
I don't think there is a good solution for this. Not an easy one anyway. You'll either get non synchronised flickering mess - or some super unrealistic blended image.
Maybe you can steal a CRT shader with phosphor persistance somewhere and wrap it into a webgl based viewer. That might work - without showing totally unrealistic result. |
| |
Raistlin
Registered: Mar 2007 Posts: 680 |
Quote: I'd try a static 50/50 blend as the fallback, and then replace it with a javascript anim with two alternating 70/30 and 30/70 frames.
It'll never look exactly how it does on a proper crt in the web browser, so you'll have to find an approximation that isn't too jarring. Flipping between two frames without blending sadly never looks right on modern browsers.
Extracting hires pixels from MCI like your example above just looks wrong and should be avoided imho — it'll never look anything even remotely like that on a real C64.
50/50 blend is exactly what I'm working on right now - and I think is for sure the best solution.
Emulating CRT isn't something that I do for "regular" (non-interlace) images so I won't with interlace either. If someone wants to see these on CRT, they can just bring the pics up fullscreen and plug a CRT into their PC :p |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
What you could also try is producing two images that have the half-frames in alternating lines, and then put those into a gif like above - it may or may not reduce flickering |
| |
Gordian
Registered: May 2022 Posts: 80 |
Quoting chatGPZ
browser doesn't offer "loop" either.
You mean just playing video file (not html file) directly in browser? There should be "loop" option in the context menu.
I really don't know what is going on with 2nd version. It's encoded via libx264 encoder and should works...
Third version: https://kawalekkodu.pl/video3.html
Works in Chrome and FF.
Command used:
ffmpeg -framerate 1/0.02 -i cyclone_%1d.png -r 25 -crf 0 -pix_fmt yuv420p -codec:v libaom-av1 outputvideo.mp4
Codec AV1: https://trac.ffmpeg.org/wiki/Encode/AV1
Browser support: https://caniuse.com/av1 |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
Quote:There should be "loop" option in the context menu.
yeah, right. and it looks much less irritating than the gif version.
However, if browser doesn't loop by default (and there is no way to force it), its kinda useless |
| |
Gordian
Registered: May 2022 Posts: 80 |
Quoting chatGPZQuote:There should be "loop" option in the context menu.
yeah, right. and it looks much less irritating than the gif version.
Video has lower frame rate - closer to real interlace.
Quoting chatGPZ
However, if browser doesn't loop by default (and there is no way to force it), its kinda useless
Yes, it's useless if you want to play "interlaced" images outside the webpage. There is solution for this, just put more than 2 frame into video file, but it will grow. |
| |
Raistlin
Registered: Mar 2007 Posts: 680 |
Ok, I've updated the site now to use 50:50 blending for the interlace pics. I create the blended pics when I run my update-tool for the site - so if a better formula or method comes along that I can implement in C++ then it's easy to update all the pics at the same time.
Though... there're apparently currently 705 images tagged as interlace - and I've so far only setup approx 20 of them.. it's a very manual process to get these done right now. But, yeah, some samples:-
https://c64gfx.com/image/185980
https://c64gfx.com/image/46010
https://c64gfx.com/image/168046
https://c64gfx.com/image/179136
I reckon it's good enough. Filesizes are small, there's no flickering (I know... often there -should- be flickering... but .. meh ..), etc etc. |
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 - Next |