Hello forum, I have a simple question about AVISynth Scripts from FitCD. I want to automate the task of making .avs files with FitCD for my movies. By automate, I want to use the same AVISynth script for a group of movies/series. I have a question about one of the values in the AVISynth Script, which is the #Trim value:
[SAMPLE]
# -= AviSynth v2.0.8.0 script by FitCD v1.2.8 =-
AVISource("C:\mymovie.avi")
LanczosResize(656,448,0,0,576,432)
AddBorders(32,16,32,16)
#Trim(0,28578).FadeOut(150)
ConvertToRGB24() # For TMPGEnc or VFAPI
[/SAMPLE]
I have noticed that say for a group of similar movies/series, that the #Trim value in the AVISynth Scripts changes a little. For instance, the above script, it has a value of (0,28578) and in another similar movie/video it would be (0,28507). How big of a deal would it be if I used the same #Trim value for my groups of movies/series? I would just use the #Trim value of the first movie/series of that group and use it for all the others.
Note:What I mean by similar movies/series is that they were encoded into whatever format the same way and have similar width/height dimensions.
I will hang up and listen![]()
+ Reply to Thread
Results 1 to 10 of 10
-
-
At the moment Trim does nothing as it is commented out by the #, but if not commented out it's not connected with resize - it trims the length of the video. So, using the same values for every file would be a terrible idea.
-
From what I can remember of the last few versions, the trim statement had always been commented out. As it is set to the length of the clip, it would do nothing anyway. It also has a fade out, which would fade to black over the last 150 frames, if you remove the comment symbol. I suspect is a hang over from earlier days.
You can edit the script in FitCD before you save it, so you can either uncomment the line, or even delete it if you want. I usually change the resize method from Lanczos to Lanczos4 before saving.Read my blog here.
-
Trim is for selecting encoded range of the source video (0 is the first frame, 28578 is the last one), '#' symbol disables any line in the script (also used for comments). If you want to use trim/fade functions you have to enter your own numbers, then edit out '#'. Default fade out number here is a bit long (6 seconds for PAL). So treat it as a template.
-
Thanks for the help everyone.
So based on all the informative information, I really don't need to worry about Trim, as it is always commented out.
I think I will go ahead and automate this process and always have the Trim value commented out.
Thanks
- Mike G. -
I think I will go ahead and automate this process and always have the Trim value commented out.
Or just remove it entirely from your template script, as it's never used. In fact, you can streamline your script like this (assuming the source AVIs all have the same 576x432 resolution):
AVISource("C:\mymovie.avi")
LanczosResize(656,448)
AddBorders(32,16,32,16)
ConvertToRGB24() -
Originally Posted by manono
LanczosResize(656,448,0,0,576,432)
Based on your response, it would seem I can omit the last 4 numeric values. What does the 0,0,576,432 do? I would be a little nervous omitting that, so that is why I am asking you.
Thanks -
They are the crop values, but since no cropping is being done, they can be safely removed. That will also gain you a very slight encoding speedup. I'd also check out the script in Vdub(Mod), if I were you, so you can see what it looks like, and to make sure you really want the additional black around the edges of the video. Maybe you do, if you have burned in subtitles, some of which might be lost in your TV set's overscan. Maybe you don't.
Similar Threads
-
To Script or Not To Script, that is the Question... (Custom Videos)
By TheMcD in forum EditingReplies: 2Last Post: 21st Oct 2010, 10:11 -
AVSTODVD: Avisynth script edit - colorspace conversion question...
By JRM75 in forum Video ConversionReplies: 2Last Post: 26th Jul 2010, 18:43 -
quick question on power of Avisynth script?
By kopmjj in forum RestorationReplies: 4Last Post: 16th Apr 2010, 22:36 -
MVTools & AVISynth script question with FFDShow
By Gnodab03 in forum Software PlayingReplies: 7Last Post: 8th Jan 2010, 19:05 -
Avisynth Script Question
By MegaTonTerror in forum Video ConversionReplies: 4Last Post: 22nd Aug 2009, 21:28