PDA

View Full Version : Avisynth: Video and Audio Editing


LFer
5th December 2007, 16:40
Hello! I've tryied to create an AviSynth script to join 9 sections of a movie I want to convert to DVD. It deinterlaces it using the wonderful TomsMoCompo plugin to do the task and changes the resolution of them to a fixed one (as some of them have a different resolution than the others, which wouldn't allow the joining). On the 4th sample it also cut the last seconds, as it only contains black frames, which lead to audio desyncronization.

The problem I'm facing is the following: I cannot extract the full audio using VirtualDubMod. When I try to do so, it extracts a file whose filesize is more than 4 gigabytes (as it is in wav format), but when I try to play it on any audio player it only has the duration of the first file, which is aproximatelly 45 minutes.

If I try to execute the script in MediaPlayerClassic it works perfectly, all the filters are correctly applyed and the audio is on sync. The video is XviD and the audio is AC3 2 channels.

Does anybody know if I'm making something wrong? Or is it a bug in AviSynth? Perhaps I have to load another plugin for decoding the audio, but which? Any help is welcome!

Below is my avisynth script. I'm just learning to use this very powerful tool, so, perhaps this is not the best way of doing what I intend to do.

LoadPlugin ("C:\Arquivos de programas\AviSynth 2.5\plugins\BicublinResize.dll")

a = AviSource ("O.Tempo.e.o.Vento.01.DvDRiP.Xvid.eMovies.[ShareBrasil].avi").TomsMoComp (1, 15, 1).BicublinResize (720, 480, 0.3, 0.3)
b = AviSource ("O.Tempo.e.o.Vento.02.DvDRiP.Xvid.eMovies.[ShareBrasil].avi").TomsMoComp (1, 15, 1).BicublinResize (720, 480, 0.3, 0.3)
c = AviSource ("O.Tempo.e.o.Vento.03.DvDRiP.Xvid.eMovies.[ShareBrasil].avi").TomsMoComp (1, 15, 1).BicublinResize (720, 480, 0.3, 0.3)
d = AviSource ("O.Tempo.e.o.Vento.04.DvDRiP.Xvid.eMovies.[ShareBrasil].avi").Trim (0, 78921).TomsMoComp (1, 15, 1).BicublinResize (720, 480, 0.3, 0.3)
e = AviSource ("O.Tempo.e.o.Vento.05.DvDRiP.Xvid.eMovies.[ShareBrasil].avi").TomsMoComp (1, 15, 1).BicublinResize (720, 480, 0.3, 0.3)
f = AviSource ("O.Tempo.e.o.Vento.06.DvDRiP.Xvid.eMovies.[ShareBrasil].avi").TomsMoComp (1, 15, 1).BicublinResize (720, 480, 0.3, 0.3)
g = AviSource ("O.Tempo.e.o.Vento.07.DvDRiP.Xvid.eMovies.[ShareBrasil].avi").TomsMoComp (1, 15, 1).BicublinResize (720, 480, 0.3, 0.3)
h = AviSource ("O.Tempo.e.o.Vento.08.DvDRiP.Xvid.eMovies.[ShareBrasil].avi").TomsMoComp (1, 15, 1).BicublinResize (720, 480, 0.3, 0.3)
i = AviSource ("O.Tempo.e.o.Vento.09.DvDRiP.Xvid.eMovies.[ShareBrasil].avi").TomsMoComp (1, 15, 1).BicublinResize (720, 480, 0.3, 0.3)

UnalignedSplice (a, b, c, d, e, f, g, h, i)

Wilbert
5th December 2007, 18:59
Sorry, no talk about downloaded movies. See rule 6.