Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th April 2018, 05:31   #141  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,234
Quote:
Originally Posted by raffriff42 View Post
Very clear description of why the shader effect looks good!

Which gives me an idea! Suppose we emulate the shader by
  1. smoothly sizing to 1/4 or 1/2 of the final size, then pixel sizing the rest of the way (to retain some jagginess);
  2. de-registering the RGB colors slightly (to imitate the phosphor arrangement); and
  3. superimposing a black grid pattern?
I already have a grid pattern generator function, made years ago (part of an attempt to recreate NTSC dot crawl artifacts). The grids are not exactly like the shader grids, but they might be close "enough."



I have no idea what SuperLumberjack is hoping to accomplish, but sign me up for your newsletter, because this is a seriously awesome filter. Even if you hate scanlines, you can blend it down a bit to minimize them; otherwise, it looks mindblowing on 4K.
__________________
There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order. ~ Ed Howdershelt
foxyshadis is offline   Reply With Quote
Old 22nd April 2018, 15:33   #142  |  Link
SuperLumberjack
French Registered User
 
SuperLumberjack's Avatar
 
Join Date: Aug 2016
Location: France
Posts: 119
I updated my last script and I think I will never touch it again !

I understand that you have difficulty to follow my logic, but I will tell you why I did so complicated things It's only for videos of these old Super Nes games, but for other videos of old video games, of the PS2 and Xbox era too. It's why I didn't want scanlines or other things like that

But now, I tested my script with something else, and I think it's better like this. Because as I said, I wanted a kind of logical formula that could be all right with lots of low resolution videos from old games.

So I abandoned the idea to have something perfect with the Super Nintendo games. I want unity with all the old videos.


Consequently, I tried with this video taken from the game "Legacy of Kain: Defiance". The advantage is that this video was done with the engine of the game, so I can compare with the graphics of the game to see if it's credible. Little precision : the video has a resolution of 640x480 with black bars, and wasn't in the exact correct aspect ratio compared to the game. So I correct it too.

Original


https://media.joomeo.com/original/5adc7c56c1e4a.png

Upscaled to 2160p with my script


https://media.joomeo.com/original/5adc7c7ea4f42.png

Graphics in-game


https://media.joomeo.com/original/5adc98d934370.jpg

This picture is from this site : http://www.pcmrace.com/2015/01/06/ep...kain-defiance/

But apparently some textures mods were used to enhance the display in 2160p. But it seams that it's compliant with the original graphics. No extravagances !


Original


https://media.joomeo.com/original/5adc7e6d8cf96.png

We clearly see the deformation of the picture (see the barrels) compared to the picture in-game.

Upscaled to 2160p with my script


https://media.joomeo.com/original/5adc7e961716a.png

Graphics in-game


https://media.joomeo.com/original/5adc7f0e99004.jpg


Here was my script for this :

Quote:
AviSource()
Crop(0, 80, 0, -80)
Spline16Resize(2560, 1280)
GaussResize(10240, 2880, p=50)
BicubicResize(3840, 2160)
If I multiplied the horizontal resolution 4 times with the GaussResize, it's because compared to a video with 4:3 AR (2880x2160), we need more precision horizontaly.

Besides, we keep a certain ratio between the resolution of the GaussResize and the final resolution.

We have :

(10240x2880)/(3840x2160) = 3,55


With a video with a 4:3 resolution of 640x480, I used this script :

Quote:
AviSource()
Spline16Resize(2560, 1920)
GaussResize(5120, 3840, p=50)
BicubicResize(2880, 2160)
We have :

(5120x3840)/(2880x2160) = 3,16


And with the script for Super Nes video games :

Quote:
AviSource()
Spline16Resize(2048, 1792)
GaussResize(5120, 3840, p=50)
BicubicResize(2820, 2160)
We have :

(5120x3840)/(2820x2160) = 3,22


Similar ratio !
SuperLumberjack is online now   Reply With Quote
Old 22nd April 2018, 15:44   #143  |  Link
SuperLumberjack
French Registered User
 
SuperLumberjack's Avatar
 
Join Date: Aug 2016
Location: France
Posts: 119
I post my video again for my last script : https://youtu.be/CHXsyhBZJ5g

Playlist of all my scripts : https://www.youtube.com/playlist?lis...W3G7DVYqx9NhoT

If you want to test scripts with some original videos of Super Nes games : https://mega.nz/#!K5FRlJhb!pKqQ06WOn...yGiozQuikkk77A

Last edited by SuperLumberjack; Yesterday at 20:29.
SuperLumberjack is online now   Reply With Quote
Old Yesterday, 20:00   #144  |  Link
SuperLumberjack
French Registered User
 
SuperLumberjack's Avatar
 
Join Date: Aug 2016
Location: France
Posts: 119
Hello my friends !

I'm back ! I tried so many things (sometimes, there is no big difference, it's true) and I'm never satisfied

But I know what I want ! It's just hard to achieve...

I want something that reminds me the picture on CRT but clean !


https://media.joomeo.com/original/5ae0ce366b87e.png

source : https://youtu.be/3uB52C4zE_4

I tried the WarpResize in VirtualDub and it gives the type of image I want, so you will see better. It's very similar to the picture on CRT I think, but without the black scanlines (furthermore, we don't see them like everybody says, it's more subtle).

This is in 2160p :


https://media.joomeo.com/original/5ae0ce6c47bd3.png

In 4320p it's a bit better :


https://media.joomeo.com/original/5ae0cec0c10c3.png

The only problem are these defaults :


https://media.joomeo.com/original/5ae0cf0272b54.png

This is the picture only with the Spline16Resize :


https://media.joomeo.com/original/5ae0cf2e41d9e.png

It's not so bad, but a bit boring...

So, now you know what I'm looking for Have you an idea how to get the same kind of picture but without the defaults please ?

Thanks a lot !


Edit : I added the video from the title menu of Killer Instinct in my WinRAR archive, if you want to test with your own scripts

Last edited by SuperLumberjack; Yesterday at 22:01.
SuperLumberjack is online now   Reply With Quote
Old Today, 04:59   #145  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 980
don't know if it already mentioned here or not, but there are http://ldesoras.free.fr/src/avs/crt-display-1.0.zip

it will give you feel like you see old SONY Trinitron

edit: raffriff42 Post here was good too
__________________
My Avisynth Stuff

Last edited by real.finder; Today at 05:15.
real.finder is offline   Reply With Quote
Old Today, 09:44   #146  |  Link
SuperLumberjack
French Registered User
 
SuperLumberjack's Avatar
 
Join Date: Aug 2016
Location: France
Posts: 119
No, thanks !

I already said that I don't want scanlines
SuperLumberjack is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:56.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.