Log in

View Full Version : Scripting Errors When Loading It Into CCE basic


Andrew C
22nd August 2004, 22:09
I am using "Getting The Best Out Of CCE", by Robshot and have encoded a few movies with this method, and put them onto dvds using dvd lab, and they play great in my dvd player.

What i am trying to do now, is write a script to get a full screen movie.
But when i add try to add, crop and bicubic resize to the script, CCE gives an error when loading it, about supported filesize (which means there is something wrong with my script).

It is a Pal DVD (720/576) and using, Clip and resize in DVD2Avi, to work out the sizes of the black bars at the top and bottom of the movie, is 68 top & 68 bottom.

The script i have been using for Robshot's method is:

LoadPlugin("C:\Program Files\dgmpgdec1012a\DGDecode.dll")
Mpeg2source("C:\Documents and Settings\Andrew\My Documents\My eBooks\AP 1\AP1.d2v")
YV12toYUY2()

I have tried using Fit CD to get the right sizes for resizing, but i still get the same error, here is the script:

# -= AviSynth v2.5.4.0 script by FitCD v1.2.3 =-
LoadPlugin("C:\windows\system32\AviSynth 2.5\plugins\DGDecode.dll")
Mpeg2Source("C:\Documents and Settings\Andrew\My Documents\My eBooks\AP 1\AP1.d2v")
BicubicResize(704,496,0,0.6,0,70,720,506)
AddBorders(0,40,0,40)
#Trim(0,137362).FadeOut(150)
ConvertToYUY2() # For VirtualDub or CCE

I also tried some other crop and resize values from searches on this forum, such as:

LoadPlugin("C:\Program Files\dgmpgdec1012a\DGDecode.dll")
Mpeg2source("C:\Documents and Settings\Andrew\My Documents\My eBooks\AP 1\AP1.d2v")
crop(0,68,720,445)
BicubicResize(704,304,0,0.5)
YV12toYUY2()

Do i need a plugin for bicubic resizing, or am i getting the resizing values wrong ?

Andrew

killingspree
22nd August 2004, 23:18
Originally posted by Andrew C

BicubicResize(704,496,0,0.6,0,70,720,506)
AddBorders(0,40,0,40)

this results in a 720 x 586 resolution - which is no valid dvd resolution and might be the source of the problem! it's not even mod 4 - so definitely not a good resolution to use anyway!

try

AddBorders(0,35,0,35)

this should probably do the trick ;)

kr
steVe

Andrew C
23rd August 2004, 18:30
Thanks Steve
CCE acceppted the script with; AddBorders(0,35,0,35).

But now DVDLab is rejecting the mpv file after encoding, with a Errors & Warning pop up saying:
Wrong frame size.
You can enable non-DVD sizes in properties.
Size 704 * 560 FPS25.00 Aspect 16:9

Just enabled non-DVD sizes in DVDLab, but dos this mean that my dvds will only play on some standalone dvd players ?

killingspree
23rd August 2004, 19:25
704x560 ??

pls check your exact details of the video -

just add info() to the end of your avs script, load it into vdub(mod), create a screenshot and post it here!

perhaps this will help some more!

kr
steVe

edit: owhh - stupid me - it shouldn't be like described above, but rather AddBorders(8,40,8,40) - this should then again leave you with a valid DVD resolution of 720x576 - sorry for the misguidance there!
edit2: might it be that DVDLab complained about the resolution of 704x566 not 560?! kinda threw me off track there first...

Andrew C
24th August 2004, 21:38
Steve
Having trouble getting the screenshot onto here, so i'll write it down instead:
Movie Details From Virtual Dub Mod:
Colour Space: YUY2
Width: 720 Pixels, Hieght 576 Pixels
Frames Per Second: 25.0000
Field Based (Seperated) Video: No
Parity: Assuming Top Field First
Video Pitch: 1440 Bytes

The films i have backed up, show a border ot the top and bottom of the tv, about 1 to 1.5 inches in hieght, it is these borders that i am trying to do something with.
But the more i read on resizing, all talk about resizing smaller images to 720/480 (4:3) size, or 720/576 (16:9) size.
As my source is already 720/576 (16:9), is there not much i can do with it ?

