03.07.2026, 13:50
Hi buckinpgh,
your script looks good, but note that RefDir must be in the same folder of Video clip.
In your case you must set it to
but you don't have to override these values, so the correct filter should be written in this way
moreover you should rename the script as "extract_refs_every30.vpy" and put it in the folder scripts (please left unchanged the original script extract_refs_edge_ext.vpy).
after this change you need to restart the GUI and now you should be able to select the new script in the combo-box "Extract VPY:"
If the colors looks blended or faded, try to lower the memory frames to 10.
Dan
moreover,
your script looks good, but note that RefDir must be in the same folder of Video clip.
In your case you must set it to
RefDir = r"C:\input\ref_qwen"but you don't have to override these values, so the correct filter should be written in this way
import vapoursynth as vs
import vscmnet2 as cmnet2
core = vs.core
# Read the source video
clip = cmnet2.vs_read_video(source=VideoPath)
# Export frame 0, 30, 60, 90, ...
# In vscmnet2, ref_list=[30] means "export every 30 frames"
clip = cmnet2.vs_export_list_frames(
clip,
sc_framedir=RefDir,
ref_list=[30],
offset=0,
ref_ext="jpg",
ref_jpg_quality=95)
# Pass-through output so vspipe can drive evaluation
clip = core.resize.Bicubic(
clip=clip,
format=vs.YUV420P10,
matrix_s="709",
range_in_s="full",
range_s="limited",
)
clip.set_output()moreover you should rename the script as "extract_refs_every30.vpy" and put it in the folder scripts (please left unchanged the original script extract_refs_edge_ext.vpy).
after this change you need to restart the GUI and now you should be able to select the new script in the combo-box "Extract VPY:"
If the colors looks blended or faded, try to lower the memory frames to 10.
Dan
moreover,

