Log in

View Full Version : CCE Crash when Cropping


zedstrange
3rd November 2003, 15:05
I have attempted to follow the advice given in Q63 of the FAQ. What I am hoping to achieve is still have a widescreen movie, but not as wide as the orginal DVD.(ie smaller black bars)

I dont have any problems otherwise with DVD2SVCD 1.2.1 b3, and have been using it for some time. CCE is version 2.50

Is this the correct format for the AVS script as per the instructions in the FAQ?
Basically all i did was add Crop,Simple resize remained the same, and removed Addborders

LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
mpeg2source("D:\dvdrips\matrix\test\DVD2AV~2.D2V")
LoadPlugin("C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\SimpleResize\SimpleResize.dll")
ConvertToYUY2().
Crop(90,0,540,576)
SimpleResize(480,576)

Nick
3rd November 2003, 17:56
Could you be a little more specific on your definition of "crash"?

Does the system hang, does CCE shut itself down or do you get any sort of an error message? If so could you tell us what it says.

Also, please use Media Player to open your Avisynth_script_file.avs
file from your movie folder. Does that play OK? (no matter if it's a little jerky or the aspect ratio looks odd, just as long as you get pictures and not red text on black background). If you get text please tell us what it says.

Cheers
Nick

r6d2
3rd November 2003, 18:11
Originally posted by zedstrange
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
mpeg2source("D:\dvdrips\matrix\test\DVD2AV~2.D2V")
LoadPlugin("C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\SimpleResize\SimpleResize.dll")
Crop(90,0,540,576)
SimpleResize(480,576)
ConvertToYUY2()

The correct order, as indicated in the FAQ, is Crop(), Resize() then Borders(). ConvertToYUY2() always goes at the end.

What this will do, anyway, is to entirely fill your output screen. Is really that what you want to do? You will lose a significant amount of film pixels. Use the preview mode to be sure.

Alternatively, AutoFitCD can do the job of getting the AviSynth script right automatically for you. Just select "Accurate" as cropping mode and increase the "Resize" height up to 576.

(FitCD does not support Simple Resize, though).

Nick
3rd November 2003, 18:20
Not necessarily R6D2. We don't know the aspect ratio of the original. If it is 2.35:1 cinemascope movie there will still be black bars top and bottom from the original disc but by sacrificing chunks of movie from the sides to maintain AR whilst, the result will be to fill more of the (presumably 4:3) display.

r6d2
3rd November 2003, 18:49
Originally posted by Nick
[B]Not necessarily R6D2. We don't know the aspect ratio of the original.
Regardless of the source DAR (assuming anamorphic PAR), you will lose lots of film pixels. In the 2.35:1 case, mostly from the sides.

In the 1.85:1 case, it will be even worse, because by completely removing the black bars, some top and bottom film pixels will not seen because of overscan.

I strongly suggest to use AutoFitCD in such a case, which in the preview mode will serve as a WYSIWYG interface. A regular 4:3 TV overscans 4% to 6% in all four sides, which accounts for 16 to 24 pixels.

I thought of implementing this "4:3" mode in FACAR, as it was one of gerti67's ideas on the ToDo, but I didn't because IMHO, it sucks. ;)

zedstrange
4th November 2003, 11:50
Originally posted by Nick
Could you be a little more specific on your definition of "crash"?


Why? How could that help you decide if the AVISYNTH file was prepared correctly or not?

Either the AVISYNTH file is right or it is wrong. Thankfully the question I asked has been answered.

zedstrange
4th November 2003, 12:06
Originally posted by r6d2
The correct order, as indicated in the FAQ, is Crop(), Resize() then Borders(). ConvertToYUY2() always goes at the end.

What this will do, anyway, is to entirely fill your output screen. Is really that what you want to do? You will lose a significant amount of film pixels. Use the preview mode to be sure.

Alternatively, AutoFitCD can do the job of getting the AviSynth script right automatically for you. Just select "Accurate" as cropping mode and increase the "Resize" height up to 576.

(FitCD does not support Simple Resize, though).

Thanks muchly. For some reason, unknown to myself, i had already repeated the conversion last night and had formatted the file in the correct order exactlyas you have described. Must have fluked it becuase i read no instructions on that (telepathy perhaps)

In my original post, i also believe that the '.' in the line
ConvertToYUY2().
caused my original problem. The reason for the '.' being there can be seen in the next part of this post.

As for the result, the amount of cropping was perfect.

Now here is the AVS script again, as it appears before modifying it;

LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
mpeg2source("D:\dvdrips\matrix\test1\DVD2AV~2.D2V")
LoadPlugin("C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\SimpleResize\SimpleResize.dll")
ConvertToYUY2().SimpleResize(480,432)
AddBorders(0,72,0,72)

Now according to you, that is in the wrong order, ConvertToYUY2 should be last. Given that layout, and the info given in FAQ Q63, its easy to assume that the order does not need to be rearranged.
Does this mean there is something wrong with DVD2SVCD?

r6d2
4th November 2003, 13:16
Originally posted by zedstrange
As for the result, the amount of cropping was perfect.
Was the AR kept too? As per your script, it seems you did not use cropping at last.

