PDA

View Full Version : Is there a script that can join all .avi files within a folder?


perthmetro
24th March 2006, 13:49
Is there a script that can join all .avi files within a folder and give it a preset name like "joined.avi"

thanks heaps
Peter

Mug Funky
24th March 2006, 13:53
well, avisynth alone can't export a .avi of any name, but it's possible using windows batching to generate a script with the required lines. it would require a fair amount of cleverness (which i don't have at this time of night) to work every time though.

perthmetro
24th March 2006, 13:59
Hi MF, if you could work this out I'll be your best friend! Ths is the final step in me achieving my ultimate goal. Ta. Pete

IanB
25th March 2006, 09:36
Use DIR/B to get the list of filenames, then use something like perl, awk, sed, basic, etc to munge the list of filenames into a script something likeAviSource("file1.avi")
\ ++ AviSource("file2.avi")
...
\ ++ AviSource("file50")For many codecs there is limit to how many instances it is possible to open at once, usually more than 50 and less than 100, it's a windows resources problem.

Search this forum and the using forum for BATCH for more ideas

stickboy
25th March 2006, 10:56
See this thread for some ideas:
http://forum.doom9.org/showthread.php?p=520674#post520674

For example, you can write a Windows batch script (no perl/awk/sed necessary):for %x in (*.avi) do (
echo.AVISource^("%x"^) ++ \
) >> foo.avsAnd then fix the last line manually in a text editor.

bagheera1
25th March 2006, 13:49
If all of the avi's are the same format then use VirtualDub
read this thread (http://forum.doom9.org/showthread.php?t=107816)

mkanel
3rd April 2006, 06:11
Maybe this old tool would help, AVISynthesizer. (http://tangentsoft.net/video/asynther/) All the AVIs would have to be of the same format, this would create one avs script with all your AVIs which you could then open in any flavor of VDub and save as one AVI.