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 > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 14th March 2020, 18:51   #1  |  Link
josemaria.alkala
Registered User
 
Join Date: Apr 2010
Posts: 16
Function to update a frame in C language

I am not sure if what I am going to ask is possible.

I have been taking a look at writting plugins, but I don't want to create a whole plugin. I would like to know just the bare minimum to create a function that reads frames from a node and expose a node for the following filter.

I know how to read the frames and planes from a node. I know how to create a new frame, but how do I create a new node, with the frames to put it in a VSMap.

How can I do that? What options do I have?
josemaria.alkala is offline   Reply With Quote
Old 15th March 2020, 06:55   #2  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
If you're talking about writing "plugin in python script", i.e. not actually the binary plugin, but a script that changes data in frames or altering frame properties, there is core.std.ModifyFrame() for that purposes.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 15th March 2020, 22:19   #3  |  Link
josemaria.alkala
Registered User
 
Join Date: Apr 2010
Posts: 16
From what I have read so far, it looks like I need to register the function in order to be able to use it. It is like

- registerFunction
- createFilter
- Init
- getFrame
- freeFrame

Do I also need to embed it in a plugin or I can use it straigh away?
josemaria.alkala is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:41.


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