Gargalash
27th January 2009, 19:00
Hello all,
This is my first post ever and I want to thank the community. So far I have read tons of pages here and I have almost always found answers.
My problem:
I have over 200 AVIs. For each, I need to get a jpg screenshot every 90 frames (or so). I bet ImageWriter can be used to do that, but I don't know how. I'm trying to build a script and I would then use the avs batching tool to get one for each video files. From there I can batch with virtualdub and then with photoshop to get my final product.
I would need the output jpgs to be named according to the filename (and numbered). I guess I could use the "%filename" in the ImageWriter function and that would define a output jpg filename that can be the same as the the clip filename when batching with this
http://beta.zenaria.com/kpo/avs.html
I am really stuck when it comes to create a script that will write the frame, then frame+90, etc. I guess a loop is needed until the current frame number is higher than framecount.
Here is what I can think of for now...
AVISource("%filenamE")
framenumber = 0
DO while framenumber<framecount
framenumber = framenumber+90
ImageWriter(file=%filenamE+framenumber, start = framenumber, end= -1, string type = "jpg", info = false)
LOOP
I don't know how to loop, or if it's possible. Or maybe there is another way to do this. This is where you help me! :)
Any ideas? Thanks for helping.
This is my first post ever and I want to thank the community. So far I have read tons of pages here and I have almost always found answers.
My problem:
I have over 200 AVIs. For each, I need to get a jpg screenshot every 90 frames (or so). I bet ImageWriter can be used to do that, but I don't know how. I'm trying to build a script and I would then use the avs batching tool to get one for each video files. From there I can batch with virtualdub and then with photoshop to get my final product.
I would need the output jpgs to be named according to the filename (and numbered). I guess I could use the "%filename" in the ImageWriter function and that would define a output jpg filename that can be the same as the the clip filename when batching with this
http://beta.zenaria.com/kpo/avs.html
I am really stuck when it comes to create a script that will write the frame, then frame+90, etc. I guess a loop is needed until the current frame number is higher than framecount.
Here is what I can think of for now...
AVISource("%filenamE")
framenumber = 0
DO while framenumber<framecount
framenumber = framenumber+90
ImageWriter(file=%filenamE+framenumber, start = framenumber, end= -1, string type = "jpg", info = false)
LOOP
I don't know how to loop, or if it's possible. Or maybe there is another way to do this. This is where you help me! :)
Any ideas? Thanks for helping.