PDA

View Full Version : joined clips - audio short (solved)


iradic
21st September 2004, 15:44
hi

i wanted to join short clips (1 min) in avsynth so i could get one longer clip (7 min) (better for codec)...so when i create avs and open it in vdubmod audio length isnt the same one second is missing... i thought no matter, but encoded video isnt in sync with audio (slowly changes towards end of clip becoming more and more obvious)...

avs:
SOURCE.AVS
clip01
mpeg2source
wavsource
audiodub
clip02
mpeg2source
wavsource
audiodub
...

INPUT.AVS
import source.avs
deinterlacing
resizing
filtering
changefps(15) # original fps=25, audio is the same length in vdub with or without changefps

every clip individually is shorf a little bit of audio, and when joined this is a sum of that...
also wav is 48 hz and codec is cook at 44 hz but i dont think its problem

does anyone knows a solution for this (one clip for encoding and audio in sync, or same length)?
thanks

[EDIT]
Added silence to each wav to compensate...

stickboy
21st September 2004, 19:52
Where did you actually join the two clips together? Your pseudo-scripts are missing that step... (You should post your exact scripts!)

Did you use AlignedSplice (++) or UnalignedSplice (+) ?

iradic
21st September 2004, 20:58
your way seems better :)

i used + instead of ++ ... well, next time i will do better...