You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's room for improvement with the output script, both to make it fit in with existing scripts a bit nicer, and to make it a lot more Pythonic.
A couple ideas:
Set core = vs.core instead of c (as this is more standard, so the user doesn't have to find and replace it every single time)
Give clear variable names for every step, rather than calling them all src.
When only one splice exist at the start of a clip, simply use regular Python slicing as opposed to calling std.Splice()
Not adding kinda unnecessary params.
For example: c.std.SelectEvery(clip=src[0:755], cycle=5, offsets=[1,2,3,4,]).
This can be replaced with something like core.std.SelectEvery(src[:755], offsets=[1, 2, 3, 4]) This reduces additional bloat.
Add spaces in stuff like the dec# splices.
Alternatively, put them all in a list that gets passed to Splice. For example:
Creating a Python script that's meant to be imported,
A big annoyance I have with the output is that it's big, and makes scrolling through the entire script a royal pain. Putting the results into its own function meant to be imported into the main script may alleviate this issue somewhat.
Consider requiring a couple more external dependencies.
Namely replacing FTF with the lvsfunc implementation and using VFRSplice from muvsfunc (with settings to set default timecode output path. Maybe make that a function param if you apply the previous suggestion?)
I have my own setup I've been using to try and make my life easier, which is also included here should it prove useful and give you more ideas. Maybe also expose variables for all the selections/deletions/etc. from within an external module that the function to perform everything also uses might work? idk archive.tar.gz
The text was updated successfully, but these errors were encountered:
IMO, SelectEvery decimation should be removed entirely. It's going to add significant clutter no matter what. I believe DeleteFrames creates much less clutter and avoids hundreds of splices in the script.
IMO, SelectEvery decimation should be removed entirely. It's going to add significant clutter no matter what. I believe DeleteFrames creates much less clutter and avoids hundreds of splices in the script.
I suspect that DeleteFrames only is the way to go here and that SelectEvery should be dropped. Debate me!
There's room for improvement with the output script, both to make it fit in with existing scripts a bit nicer, and to make it a lot more Pythonic.
A couple ideas:
core = vs.core
instead ofc
(as this is more standard, so the user doesn't have to find and replace it every single time)src
.std.Splice()
For example:
c.std.SelectEvery(clip=src[0:755], cycle=5, offsets=[1,2,3,4,])
.This can be replaced with something like
core.std.SelectEvery(src[:755], offsets=[1, 2, 3, 4])
This reduces additional bloat.dec#
splices.Splice
. For example:lvsfunc
implementation and using VFRSplice from muvsfunc (with settings to set default timecode output path. Maybe make that a function param if you apply the previous suggestion?)I have my own setup I've been using to try and make my life easier, which is also included here should it prove useful and give you more ideas. Maybe also expose variables for all the selections/deletions/etc. from within an external module that the function to perform everything also uses might work? idk
archive.tar.gz
The text was updated successfully, but these errors were encountered: