Hi forum, I have a question regarding CCE and AviSynth.
I am trying to convert an MP4 file to a CCE MPEG-2 compliant file. One AviSynth Script works with CCE and does convert the file but another Script causes CCE to crash.
Here is the script that works. This script was made by FitCD:
<SCRIPT>
# -= AviSynth v2.5.7.0 script by FitCD v1.2.8 =-
DirectShowSource("C:\mymovie.mp4", audio=false)
LanczosResize(640,440,2,0,636,480)
AddBorders(40,16,40,24)
#Trim(0,33252).FadeOut(150)
ConvertToYUY2() # For VirtualDub or CCE
</SCRIPT>
Here is the script that causes CCE to crash. This script was made by a tool that I wrote in .Net a long time ago.
<SCRIPT>
DirectShowSource("C:\mymovie.mp4", audio=false)
LanczosResize(640,440)
AddBorders(40,16,40,24)
ConvertToYUY2()
<SCRIPT>
I have determined that the problem in the script that fails is:
LanczosResize(640,440)
When I replace it with the LanczosResize from the script that works, CCE works fine.
A prominent poster on this board told me that the only numbers that mattered in the LanczosResize were the first two.
Is there a way to calculate the 4 other numbers? As I stated, I have a tool that makes my AVS files and right now it only does the first two numbers as the other 4 are unique to each file set.
+ Reply to Thread
Results 1 to 6 of 6
-
-
The 3rd and 4th numbers in LanczosResize() are the X and Y offsets of the subsection of the source to be resized. The 5th and 6th arguments are the size of the subsection of the source to be resized.
LanczosResize(640,440,2,0,636,480)
is equivalent to:
Crop(2, 0, 636, 480)
LanczosResize(640, 440)
The crop is probably removing black borders. -
The crop lowers the Aspect Error.
You might open the not-working script in VDubMod and see if it gives out with an error message, something you should do with any AviSynth script before sending it to CCE, which doesn't give any error messages at all.
And if your AviSynth version isn't the latest, you might upgrade it. -
Thanks for the responses, I will modify my code to spit out the other 4 values.
-
Originally Posted by mickgreen58
-
Originally Posted by jagabo
I knew adding the extra numbers would work, I had already tested it. I just didn't want to change my code.
I have a new question, but it requires another thread.
Similar Threads
-
.mp4 Avisynth import issues
By Campony in forum Video ConversionReplies: 29Last Post: 20th May 2011, 08:11 -
CCE, MP4 and AviSynth Error
By Maikeru-sama in forum Video ConversionReplies: 28Last Post: 11th Jun 2008, 04:24 -
MKV, CCE and AviSynth Question
By Maikeru-sama in forum Video ConversionReplies: 10Last Post: 14th Jan 2008, 16:35 -
Matted to anamorphic with aviSynth/CCE?
By Sephiroth666 in forum Newbie / General discussionsReplies: 3Last Post: 7th Jan 2008, 00:00 -
Questions about CCE, H264 and AviSynth
By Maikeru-sama in forum Video ConversionReplies: 18Last Post: 21st Dec 2007, 20:38