Encuesta: ¿Quien teme al lobo feroz?
Las encuestas no funcionan
pené
[Mostrar resultados]
 
Nota: Esta es una encuesta pública, otros usuarios verán por quién votaste.
Calificación:
  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5
Insertar video dentro de un video
#4
Y con Avisynth al igual que se pega un cartel.

Código:
function insertsignxy(clip mainclip, clip overlayclip, int startframe, int "endframe", int "x", int "y") {
x=default(x,0)
y=default(y,0)
endframe = default(endframe,startframe+overlayclip.framecount()-1)
endframe = (endframe == 0) ? startframe+overlayclip.framecount()-1 : endframe
endframe = (endframe >= mainclip.framecount()-1) ? mainclip.framecount()-1 : endframe
    
begin    = (startframe == 1) ? mainclip.trim(0,-1) : mainclip.trim(0,startframe-1)
middle    = mainclip.trim(startframe,endframe)
end    = (endframe == mainclip.framecount()-1) ? blankclip(mainclip,length=0) : mainclip.trim(endframe+1,0)

middleoverlay = Overlay(middle, overlayclip, x, y, mask=overlayclip.showalpha())
final = (startframe == 0) ? middleoverlay ++ end : begin ++ middleoverlay ++ end
return final
}

Código:
video = avisource("video.avi")
pegote = avisource("pegote.avi")
insertsignxy(video,pegote,666,9001,20,20)

Cambia avisource por el source que quieras (dss2, ffms, dg...), 666 y 9001 por el inicio y el final, y los 20 por las coordenadas de donde quieras pegarlo.
[Imagen: Necrontyr.png]
Responder


Mensajes en este tema
Insertar video dentro de un video - por LoKo - 05-29-2012, 03:45 PM
RE: Insertar video dentro de un video - por Reboot - 05-29-2012, 04:18 PM
RE: Insertar video dentro de un video - por Kharn - 05-29-2012, 05:20 PM
RE: Insertar video dentro de un video - por LoKo - 06-10-2012, 09:25 PM

Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)