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. |
![]() |
#4561 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,497
|
Attach a debugger, duh. If there's no error message then your own code crashed inside the getframe function.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
![]() |
![]() |
![]() |
#4563 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,497
|
Quote:
https://github.com/vapoursynth/vs-mi...lters.cpp#L132
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
![]() |
![]() |
![]() |
#4564 | Link | |
Registered User
Join Date: Sep 2006
Posts: 1,643
|
Quote:
Last edited by lansing; 28th October 2021 at 22:19. |
|
![]() |
![]() |
![]() |
#4565 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,497
|
Quote:
Not the best example but few places do this in the VS code (see unpackRGB32Create): https://github.com/vapoursynth/vapou...ompat.cpp#L897
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
![]() |
![]() |
![]() |
#4566 | Link | |
Registered User
Join Date: Sep 2006
Posts: 1,643
|
Quote:
Code:
static const VSFrame *VS_CC firstGetFrame() {} static const VSFrame *VS_CC finalGetFrame() { return frame; } void VS_CC filterCreate() { d.node = vsapi->mapGetNode(in, "clip", 0, 0); // call invoke on node VSNode * node2 = vsapi->createVideoFilter2(firstGetFrame, freeFunc1, data); // call invoke on node2 d.node = node2; vsapi->createVideoFilter(finalGetFrame, freeFunc2, data); } |
|
![]() |
![]() |
![]() |
#4568 | Link |
Registered User
Join Date: Sep 2006
Posts: 1,643
|
I'm seeing two patterns from the examples above about chaining invoke, it got me confused:
Code:
#1: invmap2 = vsapi->invoke(stdplugin, "Trim", invmap); ... vsapi->mapConsumeNode(invmap, "clipb", vsapi->mapGetNode(invmap2, "clip", 0, nullptr), maAppend); ... invmap2 = vsapi->invoke(stdplugin, "PlaneStats", invmap); #2 vsapi->createVideoFilter(vtmp2, "BoxBlur", xxx); vtmp1 = vsapi->invoke(stdplugin, "Transpose", vtmp2); But in the second example, the resulting map just go straight to an invoke without the node consume? |
![]() |
![]() |
![]() |
#4569 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,497
|
Sometimes thebmap returned from invoke has the right contents and then it can be passed to invoke immediately. If it doesn't you have have to do more map manipulation.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
![]() |
![]() |
![]() |
#4570 | Link | |
Registered User
Join Date: Sep 2006
Posts: 1,643
|
Quote:
|
|
![]() |
![]() |
![]() |
#4571 | Link |
Registered User
Join Date: Sep 2006
Posts: 1,643
|
Format conversion from a Shuffleplanes causes a shift in chroma?
Code:
clip = yuv_clip clip = core.std.ShufflePlanes(clip, 0, colorfamily=vs.YUV) #clip = core.resize.Point(clip, format=vs.YUV444P8) // no shift clip = core.resize.Point(clip, format=vs.YUV420P8) // chroma shift |
![]() |
![]() |
![]() |
#4575 | Link |
Registered User
Join Date: Sep 2006
Posts: 1,643
|
When extracting RGB planes from a RGB clip, Shuffleplanes is outputting the wrong clip if I set the "colorfamily" to YUV
Code:
rgb_clip = core.resize.Point(clip, matrix_in_s="709", format=vs.RGB24) clip = core.std.ShufflePlanes(rgb_clip, 0, colorfamily=vs.YUV) |
![]() |
![]() |
![]() |
#4576 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,744
|
Is there a replacement for https://github.com/AmusementClub/VapourSynth-EEDI2CUDA ? ( repo was deleted)
If not then I will remove it from vsrepo.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository |
![]() |
![]() |
![]() |
#4578 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,744
|
No releases
![]()
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository |
![]() |
![]() |
![]() |
#4579 | Link |
Registered User
Join Date: Jan 2018
Posts: 1,639
|
Here: https://github.com/kedaitinh12/Vapou...2CUDA/releases
And i ain't a developer, if anyone have attention that project can folk them ![]() |
![]() |
![]() |
![]() |
Tags |
speed, vaporware, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|