Log in

View Full Version : 100+ Movieparts to encode and paste


st321
20th October 2003, 12:10
Hi,

I just finished cutting my own edition of a movie, pasting together special scenes, cutting out parts, doing some crossover effects, adding few subtitles into the picture ... Problem is I've been working with virtual VFAPI .avi files to be able to work with the original DvD material, but my cutting program isn't too happy about this, and won't encode after 20 minutes or so ... plus the results aren't that good looking.

I've charted 117 seperate sequences, partly from the DvD file, partly from the cutting program, party from the special scenes ... now I would like to encode these parts to DivX files (using DivX 5.1) to then past these parts together and mux them with a sepperatly created ac3 file.

Now 117 sequences would be lot of clicking to do and I'd like to know what batch routine with what programs would be best for me. I need to resize from PAL 720x576 to something like 720x404 (that's 16:9, right?), in good quality of course - no cropping - and maybe a good mirror function would be nice for one sequence (I think Virtual Dub has something like that, at least I think I remeber using that years ago).

st321
20th October 2003, 13:23
Damn, somehow I always manage to post after hours of searching ... just to find it directly after I asked ;)

Well, I sort of found it, just have to learn the details ... apparently with AviSynth I can make a script to load sertain avi files and "trim" them so only a certaine amount of frames are used ... this way I hope to get a file that consists of all my sequences in the right order ...

Maybe a Mod could move this Thread to the apporpriate Forum so I can get more help and infos there ...

Thanks

Mug Funky
20th October 2003, 16:35
good luck!

117 trim functions will get tiresome pretty quick, but if it's the best way...

st321
20th October 2003, 17:58
Originally posted by Mug Funky
but if it's the best way...
Actualy, I don't know, that's why I'm asking ;)

I already went through the work to list up all the timestamps in a table so it wouldn't be all that hard to convert to a txt file (or avs) ... none the less I have these 117 sequences to cut:rolleyes:

geoffwa
21st October 2003, 03:51
Good luck indeed.

The last time I tried to use 100+ AVISources I ran out of file handlers.... (although this was some time ago)

st321
21st October 2003, 17:02
Ok, obviously I have no clue as to how AviSynth works ...

I don't really need 100+ AviSources, I only have 15 avi files or so to take the sequences from, but there are 117 trim functions to do ...

I thought I could simply do something like ...
...
AviSource("File1.avi").Trim(1000,2000).LanczosResize(720,308,2,68,716,440)+\
AviSource("File1.avi").Trim(500,1000).FlipHorizontal.LanczosResize(720,308,2,68,716,440)+\
AviSource("File2.avi").Trim(100,200).LanczosResize(720,308,4,60,712,278).Subtitle("What do you want",360,300,100,200,"Arial",20,$ffffff,$000000,2,0)+\
AviSource("File3.avi").Trim(500,1000).Bob.LanczosResize(720,308,2,68,716,440)+\
...

It works fine if I just use one avi file ... as soon as I try to connect different files I get an output that shows me the first frame of the first file, and then only the last file, and after the last frame of the last file there's only black and VirtualDub might show me an error message in the staus bar about not being able to open the file.

SO I thought I could maybe do

SegmentedAviSource("File.avi")
Trim(1000,2000).LanczosResize(X,Y) + Trim(120000,120100).FlipHorizontal) + ...

But that also doesn't seem to work ... doesn't even want to load the files File.00.avi to File.10.avi as indicated in the Manual :(

I'm using AviSynth 2.52 at the moment, since only 2.5+ is supposed to have the FlipHorizontal function. The avi files are VFAPI Reader Codec 1.05 ... using the MPEG2 Stream of several DvD files or MPEG2 Streams of created clips all without sound. All Files are in diffenent folders, so I'm using exact reference ("E:\Folder\File.avi")

st321
21st October 2003, 18:21
Hehe ... damn again ...

I've been meaning to post the question above all day, but unfortunatly forums were down ... so I had a lot of time to search and experiment ...

Had some troubles getting there, but using mpeg2source() seems to do the trick ... I was able to get the first 10 Sequences out of 4 different files + using some filters together.

I guess I just love talking to myself ... seems to help, anyways ;)

DDogg
21st October 2003, 19:49
My avisynth skills are marginal but here is some information that might help guide you a little. Note that you can use Avisource to load an avisynth script which would allow you to use a d2v created by dvd2avi for all your vob and mpeg2 sources.

I think your problem is going to be keeping the audio in sync.

I think if I were doing a project like this, I would assemble everything into my editor in a contiguous manner and then frameserve out to the encoder. You alluded to having troubles doing this. Maybe you should go back and examine that area to identify the problem?

An example that may help. Not tested by me.
s1=avisource("AviSynth_Script_file.avs")
s2=avisource(moreavistuff.avi")
a=trim(s1,10,100)
b=trim(s1,500,600)
c=trim(s2,4000,4100)
return a+b+c