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 13th March 2022, 06:26   #101  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by Reel.Deel View Post
So what are you saying here? That you have no issues with "untreated video.mkv" and AWB_Func() ?



It's just an AviSynth script. I have no experience with RipBot but it seems odd that it supports AviSynth and you can't use an avs script. And much more odd that it would process things differently than avs since ripbot is just a frontend for avs (and other tools)...
No, I AM having issues !!!! the "untreatred video.mkv" was purely for Bernardd to test, as he had nothing to test with.

Check this...https://www.mediafire.com/file/rskh2...30802.mkv/file it's a different source, but that's the problem !!!

This is a typical RipBot script:-

Code:
#Custom
LoadPlugin("%AVISYNTHPLUGINS%\ffms\ffms_latest\x64\ffms2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\GRunT\grunt.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RgbAdapt\RgbAdapt_x64.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RT_Stats\RT_Stats_x64.dll")
Import("%AVISYNTHPLUGINS%\scripts\extras\RGBAdapt_Awb_Process.avs")
video=RGBAdapt_AWB_Process(video)
And this is the problem in a nutshell:-
Quote:
I have no experience with RipBot
I don't have any experience with VD2 & AVSpmod, so we're even...

I'd post this on the RipBot forum, but I'm 99% sure it won't get address, as RipBot is dying a slow & painful death
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 13th March 2022, 06:30   #102  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
When you load a working avs into ripbot, it will generate a getinfo.avs and job.avs script in the temp folder . It uses Import("script.avs") . That's why it works 100% as is (not 99.99% fail). It's just using avisynth as a frameserver.

Check your temp files. You can check RipBot264.ini for the location, or edit the location

The problem is you have a buggy avisynth setup
poisondeathray is offline   Reply With Quote
Old 13th March 2022, 06:34   #103  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by TDS View Post
This is a typical RipBot script:-
That is just an avs script.


Quote:
Originally Posted by TDS View Post
I don't have any experience with VD2 & AVSpmod, so we're even...

I'd post this on the RipBot forum, but I'm 99% sure it won't get address, as RipBot is dying a slow & painful death
Well, we're not even anymore, as a first time RipBot user I successfully loaded the script I posted earlier and encoded it and all is fine.

You should try VDub2 or AVSpmod. It seems easier than RipBot.

I think the problem is on your end, not anything with said tools.
Reel.Deel is offline   Reply With Quote
Old 13th March 2022, 06:38   #104  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by poisondeathray View Post
When you load a working avs into ripbot, it will generate a getinfo.avs and job.avs script in the temp folder . It uses Import("script.avs") . That's why it works 100% as is (not 99.99% fail). It's just using avisynth as a frameserver.

Check your temp files. You can check RipBot264.ini for the location, or edit the location

The problem is you have a buggy avisynth setup
Here's "getinfo.avs":-

Code:
#MT



#VideoSource
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\lsmash\LSMASHSource.dll")
video=LWLibavVideoSource("G:\Filter test\nobody 2021 2160p no filters 1080p.mkv",cachefile="F:\Temp\RipBot264temp\job3\nobody 2021 2160p no filters 1080p.mkv.lwi")

#Deinterlace

#Decimate

#Crop

#Downscale

#Tonemap

#Levels

#Colours

#Denoise

#Custom
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\ffms\ffms_latest\x64\ffms2.dll")
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\GRunT\grunt.dll")
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\RgbAdapt\RgbAdapt_x64.dll")
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\RT_Stats\RT_Stats_x64.dll")
Import("C:\RipBot264v1.26.1\Tools\AviSynth plugins\scripts\extras\RGBAdapt_Awb_Process.avs")
video=RGBAdapt_AWB_Process(video)



#Prefetch

#After_Prefetch_Denoise

#After_Prefetch_Custom

#Sharpen

#Upscale

#Borders

#Subtitles

#AudioSource
Import("F:\Temp\RipBot264temp\job3\job3_a1.avs")

#Triming

#AVSameLength

#ColorSpace

