Log in

View Full Version : Can't join two clips


Kaiousama
16th March 2003, 14:28
I'm having problems in joining 2 clips via avisynth:

Clip1: is from an avi file 640x480, 23.976 (readed from vdub) framerate, encoded with divx5.x, audio 48khz vbr mp3

Clip2: is from a vob, loaded with mpeg2dec3, resized to 640x480, decombed to 23.976fps (readed from the same vdub), audio added to the clip with ac3source (48khz ac3)

When I make a classical

Output= clip1 + clip2

and i load the script in virtualdub it says an aseptical -cannot join: clips' format is not the same- (maybe words aren't exactly that but the meaning is that)

I've tried to join the two clips without audio (maybe the problem was there) but the result error message is still the same.
Do you have any idea of what could be the problem or what can i examine to find what is it?

@ Shodan & avisynth authors: is it possible to make avisynth more specific in telling which is the parameter (framerate, resolution,colorspace) that doesn't match when you're joining two clips? tnx

sh0dan
16th March 2003, 15:12
Have you tried 2.5.1?

It contains this bugfix: Fixed Splice problems with YV12 from different sources. Audio is now automatically converted to the same format.

Kaiousama
16th March 2003, 16:20
Yes the joining problem was due to my old avisynth's version bug, but now for one problem solved one other is jumped out:

i've problems cropping the video, both using the first or the alternative cropping method reported in the script, when i open thescript i receive this error message:
"Crop: YUV images can only be cropped by even numbers (left side)"
What's wrong ?_?

The script used is:

LoadPlugin("C:\DivX\Avisynth25\ac3source.dll")
LoadPlugin("C:\DivX\Avisynth25\decomb.dll")
LoadPlugin("C:\DivX\Avisynth25\mpeg2dec3.dll")
LoadPlugin("C:\DivX\Avisynth25\vsfilter.dll")
LoadPlugin("C:\DivX\Avisynth25\warpsharp.dll")

# --> Clip1 Opening <--
Clip1=avisource("d:\pita\op\pitaop24.avi")

# --> Clip2 Opening <--
Video2=mpeg2source("D:\Pita\Vob04\ep04.d2v")
Video2=Video2.Crop (13,4,692,472)
# Alternative Crop -> Video2=Video2.Crop (13,4,-15,-4)
Video2=Video2.Telecide(post=false,reverse=false,chroma=false).Decimate()

Audio2=wavsource("D:\Pita\Vob04\VTS_01_PGC_01_1 - 0x80 - Audio - AC3 - 2ch - 48kHz - DRC - Japanese - DELAY -139ms.wav")

Clip2=audiodub(Video2,Audio2).trim(2340,34220)

# --> Clip1+2 Joining <--

Output=Clip1 + Clip2
return(Output)

P.S. The dumbest bugfix: the dll version information is not updated to 2.5.1 (if you right-click avisynth.dll and you look to version you'll see 2.5.0), obviously a version() script removes any doubt regarding the version ^_^

P.P.S. What about the possibily to download only the avisynth.dll in addition to the full installer package (it could be useful for all like me that are using both avisynth 2.0.x and 2.5.x on the same pc)?

esby
17th March 2003, 02:33
Crop (13,4,-15,-4)
Wrong ( 13 ; -15 are odd)
Crop (13,4,692,472)
Wrong too ( 13 odd)

Even if you remove 28 pixels in width, since the script check coordinates you'll end with an error.

If you need to crop by odd numbers, convert to RGB.
Or crop by one more pixel...

esby