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 10th September 2002, 14:43   #1  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
ChromaShift

Having studied hard and spent many days brushing up on Avisynth plugins using YUY2 colourspace , I've finally come up with:-

ChromaShift

which shifts the chroma information over to the right by two pixels

I wrote it because my whole capture/edit/output to TV chain can sometimes seem to have shifted chrominance over to the left a bit and this makes things look better on the TV next to my PC

Please don't rush to download it as I don't have much bandwidth

Simon

Last edited by Si; 4th November 2003 at 17:55.
Si is offline   Reply With Quote
Old 10th September 2002, 17:11   #2  |  Link
Marc FD
XviD fan
 
Marc FD's Avatar
 
Join Date: Jun 2002
Location: France
Posts: 907

a = *source()
shift=a.Crop(x,0,0,0).MergeLuma(a.Crop(0,0,-x,0)


possible ?

@simon
of course it would be much slower than your filter.
i just want to know if it's doable.

BTW, Welcome in the "avisynth plugins writers horde"
Marc FD is offline   Reply With Quote
Old 10th September 2002, 17:16   #3  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
@MarcFD
I don't write fast filters - I write easy ones that you clever people are too busy to write

regards
Simon
Si is offline   Reply With Quote
Old 11th September 2002, 10:04   #4  |  Link
Archiwa
Registered User
 
Join Date: Jul 2002
Posts: 3
siwalters

Cannot download it ........


Archiwa is offline   Reply With Quote
Old 11th September 2002, 11:17   #5  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,923
Geocities doesn't allow linking to files.

Go to Simon's home page and then navigate to My Filter News. You'll find it there.

http://www.geocities.com/siwalters_uk/

Simon, you can attach it here to avoid this problem.
Guest is offline   Reply With Quote
Old 11th September 2002, 14:13   #6  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
I can download it myself by right-clicking and saving - thats why I put the bit in underneath the link. (Hey but who reads instructions?

I use IE6 - is this a unique feature to IE that doesn't work in other browsers?

I put the direct link in because
1. I hadn't added any link to it on my website at the time.

2. I didn't want to see that no-one had downloaded it from here

I'll make sure I've got a link from my main page in future.

regards
Simon
Si is offline   Reply With Quote
Old 11th September 2002, 14:17   #7  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,923
Your instructions were not totally adequate. Try right click and then select Open.
Guest is offline   Reply With Quote
Old 11th September 2002, 14:47   #8  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
And next time I'll mention switching PC on first
Si is offline   Reply With Quote
Old 14th September 2002, 00:06   #9  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
New Version 1.1

A new version is available via

http://www.geocities.com/siwalters_uk/chromashift.html

(I'm better prepared this time )

It gives you control over how many pixels to shift right (even number of pixels only) and whether to shift U and V together or seperately.


regards
Simon
Si is offline   Reply With Quote
Old 14th September 2002, 23:48   #10  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
Version 1.2

Latest available at previous link.

Now shifts in all directions horizontally and vertically and runs a bit quicker.

regards
Simon
Si is offline   Reply With Quote
Old 13th July 2003, 15:28   #11  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,304
Hi Simon,

Could you add an option to move the luminance, in both directions?
Wilbert is offline   Reply With Quote
Old 13th July 2003, 16:30   #12  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
I know the customer is always right but why

Doesn't ChromaShift left/up equal Luma shift right/down and vice versa

regards

Simon
Si is offline   Reply With Quote
Old 13th July 2003, 17:15   #13  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,304
Quote:
Doesn't ChromaShift left/up equal Luma shift right/down and vice versa
Hmm, luma are chroma are independent. So, I don't understand this remark.

I was looking at the avi of Defiler, in this thread: http://forum.doom9.org/showthread.ph...ht=chromashift

The suggestion of Belgabor doesn't make any sense to me:

ChromaShift(u=-2, v=2)
# u: green -> blue
# v: green -> red

IMO, the solution should be:
shift green ~ 2 pixels to the right
shift blue ~ 2 pixels to the left
shift red ~ 1 pixel to the right

By controlling only u and v, you can't shift all three colors with ChromaShift (which is needed in this case, I think). But, maybe I'm totally incorrect ...
Wilbert is offline   Reply With Quote
Old 14th July 2003, 22:05   #14  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
I never really looked at the avi itself in that thread - it looks beyond recovery to me

Chromashift was designed to allow people to move Chrominance (U or V) information relative to the luminance (Y) information. It works in YUV (specifically YUY2) colourspace and doesn't work in RGB colourspace and therefore can't shift Red separately from Blue or Green.

I've a request to make it work in YV12 as well and I'll try and add the option to work in RGB as well.

Unfortunately - its summer and gardening time not programming time
[EDIT] And I have problems running RGB filters using 2.52 release - I have to revert to an old beta for testing [/EDIT]

regards
Simon

Last edited by Si; 15th July 2003 at 08:22.
Si is offline   Reply With Quote
Old 4th November 2003, 17:56   #15  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
V.26a now available

Wilbert Dijkhof has kindly modified Chromashift so that it can also be used to shift Red, Green or Blue colours independantly if the input to the filter is in RGB32 colourspace.

regards
Simon
Si is offline   Reply With Quote
Old 4th November 2003, 21:20   #16  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
V2.7 - inc YV12

The new tablets are working wonders

Version 2.7 now handles YV12 colourspace as well

regards
Simon
Si is offline   Reply With Quote
Old 27th January 2018, 22:35   #17  |  Link
TCmullet
Registered User
 
Join Date: Nov 2003
Posts: 257
Gosh, it's 15 years later, I discover I need to use this filter, and I discover that the zip file linked from
http://avisynth.nl/index.php/ChromaShift
is corrupt. I don't know the correct procedure to report this, so I felt I should leave a message here.
TCmullet is offline   Reply With Quote
Old 27th January 2018, 22:47   #18  |  Link
Groucho2004
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Posts: 3,742
Quote:
Originally Posted by TCmullet View Post
I discover that the zip file linked from
http://avisynth.nl/index.php/ChromaShift
is corrupt.
Works fine for me.
Groucho2004 is offline   Reply With Quote
Old 27th January 2018, 22:51   #19  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 5,672
My download of that link was a web page (~46KB).

EDIT: How did you get it G2K4 ?
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 27th January 2018 at 22:55.
StainlessS is offline   Reply With Quote
Old 27th January 2018, 22:56   #20  |  Link
TCmullet
Registered User
 
Join Date: Nov 2003
Posts: 257
The link I gave was to the Avisynth documentation page for the filter. The download link is there. The file I get (and I've tried twice) is only 12k, and Windows 10, which normally allows easy access to a "zip folder" says

Compressed (zip) Folder error

! (yellow) Windows cannot open the folder.

The Compressed (zipped) Folder
'(path)\chromashift27.zip' is invalid.
TCmullet is offline   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 07:34.


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