#Return
WriteFile("F:\Temp\RipBot264temp\job3\info.txt","Framecount")
WriteFile("F:\Temp\RipBot264temp\job3\info.txt","Framerate")
WriteFile("F:\Temp\RipBot264temp\job3\info.txt","AudioRate")
WriteFile("F:\Temp\RipBot264temp\job3\info.txt","AudioChannels")
WriteFile("F:\Temp\RipBot264temp\job3\info.txt","AudioLength")
WriteFile("F:\Temp\RipBot264temp\job3\info.txt","Width")
WriteFile("F:\Temp\RipBot264temp\job3\info.txt","Height")
WriteFile("F:\Temp\RipBot264temp\job3\info.txt","PixelType")
Trim(0,-1)DE]
and "job.avs":-

Code:
#MT
#PREFETCH_LIMIT=32

#VideoSource
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\lsmash\LSMASHSource.dll")
video=LWLibavVideoSource("G:\Filter test\nobody 2021 2160p no filters 1080p.mkv",cachefile="F:\Temp\RipBot264temp\job3\nobody 2021 2160p no filters 1080p.mkv.lwi")

#Deinterlace

#Decimate

#Crop

#Downscale

#Tonemap

#Levels

#Colours

#Denoise

#Custom
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\ffms\ffms_latest\x64\ffms2.dll")
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\GRunT\grunt.dll")
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\RgbAdapt\RgbAdapt_x64.dll")
LoadPlugin("C:\RipBot264v1.26.1\Tools\AviSynth plugins\RT_Stats\RT_Stats_x64.dll")
Import("C:\RipBot264v1.26.1\Tools\AviSynth plugins\scripts\extras\RGBAdapt_Awb_Process.avs")
video=RGBAdapt_AWB_Process(video)



#Prefetch
video=Prefetch(video,16)

#After_Prefetch_Denoise

#After_Prefetch_Custom

#Sharpen

#Upscale

#Borders

#Subtitles

#AudioSource
Import("F:\Temp\RipBot264temp\job3\job3_a1.avs")

#Triming

#AVSameLength

#ColorSpace

#Return
I know my temp folder is correct, I've been using RipBot most of the afternoon.

I'll have to test on other PC's !!!
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 13th March 2022, 06:45   #105  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by poisondeathray View Post
When you load a working avs into ripbot, it will generate a getinfo.avs and job.avs script in the temp folder . It uses Import("script.avs") . That's why it works 100% as is (not 99.99% fail). It's just using avisynth as a frameserver.

Check your temp files. You can check RipBot264.ini for the location, or edit the location

The problem is you have a buggy avisynth setup
Tried the "proper" 3.7.1 build, no change.
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 13th March 2022, 06:46   #106  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by Reel.Deel View Post
That is just an avs script.




Well, we're not even anymore, as a first time RipBot user I successfully loaded the script I posted earlier and encoded it and all is fine.

You should try VDub2 or AVSpmod. It seems easier than RipBot.

I think the problem is on your end, not anything with said tools.
Well, I'd certainly like to know where you "loaded" that script, for it to work.
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 13th March 2022, 06:49   #107  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
I haven't used ripbot in about 6-7 years, but I just downloaded it today and I know how it works. And it worked ok for 3 people.

The flashing has nothing to do with ripbot itself. It might have to do with the plugins in your referenced ripbot folder , but you claim they are current

