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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th June 2019, 15:26   #241  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
See edit in my prev post.
Those are for your 64 bit version of avs, you must have used a dual setup installer.
The 64 bit avs requies ALL 64 bit dll's and runtimes.
Can check with eg AvsMeter64 avsinfo

Quote:
I tried your script in windows media player, and it played normally, but without the interpolation.
Yep, that just checked that RT_Stats was no longer a problem.
By the Way, 32 bit MeGUI requires 32 bit AVS, 64 bit MeGUI requires 64 bit AVS (and all associated dll's etc).

The GetSeq thing just replaces you source filter eg AviSourcE(Filename) or ffms(Filename), just substitute remainder of your script after tha Getseq call (using your filename in GetSeq)
__________________
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; 6th June 2019 at 15:32.
StainlessS is offline   Reply With Quote
Old 6th June 2019, 15:29   #242  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
ahhh, ok so do i need to disable the 64 bit or uninstall?
hfrforever is offline   Reply With Quote
Old 6th June 2019, 15:33   #243  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Just leave it alone. You may later want to upgrade to x64 or use sometimes, and use 32 bit other/most times.

Again, see above edit.


EDIT:
Quote:
You may later want to upgrade to x64
But be warned, going x64 can be tricky
__________________
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 ???
StainlessS is offline   Reply With Quote
Old 6th June 2019, 15:39   #244  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
So in full something like this

Code:
Function GetSeq(String vFn,String "aFn") {
    Function IsISOFileName(String s)  {s=RT_GetFileExtension(s) Return(s==".mov"||s==".mp4"||s==".m4v"||s==".3gp"||s==".3g2"||s==".mj2"||s==".dvb"||s==".dcf"||s==".m21")}
    Function IsRiffFileName(String s) {s=RT_GetFileExtension(s) Return(s==".avi"||s==".wav")}
    myName="GetSeq: "                                           aFn = Default(aFn,"")           aFn = (aFn=="") ? vFn : aFn
    Assert(vFn!="",RT_String("%sVFn Cannot be ''",myName))      vFn = vFn.RT_GetFullPathName    IsRiffV = vFn.IsRiffFileName    IsIsoV = vFn.IsISOFileName
    Assert(aFn!="",RT_String("%saFn Cannot be ''",myName))      aFn = aFn.RT_GetFullPathName    IsRiffA = aFn.IsRiffFileName    IsIsoA = aFn.IsISOFileName
    c=0 a=0
    Try { # 1st Try specialized AVI
        c = (IsRiffV)                            ? vFn.AviSource                                                                                                     : NOP
        (c.IsClip)                               ? RT_DebugF("AviSource opened Video\n  '%s'",vFn,name=myName)                                                       : NOP
    } catch (msg) { RT_DebugF("Catch: %s",msg,name=myName) }
    Try {
        a = (c.IsClip && c.HasAudio && aFn==vFn) ? c : (IsRiffA) ? aFn.WavSource                                                                                     : NOP
        (a.IsClip && a.HasAudio)                 ? RT_DebugF("%s opened Audio\n  '%s'",(c.IsClip && c.HasAudio && aFn==vFn)?"AviSource":"WavSource",aFn,name=myName) : NOP
    } catch (msg) { RT_DebugF("Catch: %s",msg,name=myName) }

    # Next try specialized ISO LSMash
    Try {
        IsOpenV=(c.IsClip && c.HasVideo)
        c = (IsIsoV)                       ? LSMASHVideoSource(vFn)                                                : c
        (IsIsoV)                           ? RT_DebugF("LSMASHVideoSource opened Video\n  '%s'",vFn,name=myName)   : NOP
    } catch (msg) { RT_DebugF("Catch: %s",msg,name=myName) }
    Try {
        IsOpenA=(a.IsClip && a.HasAudio)
        a = (IsIsoA)                       ? LSMASHAudioSource(aFn)                                                : a
        (IsIsoA)                           ? RT_DebugF("LSMASHAudioSource opened Audio\n  '%s'",aFn,name=myName)   : NOP
    } catch (msg) { RT_DebugF("Catch: %s",msg,name=myName) }

     # Next try FFMS2
    Try {
        IsOpenV=(c.IsClip && c.HasVideo)
        (!IsOpenV)    ? FFIndex(vFn)                                                    : NOP
        c=(!IsOpenV)  ? FFVideoSource(vFn)                                              : c
        (!IsOpenV)    ? RT_DebugF("FFVideoSource opened Video\n  '%s'",vFn,name=myName) : NOP
    } catch (msg) { RT_DebugF("Catch: %s",msg,name=myName) }
    Try {
        IsOpenA=(a.IsClip && a.HasAudio)
        a=(!IsOpenA)  ? FFAudioSource(aFn)                                              : a
        (!IsOpenA)    ? RT_DebugF("FFAudioSource opened Audio\n  '%s'",aFn,name=myName) : NOP
    } catch (msg) { RT_DebugF("Catch: %s",msg,name=myName) }

    # Next try LSmash non ISO Video
    Try {
        IsOpenV=(c.IsClip && c.HasVideo)
        c = (!IsOpenV && !IsIsoV)          ? LWLibavVideoSource(vFn)                                                : c
        (!IsOpenV && !IsIsoV)              ? RT_DebugF("LWLibavVideoSource opened Video\n  '%s'",vFn,name=myName)   : NOP
    } catch (msg) { RT_DebugF("Catch: %s",msg,name=myName) }
    Try {
        IsOpenA=(a.IsClip && a.HasAudio)
        a = (!IsOpenA && !IsIsoA)      ? LWLibavAudioSource(aFn)                                                : a
        (!IsOpenA && !IsIsoA)          ? RT_DebugF("LWLibavAudioSource opened Audio\n  '%s'",aFn,name=myName)   : NOP
    } catch (msg) { RT_DebugF("Catch: %s",msg,name=myName) }

    Assert(c.IsClip, RT_String("%s failed open on\n  '%s'",myName,vFn))
    (!c.HasAudio && a.IsClip && a.HasAudio) ? AudioDubEx(c,a) : c
    (!HasAudio) ? RT_DebugF("Audio failed Open on\n  '%s",aFn,name=myName) : NOP
    return Last
}

FN="C:\Users\padge\Documents\test video.mp4"

GetSeq(FN)

FrameRateConverter() # defaults FrameRate * 2, both takes and produces clip Last
return Last
OR can save first part of above script as eg "GetSeq.avsi" and put in Plugins, it will autoload.
(the part before FN="... etc")

And use eg just this

Code:
FN="C:\Users\padge\Documents\test video.mp4"

GetSeq(FN)
FrameRateConverter() # defaults FrameRate * 2, both takes and produces clip Last
return Last
__________________
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; 6th June 2019 at 15:42.
StainlessS is offline   Reply With Quote
Old 6th June 2019, 15:41   #245  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
I tried this code and it said i have a syntax error on line 60 column 7

EDIT: in case you were wondering what the error was...

there was an extra quotes mark.

FN=""C:\Users\padge\Documents\test video.mp4"

Last edited by hfrforever; 6th June 2019 at 15:49.
hfrforever is offline   Reply With Quote
Old 6th June 2019, 15:47   #246  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
Okay so i found the error on line 60, but now i have this error.

hfrforever is offline   Reply With Quote
Old 6th June 2019, 15:49   #247  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Yep, sorry I already fixed it. Is doubled Double Quote at beginning of FN, remove one.

FN=""C:\Users\padge\Documents\test video.mp4"

EDIT: Put these two dll's in your SysWOW64 folder [req by FFT3DFilter and DftTest, and MvTools when arg DCT!=0]]

http://www.mediafire.com/file/hv1y09...uz/FFT.7z/file

(Groucho likes to put them somewhere else, but I prefer above [at least for now]).
__________________
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; 6th June 2019 at 16:03.
StainlessS is offline   Reply With Quote
Old 6th June 2019, 15:52   #248  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
Is it safe for me to use 64bit versions of the plugs, or should I only use the 32?
hfrforever is offline   Reply With Quote
Old 6th June 2019, 15:54   #249  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Only in 64 bit plugins, and only with x64 avs (one or other cannot use both at same time, windows thing).
See prev edit.
__________________
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 ???
StainlessS is offline   Reply With Quote
Old 6th June 2019, 16:01   #250  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
i did that and now get this error (sigh)

hfrforever is offline   Reply With Quote
Old 6th June 2019, 16:02   #251  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
is that masktools2?
hfrforever is offline   Reply With Quote
Old 6th June 2019, 16:06   #252  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Yes, thats Masktools2.

Didnt we have a wonderful day, the day we went to Bangor, A beautiful day, we had lunch on the way, and all for under a pound you know,
and on the way back, I cuddled with Jack and opened a bottle of cider, singin' a few of our favourite songs as the wheels went round ...


EDIT: Fiddler's Dram - "Day Trip to Bangor (Didn't We Have a Lovely Time ... https://www.youtube.com/watch?v=wfwQi8L9h8M
__________________
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; 6th June 2019 at 16:30.
StainlessS is offline   Reply With Quote
Old 6th June 2019, 16:08   #253  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
it was mask tools 2. It still says that there is no function named 'RT_String'.

EDIT: I am officially to the ripping hair out stage.

thank you very much for your infinite patience

Last edited by hfrforever; 6th June 2019 at 16:13.
hfrforever is offline   Reply With Quote
Old 6th June 2019, 16:15   #254  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Comment out the FrameRateConvert line (precede with '#' character)
Try in VDub (NOT x64 version, not x64 version media player, MUST use ALL 32bit or ALL 64 bit), if complaining about RT_string, its because its the very first used external
function from dll, I'm guessin' because you are using x64 AVS via x64 player, and ALL plugins are 32 bit, so ALL will fail, its just that RT_string is first in line pending fail.
EDIT: Probably Vdub2 is your favourite bet, as has both x86 and x64 versions.

If works OK, then uncomment.
__________________
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; 6th June 2019 at 16:18.
StainlessS is offline   Reply With Quote
Old 6th June 2019, 16:25   #255  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
i tried it as is, and it seemed to work in vdub (at a really low framerate)
hfrforever is offline   Reply With Quote
Old 6th June 2019, 16:26   #256  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
it also works commented out.
hfrforever is offline   Reply With Quote
Old 6th June 2019, 16:29   #257  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
how can I make it work in megui then? I seem to be using 32bit megui (is in the x86 program files directory, and what I downloaded seems to be 32 bit.
hfrforever is offline   Reply With Quote
Old 6th June 2019, 16:33   #258  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Have you tried in MeGUI since now got it working ? Should work OK unless you have installed 64 bit MeGUI, (which is not quite stable as yet).

EDIT: And yes, motion compensated processing can be slow. (A few years back I spent 3 days rendering a movie [LOTR-ROTK]).
__________________
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; 6th June 2019 at 16:35.
StainlessS is offline   Reply With Quote
Old 6th June 2019, 16:36   #259  |  Link
hfrforever
Registered User
 
Join Date: May 2019
Posts: 44
yes, same error as before.


hfrforever is offline   Reply With Quote
Old 6th June 2019, 16:43   #260  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Check [expand] first line in log, Versions.
__________________
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 ???
StainlessS is offline   Reply With Quote
Reply


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 03:49.


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