Forums [Archives] Forums [Archives] (
-   Avisynth Scripting (
-   -   Avisynth: Concatenating multiple AVI files? (

Scav 05-01-2002 02:03 PM

Avisynth: Concatenating multiple AVI files?
Hello all,

Has anyone used the avisynth feature that allows you to treat multiple avi input files as one long logically joined file? Like so:
Avisource(file1) + avisource(file2) + etc....

Whenever I try to load the such a .avs file into Tmpgenc, it gives me an error (in the Tmpeg preview window) about some pointer being out of range, or outside the file boundary, or something like that (I'm at work, and so don't have the exact text in front of me.)
Has anyone encountered this and if so, what do I need to fix? It would be nice to use this method instead of fileserving in direct stream copy mode from Virtualdub.
Any help would greatly appreciated.

el_mero_zooter 05-01-2002 04:47 PM


I haven't used avisynth for a while so the guyz who are using it may pitch in better ideas. I find virtual dub easier to use for the extra filters that are not ported to avisynth. Everyone has their 'best' setup which is always subjective. But i'd try something like the following that DDogg suggested:

return vclip1

Save this script as combine.avs. Try opening it with windows media player.
If it doesnt open try running the avs through the Vfapi Codec/Converter "VFAPIConv-EN.exe" . Make sure you have the codec installed first.

Then try loading this combine_avs-vfapi.avi into tmpgenc and see if this loads.

Goodluck, and if you get it solved post your steps for future reference.


energy80s 05-05-2002 10:08 AM

Does this combine feature also work with MPEGs?? I would like to use VDub to combine 2 or 3 MPEG files before encoding with TMPGenc, would a similar script work?

el_mero_zooter 05-06-2002 11:37 AM


Although vdub can open mpg1 files, [ if all the mpg's you have are the same type, {mpg1, vbr, 352x240/480, 1150 or less, 224 or less etc...} then you can try joining them with a small app MGPJoin, tmpgenc's MPEGTools, filemerger {is use this for joining vob's or mpg2's}, or mpgvcr. ] i'm not sure if it will let you join them , save them, without re-encoding by doing a Direct Stream Copy, without using an mpg1 codec like DVMpeg or something. If you needed to edit the movie(s), then i could see this working by importing the clips, editing, and then frameserving to tmpgenc/kvcd.

i'd give mpgvcr, tmpgenc-mpegtools, or even mpgscissors, to join and then encode.


Scav 05-20-2002 07:21 AM

Hey all,

Well, I finally got time to fool with this again. After actually reading the reference guide for Avisynth (RTFM!), I tried the 'last resort' suggestion in the guide, which is to use directshowsource(). I was able to concatenate my input avi files using this function, but all I get is the video. Directshowsource() doesn't seem to include the audio when I load the avs file as the video source in Tmpeg. Is this how directshowsource() is supposed to work, or am I missing something?

All times are GMT -5. The time now is 03:17 AM  —  vBulletin Jelsoft Enterprises Ltd

Site design, images and content © 2002-2022 The Digital FAQ,
Forum Software by vBulletin · Copyright © 2022 Jelsoft Enterprises Ltd.