ConvertToYUY2().SimpleResize(480,432)
The reason to put it last is Q14.4 in the CCE FAQ (http://forum.doom9.org/showthread.php?s=&threadid=53770). In fact, if you select advanced settings in the encoder tab, you can let DVD2SVCD do the color conversion for you in the script too.

its easy to assume that the order does not need to be rearranged.
The order of crop, resize and borders is mandatory. The insertion of the color conversion at the end is not needed but recommended, though it will work by putting it before if the filters you use afterwards support the selected color mode.

Does this mean there is something wrong with DVD2SVCD?
I don't think so. The software is not perfect, but it has been very well thought, throughlly tested, and most things are there for a reason. Use it with confidence. It really does a wonderful job.

Nick
4th November 2003, 14:59
Originally posted by Nick
Could you be a little more specific on your definition of "crash"?

--------------------------------------------------------------------------------



Why? How could that help you decide if the AVISYNTH file was prepared correctly or not?

Either the AVISYNTH file is right or it is wrong. Thankfully the question I asked has been answered.

The reason I asked was probably because your post was entitled "CCE crash when cropping"!

CCE problems are very common indeed (system hangs etc) but also common is CCE stopping immediately with an error message along the lines of "Resolution of xxx * xxx is not supported". When Avisynth fails it generates a frame of odd resolution (say 850x58) which CCE cannot work with. What this frame contains is an error message in red text on a black background. This text tells you what the error was and on which line of your avisynth script it occurs.

If CCE was freezing, closing down unexpectedly or your system hanging up this is a CCE issue and unrelated to your avisynth script. If the error was as outlined above playing the avs script in media player would show the error message generated and help track down the error. In this case, you are probably right re. the dot after ConvertToYUY2(). I didn't spot it initially and your solution to the problem was by your own admission a fluke!

I was trying to help, made reasonable requests for helpful information so I care little for your tone, zedstrange.

dvd2svcd
4th November 2003, 17:22
Originally posted by zedstrange
Why? How could that help you decide if the AVISYNTH file was prepared correctly or not?

Either the AVISYNTH file is right or it is wrong. Thankfully the question I asked has been answered.

You do NOT deserve help when you reply like this to a user who wants to help you! Nicks question was VERY valid!

Trahald
4th November 2003, 20:01
quote:
--------------------------------------------------------------------------------
Originally posted by zedstrange
Why? How could that help you decide if the AVISYNTH file was prepared correctly or not?

Either the AVISYNTH file is right or it is wrong. Thankfully the question I asked has been answered.
--------------------------------------------------------------------------------



You do NOT deserve help when you reply like this to a user who wants to help you! Nicks question was VERY valid!

agreed. maybe the solution wont require that knowledge. maybe it will. everybit of info you supply can help us (hopefully) solve your question faster. its not like he asked what you had for breakfast.

Nick
4th November 2003, 22:30
Just as an exercise I tried zedstrange's script using a 2 min avi file I have, with and without the dot after the ConvertToYUY2() command.

Without dot > works perfectly - I agree with R6D2, for the sake of tidyness this should be the last command. However this DID NOT cause the crash.

With dot > CCE shuts itself down after opening the .ecl file. However, if you play the avisynth script in Media Player as I requested you get the following error in red text on a black background.

Script error: Expected function name following "."
c:\Program files\DVD2SVCD\Movie\Preview_Avisynth_script.avs, line 4

So the error was his dot after all and had he given my civil questions a civil answer, if he didn't then spot the problem himself, anyone could have dealt with it for him quickly and decisively.

PS @R6D2 the script he posted in his last post read
"Now here is the AVS script again, as it appears before modifying it so he probably is still using the crop command!

Still, it seems he got the result he wanted so all's well that ends well. The fact remains however, that the arrogant so-and-so did not need to be so damned rude.

jsoto
4th November 2003, 22:39
You do NOT deserve help when you reply like this to a user who wants to help you! Nicks question was VERY valid!
Also agreed.

Even more, I've spent only one minute with your problem and, following Nick indications, when reproducing your script (with the dot) in Mediaplayer I get:

Script error: expected function name following '.'
D:\dvdrips\matrix\test\DVD2AV~2.D2V,line 4

So, see by yourself how valid and helpful are Nick indications...

jsoto

r6d2
4th November 2003, 23:28
Originally posted by Nick
Without dot > works perfectly - I agree with R6D2, for the sake of tidyness this should be the last command. However this DID NOT cause the crash.
You're right, Nick. In fact I noticed the dot, but just prefered to copy the script from the FAQ where he suposedly got it. :) The moving of ConvertToYUY2() was a collateral damage ;)
The fact remains however, that the arrogant so-and-so did not need to be so damned rude.
I agree with you too. But I think he got the message.

jggimi
5th November 2003, 00:13
@zedstrange,

If you are concerned by the negative followups to you comments, I recommend reviewing two threads DDogg wrote some time ago. You may not have seen them, and they may provide helpful background.

http://forum.doom9.org/showthread.php?s=&threadid=7770
http://forum.doom9.org/showthread.php?s=&threadid=19566

Nick
5th November 2003, 01:08
Yeah, fair point jggimi. Thanks to all who who sided with me but looking down this thread Zedstrange must feel like a rugby scrum just collapsed on top of him!

And to think if he'd just ignored my input, or in his reply to me he'd said something like "Sure, but would you mind clarifying what that would achieve?" there would have been no problem. Manners cost nothing and I (and a few others by the looks of it ;) ) don't care for rudeness.

However as R6D2 said, I think he got the message. If not he's pretty thick skinned! Anyway It's starting to get out of all proportion now. I've had a few hours to cool off now so it's in the past and let's draw a line under it.

If the background reading you suggested makes him post in a less confrontational manner in future, great. If not he'll soon run out of helpers.

And let's not forget he got the result he wanted in the end anyway!
As far as I am concerned, case closed.

DDogg
5th November 2003, 01:44
Nicely closed, Nick :)