
Unir Videos Mediante Avisynth
#1
Escrito 11 May 2006 - 11:32 PM
#2
Escrito 12 May 2006 - 12:24 AM
Para unir dos videos (sin audio) necesitas que se cumplan las siguientes condiciones:
1. Resolución idéntica
2. FPS idénticos
3. Colorspace idéntico
4. Comprimidos con el mismo codec
Para dar un ejemplo voy a mencionar dos videos ficticios:
Video1.avi : 640x360, 120 fps, YV12, xvid
Video2.avi : 640x480, 29.97 fps, YUY2, divx
Para unirlos en avisynth con color space Y12 a 640x480 y con 23.976 de fps, escribes el siguiente código:
Video1 = avisource("video1.avi", false).ChangeFPS(23.976).AddBorders(0, 60, 0, 60, $000000).LanczosResize(640x480) Video2 = avisource("video2.avi", false).ConvertToYV12().ChangeFPS(23.976) Final = Video1 + Video2 return Final
No es necesario poner .LanczosResize(640x480) en la primera línea, pero lo dejo ahí como ejemplo.
Espero que sirva.
Este tema ha sido editado por Pako: 12 May 2006 - 12:25 AM
"If a man speaks in the forest and there is no woman there to hear it, is he still wrong?" -- George Carlin
Fansubber retirado.
#3
Escrito 12 May 2006 - 06:57 PM
#4
Escrito 15 May 2006 - 12:17 AM
#5
Escrito 15 May 2006 - 02:35 AM
Para esto, al ser de la misma serie ambos videos son de las mismas dimensiones, color space y FPS (23,976). Con el virtualdub mod identificamos de que cuadro a que cuadro va el opening, asumamos que en ambos casos va de 0 a 2158. El largo total de cada video es 35944 cuadros. Objetivo, armar un EP 2 bueno insertando el opening de EP 1. Así tenemos el siguiente código:
EP1 = avisource("cap01.avi", false).ChangeFPS(23.976).Trim(0,2158) EP2 = avisource("cap02.avi", false).ChangeFPS(23.976).Trim(2159,35944) Final = EP1 + EP2 return Final
El comando trim te permite cortar porciones de un video. Es importante hacer esto sin el audio. El audio puede ser insertado luego de Final o con virtualdub mod o virtualdub.
Espero se entienda.
Este tema ha sido editado por Pako: 15 May 2006 - 02:35 AM
"If a man speaks in the forest and there is no woman there to hear it, is he still wrong?" -- George Carlin
Fansubber retirado.
#6
Escrito 15 May 2006 - 11:42 PM
#7
Guest_Guest_*
#9
Escrito 16 May 2006 - 02:36 PM
"If a man speaks in the forest and there is no woman there to hear it, is he still wrong?" -- George Carlin
Fansubber retirado.
#10
Escrito 16 May 2006 - 05:37 PM
#11
Escrito 16 May 2006 - 10:48 PM
Los ejemplos que di trabajan. ¿Por qué no posteas tu script? Así te digo cual es el error.
aki esta lo que pongo en script
#ASYNTHER
AviSource("D:\Sanctuaryfansub\RAWS\Amaenaideyo!!\Amaenaideyo!! ep 01 (AT-X DivX5.11 640x360 24fps CBR)--directshow_avs_vfapi.avi").ConvertToYV12().ChangeFPS(23.976).Trim{0,3189}
AviSource("C:\Documents and Settings\Suteki\Mis documentos\Op amaenaideyo! AFX calidad.avi").Trim{3189,5348}.ConvertToYV12().ChangeFPS(23.976)
#12
Escrito 17 May 2006 - 12:25 AM
aki esta lo que pongo en script
Prueba este script, tal y como está:
video1 = AviSource("D:\Sanctuaryfansub\RAWS\Amaenaideyo!!\Amaenaideyo!! ep 01 (AT-X DivX5.11 640x360 24fps CBR)--directshow_avs_vfapi.avi", false).ConvertToYV12().ChangeFPS(23.976).Trim(0,3189) video2 = AviSource("C:\Documents and Settings\Suteki\Mis documentos\Op amaenaideyo! AFX calidad.avi", false).ConvertToYV12().ChangeFPS(23.976).Trim(3189,5348) final = video1 + video2 return final
Siempre pon el changefps antes del trim. También reemplacé los "{}" por "()", ese era el error de sintaxis que te daba.
"If a man speaks in the forest and there is no woman there to hear it, is he still wrong?" -- George Carlin
Fansubber retirado.
#13
Escrito 17 May 2006 - 02:30 PM

#14
Escrito 19 May 2006 - 08:58 PM
#15
Escrito 19 May 2006 - 10:54 PM
cuando meto el video al virtual dub me muestra solo hasta la parate donde comienza el opening y no el resto
Si lo estás haciendo como lo posteaste solo mostrará el opening. Si lo haces como yo lo posteé, te mostrará los dos videos juntos.
Cuando quieres unir videos en avisynth siempre tienen que tener la siguiente estructura
video1 = avisource... etc
video2 = avisource... etc
.
.
videoN = avisource... etc
Final = video1 + video2 + ... + videoN
return Final
Así, tipo ecuación. El "return Final" es importante, no olvidarlo.
Este tema ha sido editado por Pako: 19 May 2006 - 11:05 PM
"If a man speaks in the forest and there is no woman there to hear it, is he still wrong?" -- George Carlin
Fansubber retirado.
#16
Escrito 19 May 2006 - 11:08 PM
#17
Escrito 19 May 2006 - 11:30 PM
"If a man speaks in the forest and there is no woman there to hear it, is he still wrong?" -- George Carlin
Fansubber retirado.
#18
Escrito 20 May 2006 - 12:49 AM
si el segundo esta hecho en after effects, y como es eso de cargarlo tal y como esta en virtualdub?, es comprimido con huffyuv, que lo tengo instalado obiamentePues tendría que salirte bien. Si el segundo está hecho con AFX, pues trata de cargarlo tal y como está en virtualdub, si no lo puede abrir es que te falta el decoder.
#19
Escrito 20 May 2006 - 01:34 AM
si el segundo esta hecho en after effects, y como es eso de cargarlo tal y como esta en virtualdub?, es comprimido con huffyuv, que lo tengo instalado obiamente
Pues los abres con el virtualdub, sin avisynth de por medio.
"If a man speaks in the forest and there is no woman there to hear it, is he still wrong?" -- George Carlin
Fansubber retirado.
#20
Escrito 24 July 2006 - 09:08 AM

#21
Escrito 24 July 2006 - 03:13 PM
me podria decir donde bajar el filtro para avisynth poder unir los videos
¿Te has leído el hilo completo?
"If a man speaks in the forest and there is no woman there to hear it, is he still wrong?" -- George Carlin
Fansubber retirado.
1 usuarios están leyendo este tema
0 miembros, 1 invitados, 0 usuarios anónimos