Post by ZaCloud on Dec 14, 2008 19:59:32 GMT -5
Heeeeya folks!
I think that since avisynth is such a powerful tool of awesome, that we ought to look into using it for our projects from now on.
But since it's so syntax and language-laden, it can be an epic quest each time you wanna find out what it can and can't do. Sometimes it's amazing what you can stumble opon. Sometimes you can't seem to find what you hope it can do, not even knowing if it can or not.
So we can share tricks and methods here, or ask for how to do certain things.
Where it comes from, avisynth.org , seems to be down as I type this, so I had to scavenger-hunt for things on my own. But keep checking there to see if it returns, it should have lotsa good basic functions.
Here's a little something I came up with through three different webpages and a lot of trial-and-error experimentation...
How to put multiple clips together into one, while cutting out parts you don't need.
There's some basic syntax on this site:
www.afterdawn.com/guides/archive/using_avisynth_page_7.cfm
But lots of it didn't seem to work right when I tried to combine multiple outside clips, or to trim from one clip before joining another.
What I was trying to do:
-I wanted to keep my current big Huffyuv encode of my Haruhi dance video.
-I wanted to trim off the current credit sequence and replace it with a new one to reflect the renamed video (which I haven't decided on so I was experimenting with an altogether separate clip)
Ok, easy enough to do in VirtualDub, just direct-stream-copy with only the main vid selected, make a new huffyuv file, then splice it with the new credits, no problem... Except...
-I didn't have the space for a new Huffyuv file.
Well damn. But yeah, many of you may also be in that situation, or just plain not want to make another big fat file. So, here's how to get out of it...
Define not one, but all involved files in one script.
AVISource("[DZX] - ZaCloud - I Ain't Marryin' No Friggin' Horse!!!.avi") + AVISource("credits.avi")
(with both files being in the same folder of course)
Define where you want each clip to end and begin... but treat it as if they're all one clip when you specify frames.
ClipOne=Trim(0,5180)
ClipTwo=Trim(6100,0)
ClipOne + ClipTwo
The above takes my original, old-titled clip, skips the old credits, and goes right to the new credits, with 0 ending the sequence as a default for saying "just keep going till the clip is over"
So there we have it, all I have to export is my fixed credits, and I don't have to have another huge huffyuv of the original video itself. Saves lotsa space.
This took a lotta time and work to find out, but it's worth it if it can save everyone else time and work in the future. ^_^
I think that since avisynth is such a powerful tool of awesome, that we ought to look into using it for our projects from now on.
But since it's so syntax and language-laden, it can be an epic quest each time you wanna find out what it can and can't do. Sometimes it's amazing what you can stumble opon. Sometimes you can't seem to find what you hope it can do, not even knowing if it can or not.
So we can share tricks and methods here, or ask for how to do certain things.
Where it comes from, avisynth.org , seems to be down as I type this, so I had to scavenger-hunt for things on my own. But keep checking there to see if it returns, it should have lotsa good basic functions.
Here's a little something I came up with through three different webpages and a lot of trial-and-error experimentation...
How to put multiple clips together into one, while cutting out parts you don't need.
There's some basic syntax on this site:
www.afterdawn.com/guides/archive/using_avisynth_page_7.cfm
But lots of it didn't seem to work right when I tried to combine multiple outside clips, or to trim from one clip before joining another.
What I was trying to do:
-I wanted to keep my current big Huffyuv encode of my Haruhi dance video.
-I wanted to trim off the current credit sequence and replace it with a new one to reflect the renamed video (which I haven't decided on so I was experimenting with an altogether separate clip)
Ok, easy enough to do in VirtualDub, just direct-stream-copy with only the main vid selected, make a new huffyuv file, then splice it with the new credits, no problem... Except...
-I didn't have the space for a new Huffyuv file.
Well damn. But yeah, many of you may also be in that situation, or just plain not want to make another big fat file. So, here's how to get out of it...
Define not one, but all involved files in one script.
AVISource("[DZX] - ZaCloud - I Ain't Marryin' No Friggin' Horse!!!.avi") + AVISource("credits.avi")
(with both files being in the same folder of course)
Define where you want each clip to end and begin... but treat it as if they're all one clip when you specify frames.
ClipOne=Trim(0,5180)
ClipTwo=Trim(6100,0)
ClipOne + ClipTwo
The above takes my original, old-titled clip, skips the old credits, and goes right to the new credits, with 0 ending the sequence as a default for saying "just keep going till the clip is over"
So there we have it, all I have to export is my fixed credits, and I don't have to have another huge huffyuv of the original video itself. Saves lotsa space.
This took a lotta time and work to find out, but it's worth it if it can save everyone else time and work in the future. ^_^