PDA

View Full Version : MeGUI AVS Cutter


jthekk2
20th August 2008, 06:27
I'm having some trouble with the AVS Cutter in MeGUI. I got the cuts into my avs, but when i go to load the clip, it won't load it:

AviSynth script error:
Script error:Invalid arguments to function "FadeOut"
(E:\...\myfile.avs, line 13).


Here is my script:
DGDecode_mpeg2source("E:\recorded tv\Converted\Scrubs_COMEDY_19_08_2008_18_59_04.d2v",info=3)
ColorMatrix(hints=true)
#deinterlace
#crop
#resize
#denoise


__film = last
__t0 = __film.trim(1077, 7009)
__t1 = __film.trim(12647, 22955)
__t2 = __film.trim(29268, 50782)
FadeOut(__t0, 29.97) ++ FadeIO(__t1, 29.97) ++ FadeIn(__t2, 29.97)

Please reply asap, as I'm trying to get this sorted out before I go off to college so I can have a .bat file ready for the rest of my mpgs and for future ones so I don't have to do anything but click.

Kurtnoise
20th August 2008, 09:19
which version did you use ?

J_Darnley
20th August 2008, 12:10
You cannot use a float value for the num_frames value of the Fade*() commands, they may only be integers.

Kurtnoise
20th August 2008, 13:09
29.97 is not the num_frames but the fps, which is float.

J_Darnley
20th August 2008, 14:10
FadeIn (clip clip, int num_frames, int "color", float "fps")

If 29.97 is supposed to be the fps then you need to name it or specify it in the right place. Anyway, it only affects audio only clips:
The fps parameter is optional, default=24.0, and provides a reference for num_frames in audio only clips. It is ignore if a video stream is present. Set fps=AudioRate() if sample exact audio positioning is required.

Sharktooth
20th August 2008, 14:18
correct syntax would be FadeIn(__t2, , 29.97)

jthekk2
20th August 2008, 15:30
that seems to have done it...didnt realize the length needed to be in there. Its odd though, as what I had was what avs cutter had put into my avs file. Is it normal for it not to output the numframes part?

Sharktooth
20th August 2008, 15:51
the numframes part is there... int "color" is omitted coz not necessary... but eventually the cutter produces the wrong syntax.
if you're wondering... yes it's a bug and yes, i have just fixed it. wait for the next version.

jthekk2
20th August 2008, 16:12
thanks. one last thing. the cuts file i made for my audio put the same error into my audio file when i loaded the cuts in megui. will this be fixed by correcting the syntax bug you mentioned, or should i make my own avs file for the audio as well?

Sharktooth
20th August 2008, 16:17
should be fixed as well

jthekk2
20th August 2008, 16:19
k, thanks...in the meantime i'll just make my own audio avs

Sharktooth
20th August 2008, 16:21
oh wait... you use the avs cutter for creating the audio cuts? then yes, it's fixed :)
at least i hope... unless i made typos...

david1023
29th August 2008, 06:52
I'm having the same problem and I don't quite understand how to construct my avs file, it worked once the first time i tried it and now every time I cut my avs file I get that same error message. Can someone please post a sample fix? My script looks exactly like the sample in the first post. Thanks in advance.

Sharktooth
29th August 2008, 13:26
try updating to the latest version (use the auto-update)

Hotpocketdeath
13th September 2008, 04:40
Seems I have run into the same problem now.

I get the same error after using AVS Cutter

AviSynth script error:
Script error: Invalid Arguments to function "FadeOut"
(E:\D.........\320.avs, line 14)

The lines created by AVS Cutter are
__film = last
__t0 = __film.trim(12, 4349)
__t1 = __film.trim(5685, 32232)
FadeOut(__t0, 0, 23.976) ++ FadeIn(__t1, 0, 23.976)

And I am using the latest version.

Weirdo
15th April 2011, 12:20
I'll bump this for a cut question. I want to encode frames 3081-3270 only (for preview) and being a noob on this, I use the AVS Cutter which adds:

__film = last
__t0 = __film.trim(1, 3080)
__t1 = __film.trim(3271, 6590)
__t0 ++ __t1

This cuts frames 3271-6590 but not 1-3080. What am I doing wrong? Using stable auto-updated meGUI 1989. Thanks.

tebasuna51
15th April 2011, 12:42
Trim select frames, don't cut frames.
If you want only 3081 until 3270 you can use only:
Trim(3081,3270)

Weirdo
15th April 2011, 13:29
Thanks. It still won't work.It now does encode 190 frames in total, but not 3081-3270. It encodes a section near the beginning of the video (somewhere between 1400-1650, I check this with VirtualDub 1.9.11). The full script (also tried avisource):

directshowSource("myvid.avi",pixel_type="YUY2",Audio=false)
ConvertToYV12()
QTGMC( Preset="Very Slow")
Crop(10,18,-14,-38)
Trim(3081,3270)

tebasuna51
15th April 2011, 19:05
Of course.
If you use QTGMC without a SelectEven() after you double the fps, then the 3081 frame is half of the 1541 initial frame.
Put the Trim just after DirectShow()

Weirdo
15th April 2011, 19:09
Thanks for sorting this out. :)