martes, 15 de enero de 2008

POST 0009 - Script gfvx Firts Version

Esta es la primera versión del script para las transiciones de Video

En la carpeta del Proyecto debemos tener:
  • VideoA
  • VideoB
  • data.txt
  • gfvx.blend
  • gfvx_script.py
La estructura del archivo "data.txt" es la siguiente

VideoA,"Frame inicial","Frame final",
VideoB,"Frame inicial","Frame final",
"FPS"," X size","Ysize","Output_Format",
"Scene Number",
ejemplo:
dual_heat.mp4,1,12,
dual_heatB.mp4,12,30,
25,640,480,AVIJPEG,
01.00002,
Output_Format puede ser cualquiera de las siguientes constantes:
  • AVIRAW
  • AVIJPEG
El renderizado de la transición es por linea de comandos

blender -b gfvx.blend -P gfvx_script.py
El resultado lo tendremos en la carpeta del proyecto.

LINK de Descarga

-------------------------------------------------------------------------------------
This is the first version of the script for Video transitions

In "Project" folder must have:
  • VideoA
  • VideoB
  • data.txt
  • gfvx.blend
  • gfvx_script.py
The structure of "data.txt" is as follows:

VideoA,"Start Frame","End Frame",
VideoB,"Start Frame","End Frame",
"FPS"," X size","Ysize","Output_Format",
"Scene Number",
Example:
dual_heat.mp4,1,12,
dual_heatB.mp4,12,30,
25,640,480,AVIJPEG,
01.00002,
Output_Format can be any of the following constants:
  • AVIRAW
  • AVIJPEG
Rendering of the transition is by command line
blender -b gfvx.blend -P gfvx_script.py
The result will have on the "project" folder.


Download LINK

3 comentarios:

Tin2tin dijo...

Very nice transitions! And great progress in your project. I'm working on a free slideshow program called "DVD slideshow GUI" and at some point it could be fun to try to add an option for your 3D transitions.

Two questions: Why is do you need 2 "End Frame" values and not just use one "Lenght/Duration" value? And does the transitions "respect" the Start-End=duration so they always are finished before the end of the duration?

marquitux dijo...

hi, thanks for the feedback!
good luck on yours, I will google it to find out more of it; if you need more information about gvfx just say.

the in/out values in the clips is useless now... because gvfx wirks only in 100 frames, but in the next release, alex will add a SCALE animation to any length so LENGTH = (OUTFRAME) - (INFRAME)

so why you ned a OUT value in B clip? ... well for nothing rigth now but I was thinking somedaywe could accelerate clip a or clip B to make it interesting, so you could send 50 frames length clips and the transition in timeline could be 2000 or 500, so you could get slow motion or fast cammera (if blender supports it) so we leaved A LOT OF OPEN DOORS, to EXPAND GVFX, but rigth now... are useless but must fill them anyway :)

If you plan to implement it on your project, please, create an options for the blender call and its parameters, because the user may have many different versions ob blenderbuilds in his disk, and he may want to use a /bluilds/blender or a /home/pepe/blender/blender call... so leave that door open, but by default must be /usr/bin/blender (in linux, in windows its default location), and gvfx default location would be /home/username/gvfx so any video editing app can use the same transitions, and the user can find it fast to edit his/our transitions, but you could leave the user specify other path :) so he could have many gvfx instaces for differente porposes.

GVFX for DVD buttons: I don´t know much about xml authoring, just the basics.. and that´s horrible (commandlines???), in linux is a nigthmare. So I will make a new blendfile with ONLY DVD MENU-PAGES so you can pick one, and a modifies version of alex´ś script can read many clips from a similar textfile, and map them into predefine buttons, the video editing app, just have to fill thos values with markers from the timeline, so we could have something like adobe premiere pro 2 DVd templates... but maybe if your app is more sophisticated, you could find a way to read those values (file/import) and you will get the markers to use with your soft, and the editor would never have to use commandlines, he is in a editin app, and create DVd markers in his timeline, and then open a dialog, which says:
1-create GVFX menus and burn DVD
2-create DVD slideshow

you see? that can grow exponentially. so far Open Movie Editor is fully implementing GVFX, and actually has a REALTIME distort which will be used to have the simple transitions in realtime (prerendered).

thanks for the feedback, come back soon!
marquitux.

Eibriel dijo...

Hola Marcos, quería felicitarte por los trabajos que estás realizando en el ámbito del Soft Libre para TV.
Te comento que yo también intento dejar mi granito de arena, de mi parte intentando desarrollar un programa similar al Nuke/Shake/Fusion (y quizas algún programa de edición con el que se complemente), pero recién estoy empezando a ver que opciones hay y por donde arrancar.

Viendo los avances del OpenMovieEditor voy a intentar mirarlo para ver que puedo aprender y si puedo dar una mano.
En cuanto a los Script de Blender me parecen una idea genial en cuanto a la capacidad de "enlazar" diferentes programas entre si.

Yo todavía no conozco bien como funcionan los scripts de Python, sin embargo estoy pensando en usar ese lenguaje de programación para hacer mi programa (al menos en parte).

Te dejo links por si queres ir viendo de que se trata..

http://www.tentaculoimagen.com.ar/desarrollo
http://ailen.sourceforge.net/foro

Saludos! Voy a estar pasando por acá seguido
Gabriel

Search This Blog