killingspree
25th August 2004, 08:29
Originally posted by Andrew C

Width: 720 Pixels, Hieght 576 Pixels

As my source is already 720/576 (16:9), is there not much i can do with it ?

hi again,
well the details about the video sound fine now! does it work with CCE and DVDLab now, or do you still have problems!

Now changing a 16:9 content to 4:3 is always a bit problematic (done it myself a couple of times - mostly for testing purposes - with mixed results) so the question is always if you really need to do it, or if you just considered it a nice feat?!

anyway, if you still have troubles, i think the easiest way would be for you to extract a small segment of the video (maybe 20 megs), upload it somewhere - webspace, ftp, whatever - and i'll download it to write a script myself based on this piece of video and then just send you the script!

kr
steVe

Andrew C
25th August 2004, 22:45
Hello Steve
The earlier files worked alright in CCE and DVD Lab, but i did not burn them to disc, just trying to get everything right before burning.

I do not need to get rid of the borders, if borders help i will keep them, just have trouble working out how to resize.

If the movie i am backing up is 720 / 576 (PAL 16:9), could you show me an example of how you would resize it for play back on a TV.

Thanks for all the help,
Andy.

killingspree
26th August 2004, 08:24
ok, now i see what your problem is. you got a 16:9 anamorphic DVD and want it to be 16:9 letterboxed (with blackborders at the top and bottom). am i right? [edited out stupid error :P]

those are just a couple of thoughts, i will add an avs script lateron - if you have anything to add, feel free to do so in the meantime!

steVe

killingspree
26th August 2004, 08:54
ok, here's the script:


LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\dgdecode.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\UnDot.dll")

# SOURCE
mpeg2source("H:\testvobandy.d2v")

#Crop the existing black bars...
crop(4,14,712,548)

# resize to actual 16:9 framesize (not anamorphic)
BicubicResize(704,396,0,0.5)

#add the borders to give the video a 4:3 AR again
Addborders(8,90,8,90)

# some denoising won't hurt the clip but improve compressability a lot - light denoising only
Undot()
mergechroma(blur(1.3))

#For CCE compliancy:
ConvertToYUY2()

empty = BlankClip()
AudioDub(last,empty)


now i did not import the video in DVDlab as i do not have it installed on my work computer, but here's the CCE settings you'll have to change for it to display the right way:
right click the imported avs file > edit:
video... > check Progressive frames; check dvd compliant; aspect ratio: DAR 4:3

hope this helps and fits your needs (still not 100% clear about those :))

steVe

Andrew C
26th August 2004, 23:10
Steve
The script works fine in CCE and DVDLab, just finished burning a movie with it and it looks great.

Can i use the script for different movies, or is there certain things i need to watch out for when scripting other movies ?

Only one point, the borders are quite large, is there any way of getting smaller borders ?

What i am trying for, is to get the biggest picture possible when playing back the movie on a tv screen (too used to watching movies on video tape that are full screen).
In the beginning i was trying to work out a script for a full screen image, but after reading more about resizing, got more confused.
Now i will be happy to get the biggest picture possible, with borders.

Thanks Again,
Andy.

killingspree
27th August 2004, 07:56
hi andy,
unfortunately you cannot fully use this script for other movies and expect the exact same result! you will have to adjust the crop() bicubicresize() and Addborders() functions! if you need a detailed description about those functions and some more examples, look at www.avisynth.org and go to interanl filters! bascially those are the steps you have to perform when doing this;

a) crop the black borders that exist in the movie (i used the autocrop function in gordianknot to get the values, but you can also do this manually (e.g. with the script editor in virtualdubmod)

b) resize the video to the biggest possible value (but try to keep the AR of 16:9)

c) add the borders to get a resolution of 720x576 again

you can of course minimize the amount of borders shown, but will encounter 2 possible issues:

1) the video gets stretched vertically, which looks _very_ ugly!
2) you cut off some of the video content from the sides, which might disturb you, or not, but it's been prooven that it kind of reduces the cineatic experience...

hth
steVe

Andrew C
27th August 2004, 21:21
Steve

I will check AVSynth's homepage and thanks for all the help.

Andy.