PDA

View Full Version : Can someone write a whole script for me, please?


safigo
11th December 2002, 18:02
Hi!

For instance:
I've got a movie in two cd's. I want a fade out (video/audio) at the end of the first one and a fade in (video/audio) at the beggining of the second cd. I'm trying to understand how to do that at the forum, websites, but I donīt know very well how to write perfectly a script in Avisynth.

So, can someone write a whole script for me, please?
(For instance,
- filename/frames of movie in 1st cd: "C:\movie1.avi" / 91437 fps
- filename/frames of movie in 2nd cd: "C:\movie2.avi" / 88906 fps
- last version of Avisynth)

Next, with that script, what I have to do?

I would appreciate the help.
Thanks.

matrix
12th December 2002, 02:54
Try something like this:

First script
clip=AviSource("C:\movie1.avi")
FadeOut(clip,100)
ResampleAudio(44100)


Second script
clip=AviSource("C:\movie2.avi")
Reverse(FadeOut(clip,100))
ResampleAudio(44100)

These are for a 100 frames fadein and fadeout. Change the # of frames if you want.

Load the script in your encoder and let it roll.
Last line, ResampleAudio line, is for CCE if you are going to use it. For Tmpg, you can remove it.

hakko504
13th December 2002, 18:48
FadeIn is implemented in latest version of AVIsynth. Get it here (http://sourceforge.net/projects/avisynth2)

safigo
16th December 2002, 17:36
First of all, thanks for the answers.

Matrix, the option "ResampleAudio" is just for mp3, isn't it?
But, what codeline should I use for 5.1 sound?

matrix
17th December 2002, 03:23
the option "ResampleAudio" is just for mp3, isn't it?
No. Resampleaudio is a way of making CCE to take the script without crashing.
I don't really think anybody here uses CCE to encode both video and audio. Most people use CCE for video only, and do the audio separate.
But I guess you can do them toghether.

Basically if the encoder takes your file, those scripts will do the fadein and out for both, video and audio.
You might have to extract the audio to wave somehow, and then the first line of the script would look like this:

clip=AudioDub(AviSource("C:\movie1.avi"),WavSource(("C:\movie1.wav"))
But, what codeline should I use for 5.1 sound?
You'll have to give some more details here. If not me, somebody else might be able to help you.
What format is your audio now? What format do you want to have it in the end? What are you trying to do, SVCD, VCD or something you'll play on computer only?

safigo
24th December 2002, 01:08
Well, this is the required information:
- I've got an avi movie with the following audio information from VirtualDub (sampling rate - 48000Hz / channels - 2(stereo) / sample precision - 0-bit / compression - franhofer IIS MPEG Layer-3 codec);
- I want to have the same format at the end;
- I want to see the movie at the computer.
However, I think this information isn't necessary now because I can already make fade out. BUT there is another problem. Can you solve me that?


PROBLEM
There goes here the script I've made:

clip=AviSource("F:\1.avi")
FadeOut(clip,100)

I open the VirtualDub with this script and I put the video and the audio in Direct Stream Copy. BUT the resulting file is so large that I can't save it and I want to save it in a 700Mb cd. When it makes the fade out it "jumps" frame a frame.

What advice would you give me so that the file can fit in a 700Mb cd and so that it doesn't "jump"? Can you teach me step by step what to do in VirtualDub?

Help me, please, because I'm getting desesperate and I don't know what to do...

matrix
24th December 2002, 01:53
You should check the divx forums, if you want to watch it on computer. And also there are guides on the main doom9 page.
I'm afraid I can't be of any help in that matter. Sorry. I never did divx, so I don't know how to do it.