Log in

View Full Version : Some questions...


Shernand
20th May 2004, 20:16
Hi,
I'm using Avisynth 2.54 and Virtualdub 1.5.10

I have the following avs script :

------------------------------------------------------------
a=AVISource("C:\Clip01.Avi")
b=AVISource("C:\Clip02.Avi").ChangeFPS(24).BicubicResize(512,276).AddBorders(0,54,0,54).Resampleaudio(44100)
c=AVISource("C:\Clip03.Avi").ChangeFPS(24).BicubicResize(512,384)
d=AVISource("C:\Clip04.Avi").ChangeFPS(24).BicubicResize(512,384)
e=AVISource("C:\Clip05.Avi").ChangeFPS(24).BicubicResize(512,384)
f=AVISource("C:\Clip06.Avi").ChangeFPS(24).BicubicResize(512,384)
g=AVISource("C:\Clip07.Avi").ChangeFPS(24).BicubicResize(512,384)
h=AVISource("C:\Clip08.Avi").ChangeFPS(24).BicubicResize(512,384)
i=AVISource("C:\Clip09.Avi").ChangeFPS(24).BicubicResize(512,384)
j=AVISource("C:\Clip10.Avi").ChangeFPS(24).BicubicResize(512,384)
k=AVISource("C:\Clip11.Avi").ChangeFPS(24).BicubicResize(512,384)
l=AVISource("C:\Clip12.Avi").ChangeFPS(24)
AlignedSplice(a,b,c,d,e,f,g,h,i,j,k,l)
-------------------------------------------------------------

Since all the clips have MP3 or VBR-MP3 soundtracks, i wanted to know where to "insert" the EnsureVBRMP3Sync (after the change fps, before the resample).
Also, another question, for avs compressing to xvid 1.0, is it better to use virtualdub or virtualdubmod?

Note 1 : I use bicubic due that resulting clip will be of small bitrate.
Note 2 : I use ChangeFPS due that using ConvertFPS crashes Avisynth (Tested also on latest 2.55)
Note 3 : I use Resampleaudio due that SSRC crashes Avisynth (Tested also on latest 2.55)

Thanks in advance for all the help you people could give me ;)

-- Shernand

esby
20th May 2004, 21:05
Well

I'll put the EnsureVBRMP3Sync() after your source loader, if you are using VBR mp3. I suppose it has no real incidence, but it might be better to declare a vbr mp3 at the source, at least for avoiding complexity.


For your vdub or vdubmod question, if you are not using any vdub filters in vdub, and want to process in yv12, go for vdubmod in fast recompress.
If you want to use another container than avi, go for vdubmod.
If you don't really care, go for vdub.
Just be sure to use a non 'bugged' version(bugged in the meaning that some versions have known bugs, like not cutting at the wanted point...)

You can even use avs2avi, if you don't care about preview.


esby


PS:
just out of curiousity, what are clip01 to clip12.avi clips?
if you need to keep sync, and compatibility for each, and keeping audio, are they like cutted advertising or is it a music video case?

and of course, you could somewhat 'simplify':

function source1(string filename){
return avisource(filename).assumeVBRMp3().ChangeFPS(24).BicubicResize(512,384)
}

function source2(string filename){
return avisource(filename).assumeVBRMp3().ChangeFPS(24).BicubicResize(512,276).AddBorders(0,54,0,54).Resampleaudio(44100)
}

a = source1("Clip01.Avi")
b = source2("Clip02.Avi")
c = source1("Clip03.Avi")
d = source1("Clip04.Avi")
e = source1("Clip05.Avi")
f = source1("Clip06.Avi")
g = source1("Clip07.Avi")
h = source1("Clip08.Avi")
i = source1("Clip09.Avi")
j = source1("Clip10.Avi")
k = source1("Clip11.Avi")
l = source1("Clip12.Avi")
AlignedSplice(a,b,c,d,e,f,g,h,i,j,k,l)

Shernand
20th May 2004, 21:17
Thanks for the quick answer esby ;)

The clips are some Anime Music Videos and Some Anime Episodes (Total : 2 Hours) that i would like to put together for an anime meeting instead of making a playlist (due that they also have some advertising in the middle, etc).

I think i'll stay with the latest official virtualdub with xvid, in fact, i'm pretty amazed due to the enconding speed and image quality compared to divx 5.1.1.

Also, i've checked out avs2avi, it's a nice idea, but how i do specify that i want the sound compressed with DivX Audio?

And last but not least, do you use the latest Avisynth CVS or you stick to the 2.54 "stable" one?

Thanks

-- Shernand

esby
20th May 2004, 22:31
Normal users should use the stable release (lattest 2.54).
I use a modified cvs one, but only because i need some extra functionnality, which a normal user does not need.

Avs2avi can't encode the audio (yet),
but you can save it in vdub,
and happend it when muxing.

To be back on the subject,
having a playlist is a safer solution to me,
since you are reencoding the samples you want to show...
(thus degrading them),
so unless you added extras to them, no need to reencode.

For the advertising you want to cut,
cut them on the samples in direct stream copy,
without reencoding with vdub.
That's a better method.
Otherwise, just use a software with good playlist capacities.

esby

Shernand
20th May 2004, 22:42
I just upgraded to 2.55 again due that it seems pretty stable right now ;)

Yes, i can save the audio with virtualdub, but i don't have the diskspace needed for it and i'm also afraid of desync issues when i mux it back...

Btw, is it avs2avi any faster than virtualdub when encoding?

And yes, i know that the playlist is the more "sane" and "loseless" solution, but i don't have control over the machine that plays the videos, so the only way to be sure that they will play it right is to recode to one big file.

Going back to EnsureMp3Sync, i found this thread

http://forum.doom9.org/showthread.php?s=&threadid=75007&highlight=EnsureVBRMP3Sync

where it's discussed, and sh0dan recommends to use it for ALL compressed audio sources.

Thanks,
Shernand

esby
20th May 2004, 22:59
Btw, is it avs2avi any faster than virtualdub when encoding?

Try yourself, I guess you won't spot any particular differences.
It justs that you can automatize steps with avs2avi in a command line way.

... so the only way to be sure that they will play it right is to recode to one big file.

That's not true, you just have to ensure you can install the needed software to playback the list.
Automated playbacking can be done.
It has the advantage that you don't have to worry about sound synchronisation, and if the application is going to crash, it could crashes anyway with a normal long file. And of course quality is kept.

You can just try saving the playlist, and test how it will reacts on the target machine.

esby

esby
20th May 2004, 23:12
for playlist,
you could try that:

create a blank textfile (notepad)

and put that inside of it:

<Asx Version = "3.0">

<Entry>
<Ref href = "clip01.avi"/>
</Entry>

<Entry>
<Ref href = "clip02.avi"/>
</Entry>

(...)

</Asx>

rename it to something.asx
and try...