I imported a script, not a video . This is my ripbot job (I edited out the # lines and changed to "PATH")


Code:
video=Import("PATH\awb.avs")
return video
Where awb.avs is the same script as Benardd

I used LSmash, but it doesn't matter ffms2 works too, I checked

Code:
LoadPlugin("PATH\RgbAdapt_x64.dll")
LoadPlugin("PATH\RT_Stats_x64.dll")
Import("PATH\RGBAdapt_Awb_Process v 2021 sept 32 64 bits function.avs")
LWLibavVideoSource("PATH\untreated video.mkv")
AWB_Func()

The Import means if you have a working awb.avs script, it will work in ripbot too. The ripbot script is referencing another script (ie. it's frameserving a script). I bet that Reel.Deel's and Benard's looks like this too

Last edited by poisondeathray; 13th March 2022 at 06:54.
poisondeathray is offline   Reply With Quote
Old 13th March 2022, 06:50   #108  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by TDS View Post
Well, I'd certainly like to know where you "loaded" that script, for it to work.
Where it says "Add". Then find the script you want to use.
Reel.Deel is offline   Reply With Quote
Old 13th March 2022, 06:54   #109  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by poisondeathray View Post
I haven't used ripbot in about 6-7 years, but I just downloaded it today and I know how it works. And it worked ok for 3 people.

The flashing has nothing to do with ripbot itself. It might have to do with the plugins in your referenced ripbot folder , but you claim they are current

I imported a script, not a video . This is my ripbot job (I edited out the # lines)


Code:
video=Import("PATH\awb.avs")
return video
Where awb.avs is the same script as Benardd

The Import means if you have a working awb.avs script, it will work in ripbot too. The ripbot script is referencing another script (ie. it's frameserving a script). I bet that Reel.Deel's and Benard's looks like this too
Well, I guess I can't argue with the vastly more experienced guy's out there, but I have added many "new" scripts to RipBot, and this is about the only one giving me grief

I'm about to try it on another PC, and will report back shortly...

UPDATE:-OK, this is interesting, so on another PC running Windows 11, when I try to run AVSMeter within RipBot, I get this :-
Code:
RGBAdapt_Awb_Process: Input video colorspace must be YV12 or RGB32
, with error, RGBAdapt_AWB_Process.avs, line 15

First time I've seen that, with AWB !!!

Another Update:- edited line 15, still does the same blinking, so I'm going to give up on this filter.
__________________
Long term RipBot264 user.

RipBot264 modded builds..

Last edited by TDS; 13th March 2022 at 07:10.
TDS is offline   Reply With Quote
Old 13th March 2022, 07:29   #110  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
You can try convert color yuv420 or rgb before use function RGBAdapt_Awb_Process
kedautinh12 is offline   Reply With Quote
Old 13th March 2022, 07:39   #111  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by TDS View Post

UPDATE:-OK, this is interesting, so on another PC running Windows 11, when I try to run AVSMeter within RipBot, I get this :-
Code:
RGBAdapt_Awb_Process: Input video colorspace must be YV12 or RGB32
, with error, RGBAdapt_AWB_Process.avs, line 15

First time I've seen that, with AWB !!!

Another Update:- edited line 15, still does the same blinking, so I'm going to give up on this filter.
Hold up, what do you mean "edited" ? Did you remove or commented out that line? Please don't tell me you're feeding an unsupported colorspace to AWB. Anything else that you have "edited" that you care to share? Because editing that line is not the correct way to fix such that specific problem. It is there for a reason and the only proper fix is to covert the colorspace of the input video to either one of the formats that AWB supports.
Reel.Deel is offline   Reply With Quote
Old 13th March 2022, 07:50   #112  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by Reel.Deel View Post
Hold up, what do you mean "edited" ? Did you remove or commented out that line? Please don't tell me you're feeding an unsupported colorspace to AWB. Anything else that you have "edited" that you care to share? Because editing that line is not the correct way to fix such that specific problem. It is there for a reason and the only proper fix is to covert the colorspace of the input video to either one of the formats that AWB supports.
I did, but it was only a spur of the moment "test", it didn't change anything, and no, there isn't anything else I need to "share" lol.

However, I have just learnt something about RipBot that I have never used before, and that's that I can import a script (.avs) and not just a video, however, importing any of the RipBot scripts, or the ones I've added, throw up all sorts of errors, mainly to where the .avs & .dlls are located, so I will have to try the script that you (and others) have provided, and see if I can get something happening.

As for "feeding unsupported colorspace to AWB", these errors came up using that "untreated video.mkv"....I'm just getting more & more confused, and my old brain can't get itself around it.
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 13th March 2022, 07:51   #113  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by kedautinh12 View Post
You can try convert color yuv420 or rgb before use function RGBAdapt_Awb_Process
Seems like that might be a plan, if only I knew how to do that

Thanks
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 13th March 2022, 07:59   #114  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by TDS View Post

As for "feeding unsupported colorspace to AWB", these errors came up using that "untreated video.mkv"....I'm just getting more & more confused, and my old brain can't get itself around it.
Well there's a colorspace conversion happening somewhere because that video is YUV420 aka "YV12" which is one of the formats AWB supports.

Quote:
Originally Posted by TDS View Post
Seems like that might be a plan, if only I knew how to do that

Thanks
Start by reading the AviSynth guides and the AviSynth wiki. You will learn more there about the actual scripts you are using than blindly using an all-in-one app that in my opinion can sometimes hinder more than it helps.

Happy reading and good luck
Reel.Deel is offline   Reply With Quote
Old 13th March 2022, 10:00   #115  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by Reel.Deel View Post
Well there's a colorspace conversion happening somewhere because that video is YUV420 aka "YV12" which is one of the formats AWB supports.



Start by reading the AviSynth guides and the AviSynth wiki. You will learn more there about the actual scripts you are using than blindly using an all-in-one app that in my opinion can sometimes hinder more than it helps.

Happy reading and good luck
Thank you for these links, I have seen some of this before....but it's "all Greek to me", mostly.

So not to bite off more than I can chew, would this be a way to be able to use Vapoursynth with RipBot ??

I have been steered in a direction I didn't know existed.....
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 13th March 2022, 10:20   #116  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by Reel.Deel View Post
Same here and VDub2.

Code:
LoadPlugin("RgbAdapt_x64.dll", "grunt.dll") # other plugins were already in the autoload folder
Import("RGBAdapt_Awb_Process v 2021 sept 32 64 bits function.avs")

FFVideoSource("untreated video.mkv")
Crop(0,140,0,-140)
AWB_Func()
Produces correct results.
I have just noticed a bit of an issue with adding scripts like this in RipBot...

You'd have to edit the script EVERY time you added a new encoding job...

Whereas the way it's done in RipBot, the script isn't file name specific, so you can load in ANY file name you want, and then add the desired script later in the Job setup procedure....

If I can figure out how to do it this way, I will then try and get it to work the "RipBot" way.....
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 13th March 2022, 12:31   #117  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
@ Bernardd, @ poisondeathray, @ Reel.Deel, and others...

SUCCESS

I want to thank you guy's for your help with this problem, and apologize for my ignorance / inexperience at this sort of thing.

Up 'til today, I have only known one way to get a script to work in RipBot, but now I know another way, especially with "stubborn" scripts, and the good thing is, I can then use any of the other Custom Filters on top of the imported type, like AWB

So I can now AWB & denoise, degrain, etc, etc all at once.

Now one thing that I have noticed is that importing AWB.avs in, the audio track isn't processed, or am I missing something, again ??? (Can always add it later, I guess)

My test script :-

Code:
LoadPlugin("D:\AWB\GRunT\grunt.dll")
LoadPlugin("D:\AWB\RgbAdapt\RgbAdapt_x64.dll")
LoadPlugin("D:\AWB\RT_Stats\RT_Stats_x64.dll")

Import("D:\AWB\RGBAdapt_Awb_Process.avs")

LoadPlugin("D:\AWB\FFMS\ffms2.dll")
ffms2("D:\AWB\nobody.mkv")
AWB_Func()
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 13th March 2022, 13:20   #118  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
Append
Code:
va=last()
aa=LWLibavAudioSource("D:\AWB\nobody.mkv")
AudioDub(va,aa)
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Old 13th March 2022, 13:50   #119  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: Down Under.
Posts: 965
Quote:
Originally Posted by Emulgator View Post
Append
Code:
va=last()
aa=LWLibavAudioSource("D:\AWB\nobody.mkv")
AudioDub(va,aa)
Script error: There is no function named 'last'.
(D:\AWB\AWB new.avs, line 7)
(C:\Temp\RipBot264temp\job1\getinfo.avs, line 2)

Thanks, tho.
__________________
Long term RipBot264 user.

RipBot264 modded builds..
TDS is offline   Reply With Quote
Old 13th March 2022, 13:57   #120  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Change last() to last
kedautinh12 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 19:43.


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