View Single Post
Old 2nd February 2016, 23:38   #2  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
text too big for previous post
Code:
Default: SawBones.ini file, created on first use of Sawbones.Exe (can just delete ini file and will be recreated on next execution)
You can edit the "KEY_xxxxx" entries in the [UserKeys] Section, and also the "Comment" entry in the [UserComment] Section.
##############
    [Default]
    COMMENT_1= : SawBones v1.12
    COMMENT_2= : RangeEndIsExclusive: 0 = Avisynth : 1 = VirtualDub
    RangeEndIsExclusive=0
    [UserKeys]
    COMMENT_1= : Accelerator keys:- CTRL=^ ALT=! SHIFT=+ WINDOWS=#
    COMMENT_2= : Accelerators before key characters eg '^{a}' not '{a}^'
    COMMENT_3= : Wrap the character part (excluding ^+!#) in curly braces eg {1} for key 1
    COMMENT_4= : Use Lowercase for alphabetic keys eg {a} not {A}
    COMMENT_5= : Where multiple characters on same keyboard key, use the lower one.
    COMMENT_6= : eg CTRL/SHIFT/ALT/a = '^+!{a}' and CTRL/F1 = '^{F1}'
    COMMENT_7= : Hotkeys must not be in use by system nor by VirtualDub2 main window.
    COMMENT_8= : More=http://www.autoitscript.com/autoit3/docs/functions/Send.htm
    COMMENT_9= : More=http://www.autoitscript.com/autoit3/docs/functions/HotKeySet.htm
    COMMENT10= : Count of currently modified HotKeys = 0
    KEY_DeleteFrame=^{DELETE}
    KEY_DeleteRange=^+{DELETE}
    KEY_CopyFrameFromSourcePrevious=^{F1}
    KEY_CopyFrameFromSourceNext=^{F2}
    KEY_ReplaceFrameWith_FX1=^{1}
    KEY_ReplaceFrameWith_FX2=^{2}
    KEY_ReplaceFrameWith_FX3=^{3}
    KEY_ReplaceFrameWith_FX4=^{4}
    KEY_ReplaceFrameWith_FX5=^{5}
    KEY_ReplaceFrameWith_FX6=^{6}
    KEY_ReplaceFrameWith_FX7=^{7}
    KEY_ReplaceFrameWith_FX8=^{8}
    KEY_ReplaceFrameWith_FX9=^{9}
    KEY_ReplaceRangeWith_FX1=^+{1}
    KEY_ReplaceRangeWith_FX2=^+{2}
    KEY_ReplaceRangeWith_FX3=^+{3}
    KEY_ReplaceRangeWith_FX4=^+{4}
    KEY_ReplaceRangeWith_FX5=^+{5}
    KEY_ReplaceRangeWith_FX6=^+{6}
    KEY_ReplaceRangeWith_FX7=^+{7}
    KEY_ReplaceRangeWith_FX8=^+{8}
    KEY_ReplaceRangeWith_FX9=^+{9}
    KEY_Interpolate_1=^+!{1}
    KEY_Interpolate_2=^+!{2}
    KEY_Interpolate_3=^+!{3}
    KEY_Interpolate_4=^+!{4}
    KEY_Interpolate_5=^+!{5}
    KEY_Interpolate_6=^+!{6}
    KEY_Interpolate_7=^+!{7}
    KEY_Interpolate_8=^+!{8}
    KEY_Interpolate_9=^+!{9}
    KEY_InterpolateRange=^+!{/}
    KEY_NotepadSaveAndRefresh=^+!{,}
    [UserComment]
    Comment=QWERTY_UK
##############

A SawBones created Command file may look something like this:-
(Later commands take presidence so order does matter, Interpolated ranges CANNOT be replaced[error in FrameSurgeon] but can be later deleted)

##############
    DEL 400,449    # Delete frames 400 to 449 (AFTER ALL replacments done, ie as if at end of command file)
    I3  10         # Interp 3 frames 10 -> 12, using 9 and 13 as source
    I   20         # Interp single frame 20, using 19 and 21 as source
    I   24,26      # Interp range 24,26, using 23 and 27 as source (limited to max 9 bad frames).
    CP  40         # Replace frame 40 with frame 39
    CN  41         # Replace frame 41 with frame 42
    FX1 50,199     # replace range 50,199 with same range from FX1 clip
    FX2 300,599    # replace range 300,599 with same range from FX2 clip
##############

        SawBones, is a compiled AutoIt script utility. https://www.autoitscript.com/site/autoit/
    AutoIt was initially designed for PC “roll out” situations to reliably automate and configure thousands of PCs.
    Over time it has become a powerful language that supports complex expressions, user functions, loops and everything
    else that veteran scripters would expect.

    FrameSurgeon.avs requires either AVS+ or GScript, MvTools, RT_Stats, FrameSel, ClipClop and Prune Plugins.

##############
ssS
The stupendous VirtualDub2 (formerly VirtualDubFilterMod, by Shekh the magnificent):- https://forum.doom9.org/showthread.php?t=172021
DebugView (view error and debug messages from various programs):- https://docs.microsoft.com/en-us/sys...oads/debugview
FrameSurgeon sends some messages to DebugView.
EDIT:
When Final=False, Delete commands appear like so (marked for deletion only, only deleted for real when Final=True)
Set FINAL=False when using SawBones.
Reason:- If a frame were deleted for real in FrameSurgeon, then any deletes following that frame would (in sawbones) all be off by 1 frame.
Off by 1 frame thing would not affect non delete edits, as deletes are processed only after all other edits are done.
(SawBones/VirtualDub2, have no idea what Avisynth has deleted before clip was loaded into VirtualDub)
One additional advantage of the Dummy Delete frames is that you can see what will be deleted when FINAL=True.
__________________
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; 13th August 2022 at 15:51. Reason: Update
StainlessS is offline   Reply With Quote