digitalFAQ.com Forum

digitalFAQ.com Forum (https://www.digitalfaq.com/forum/)
-   Restore, Filter, Improve Quality (https://www.digitalfaq.com/forum/video-restore/)
-   -   How to remove colored bar on side of Hi8 tape? (https://www.digitalfaq.com/forum/video-restore/14310-how-remove-colored.html)

lordsmurf 04-21-2024 09:00 PM

Quote:

Originally Posted by keaton (Post 96354)
Shocking that something basic like ChromaShift is not available in modern Avisynth.

It's not the same, but ChromaShiftSP() is x64. I've used it, but it does behave differently. As always, verify everything, before and after processing. It's a fiddly .avsi script, not a .dll filter.

Selur 04-22-2024 12:45 AM

For Avisynth latest version should be
https://github.com/realfinder/AVS-St...ceBorders.avsi
which is part of
https://github.com/realfinder/AVS-Stuff/tree/master

Gary34 04-22-2024 08:10 AM

Quote:

UPDATE. my system is x64 so it doesnt run x32 colorshift dll.. now trying to find x64 version. i hope there is one.
Use the 32 bit original version of Avisynth on your 64 bit computer. https://www.digitalfaq.com/forum/video-restore/10178-started-avisynth-avspmod.html Most plugins are 32 bit. The 64 bit version of Avisynth has some advantages because it allows you to use more than 4 gb of ram so it’s faster for some complex scripts like QTGMC.

oddmykyta 04-22-2024 02:57 PM

already digged for that. the problem is that the system automatically installs the matching (x64) version of AviSynth. If you could provide me some manual method doing that u would have saved me. thx in advance

Gary34 04-22-2024 03:59 PM

I’m not sure then.

keaton 04-22-2024 06:38 PM

Quote:

Originally Posted by oddmykyta (Post 96390)
already digged for that. the problem is that the system automatically installs the matching (x64) version of AviSynth. If you could provide me some manual method doing that u would have saved me. thx in advance

I downloaded AviSynth_260.exe from https://sourceforge.net/projects/avi...Synth%202.6.0/ and the file size is identical to the installer I used almost 7 years ago for my XP 32-bit machines, so this should be the identical installer I used.

oddmykyta 04-22-2024 06:42 PM

Just as i did. It is identical. But as i mentioned it automatically registers your installation to a matching OS version. I guess i will end up using ur advice about virtual machines, and just install the win7 x32. Thanks though.

Selur 04-23-2024 11:36 AM

Not sure whether it helps, using Vapoursynth with QTGMC, Crop, BalanceBorders and EdgeFixer
image: ttps://ibb.co/4RSF9QP
(did no additional denoising, color corrections, etc. )
The parameters I used for BalanceBorders and EdgeFixer should be similar to those used in Avisynth.

Cu Selur

Gary34 04-23-2024 02:07 PM

Hybrid works well in windows 10

oddmykyta 05-04-2024 11:17 AM

1 Attachment(s)
unfortunately it just adds up more noise. Its works on the standing environment like static shots. by any camera movement the strange noises are created. But thank you for your help.

One more question. Is it possible to remake an earlier provided code by keaton in Hybrid? Asking since chromashift filter is included to Hybrid. If yes i would be happy to know hof exactly. I couldnt find out the right way to go with overlayering and so on.

Code (by keaton) is attached.

Thanks in advance.

Selur 05-04-2024 11:33 AM

You would need to write a custom section, since Hybrid has no options for the overlay mixing that is done in the script.

Cu Selur

oddmykyta 05-04-2024 11:37 AM

So basically i should get 2 videos that have to be overlayed, apply the needed filter for them in Hybrid, and then do the overlaying using avisynth? Thx

Selur 05-04-2024 11:45 AM

No.
You would have to either do this part of the Avisynth script in a custom section in Hybrid (if you use Vapoursynth conver this to Vapoursynth beforehand)
Code:

# Shift original clip chroma (both U and V channels) right 14 columns, then keep only the right most
# 26 columns (the 14 with the color issue and the 12 black columns to the right of that), fill the
# remaining columns to the left of that as black
b=ChromaShift(C=14).crop(694,0,0,0).addborders(694,0,0,0)

# Make a copy of the original clip with the right most 26 columns cropped off
c=a.crop(0,0,-26,0)

# Overlay the copy of the original (c) on top of the Chroma Shifted copy (b) with full opacity
Overlay(b,c,0,0,opacity=1.0)

Of feed this (properly adjusted) to Hybrid.
The rest of the script can be done in Hybrid.

=> I doubt you will be able to do this all in Hybrid, since you know to little about Hybrid, Avisynth and Vapoursynth.

Cu Selur

oddmykyta 05-04-2024 11:49 AM

thank you. lets see.

im here to learn tho..

Selur 05-04-2024 12:24 PM

Since you want to learn,... you can do the following in Hybrid to achieve:
Code:

# Shift original clip chroma (both U and V channels) right 14 columns, then keep only the right most
# 26 columns (the 14 with the color issue and the 12 black columns to the right of that), fill the
# remaining columns to the left of that as black
b=ChromaShift(C=14).crop(694,0,0,0).addborders(694,0,0,0)

# Make a copy of the original clip with the right most 26 columns cropped off
c=a.crop(0,0,-26,0)

# Overlay the copy of the original (c) on top of the Chroma Shifted copy (b) with full opacity
Overlay(b,c,0,0,opacity=1.0)

(this basically an alternative to BalancedBorders)
in Vapoursynth:
  • Start Hybrid
  • Load Source
  • enable "FilteringVapoursynth->Custom->Insert before DeCross", enable the edit section and enter:
    Code:

    import chromashift
    import havsfunc
    b = chromashift.ChromaShift(clip=clip, shift_right=14).std.Crop(left=694).std.AddBorders(left=694)
    c = clip.std.Crop(right=26)
    clip = havsfunc.Overlay(b,c,0,0,opacity=1)

Setting Level, Tweak and Letterbox to mimic the rest of the script should be easy.

Cu Selur

oddmykyta 05-04-2024 12:27 PM

Quote:

Originally Posted by Selur (Post 96635)
Since you want to learn,... you can do the following in Hybrid to achieve:
Code:

# Shift original clip chroma (both U and V channels) right 14 columns, then keep only the right most
# 26 columns (the 14 with the color issue and the 12 black columns to the right of that), fill the
# remaining columns to the left of that as black
b=ChromaShift(C=14).crop(694,0,0,0).addborders(694,0,0,0)

# Make a copy of the original clip with the right most 26 columns cropped off
c=a.crop(0,0,-26,0)

# Overlay the copy of the original (c) on top of the Chroma Shifted copy (b) with full opacity
Overlay(b,c,0,0,opacity=1.0)

(this basically an alternative to BalancedBorders)
in Vapoursynth:
  • Start Hybrid
  • Load Source
  • enable "FilteringVapoursynth->Custom->Insert before DeCross", enable the edit section and enter:
    Code:

    import chromashift
    import havsfunc
    b = chromashift.ChromaShift(clip=clip, shift_right=14).std.Crop(left=694).std.AddBorders(left=694)
    c = clip.std.Crop(right=26)
    clip = havsfunc.Overlay(b,c,0,0,opacity=1)

Setting Level, Tweak and Letterbox to mimic the rest of the script should be easy.

Cu Selur

Thank you. Will try this out and tell about results.

oddmykyta 05-04-2024 02:33 PM

1 Attachment(s)
Didn´t expect that message again.
Since chromashift is built-in filter, im now not sure about next step.

Selur 05-04-2024 02:49 PM

Ahh,.. I know what the reason is. :)
I'm using a newer version with some changes, the 'import' doesn't know where to find the script. :)
(newer version by default already loads the script folder)
=> I'll package my dev version and send you a link in ~15min.

Cu Selur

oddmykyta 05-04-2024 02:50 PM

Thank you man, much appreciated

Selur 05-04-2024 03:03 PM

Send you a link via pm.
Have fun, going to bed now. :)

Cu Selur


All times are GMT -5. The time now is 09:13 PM

Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.