Log in

View Full Version : MultiDecimate Problem With Script [solved]


antdgar
23rd January 2009, 19:35
http://i187.photobucket.com/albums/x268/antdgar/plugin_path.jpg

I read the help document for MultiDecimate, but this is my first time to try and make a script...
My script file is named 'script.txt'

My script was:
Loadplugin("C:\Program Files\AviSynth 2.5\Plugins\MultiDecimate.dll")
AVISource("C:\Program Files\AviSynth 2.5\capture-1.avi")
ConvertToYUY2
MultiDecimate(pass=1)


I then went to VirtualDub and then "Run Script"
http://i187.photobucket.com/albums/x268/antdgar/error_msg.jpg

Does anyone know what I'm doing wrong, and how to make the script work. I just want to remove all duplicate frames from my video.

Gavino
23rd January 2009, 21:53
Rename your file as script.avs and open it as if it were a normal avi file.

antdgar
23rd January 2009, 23:14
Ok thanks, I've done that. And also done pass 2. (it created the dfile and cfile)

How do I now encode the file and have the duplicate frames removed??

Guest
23rd January 2009, 23:56
Read and follow to the letter the instructions that come with MultiDecimate. If you run into an issue, tell us at what point in the instructions things go awry and exactly what happened.

antdgar
24th January 2009, 00:15
I've read the instructions.

I've completed Steps 1-3. The instructions do not mention a Step 4.

I've created the cfile and dfile using the script. (step 3)

I should be able to get the video with removed duplicate frames now?
I'm wondering what step 4 is exactly..

Perhaps I've missed an encoding option in the script. I'm not familiar with scripting at all :P

Guest
24th January 2009, 00:42
Step 3 is the end.

After you edit the script to put pass=2 in step 3, your script now serves the video with the duplicates removed. You can check that by opening the script in VirtualDub and stepping.

To encode, you open the script in your encoder. The script doesn't do the encoding.

For example, open the script in VirtualDub and then save out an XviD file. Or open the script in x264 and make an AVC file. Or open the script in HCEnc and make an MPEG2 file.

antdgar
24th January 2009, 00:50
Running the script in VirtualDub gives this error:
http://i187.photobucket.com/albums/x268/antdgar/error_msg.jpg
http://i187.photobucket.com/albums/x268/antdgar/scriptinfo.jpg

Guest
24th January 2009, 01:30
Don't use "Run script"!

Just use File/Open video file and open the .avs script.

You were told to do that above!

antdgar
24th January 2009, 01:41
Ok, I've done that.

Now the resulting video flashes (frames of pure black)

Guest
24th January 2009, 01:56
You are obviously goofing up somewhere, but it's hard to tell you where.

Post a sample video of your original capture.avi and I will try it.

antdgar
24th January 2009, 02:05
Ok. 30 seconds sample of capture-1.avi

http://rapidshare.com/files/188484012/capture-1.avi.html
or
http://www.megaupload.com/?d=7GZKQ11G

Also, you will be able to tell what my goal is from looking a the video. As it's hard for me to explain what I'm trying to accomplish here.

Guest
24th January 2009, 02:22
It worked just fine for me.

For my first pass I had this script:

avisource("capture-1.avi")
converttoyuy2()
multidecimate(pass=1)

I open that in VirtualDub and press >I button to play. When it finishes I immediately exit.

Then I open MultiDecimate.exe. I browse to the mfile.txt. I hit create and then exit. Now I make this script:

avisource("capture-1.avi")
converttoyuy2()
multidecimate(pass=2)
assumefps(25)

I open that in VirtualDub and hit >I to play it. It is fine.

antdgar
24th January 2009, 02:44
I see. The blackness was due to virtualdub not liking my original source codec. There is no blackness when I use the xvid version (which I uploaded for you)

But still, the resulting video is still the same... There are still huge pauses between each frame. Although, yes, the duplicate frames are gone :)

I opened the script:
avisource("capture-1.avi")
converttoyuy2()
multidecimate(pass=2)

I then played it in virtualdub. Finally, I encoded it by pressing File>Save As AVI

The resulting video is still 30 seconds long... Each frame still lasts for a long time. The video should only be a few seconds long in the end....
I want each frame to be 1/50th of a second long... since in the game 50 frames pass each second. (ie, there should be no pausing of the characters, it should be one fast motion)

Guest
24th January 2009, 02:46
You need the AssumeFPS() in the second pass ***AS I SHOWED***.

You decide the final frame rate. I just guessed at 25. You want 50 fps? Try this:

AssumeFPS(50)

antdgar
24th January 2009, 02:54
Ahh, I thought 25fps sounded wrong. So I left it out completely.

Thanks for helping, I know I'm a noob at this sort of thing
Works great now :)

Guest
24th January 2009, 02:57
I'm happy for you!

Never just leave anything out. Ask about it if in doubt.

When the next noob comes with MultiDecimate questions, you're gonna help him! :)

This does suggest that perhaps MD should preserve the frame rate and not the playing time. Maybe I'll make it an option.

Ciao.

antdgar
24th January 2009, 05:05
Cool! I'll scour the forum for noob MD questions :P