Log in

View Full Version : Newbie Avisynth / Aspect Ratio problem please help.


Elbart0-
4th December 2006, 20:46
I am trying to convert a wmv 4:3 640x480 29fps video file to 720x480 using CCE. I am not great at working this stuff out so I use FitCD to make the script for me and I have never had a problem (except for it saying it is PAL when it isn't).

Anyway I used the script as shown below and it worked but the Aspect Ratio is way off. I am right in thinking that I don't need to resize the video at all and just need add borders to the left and right (to make 640 up to 720) or will this also mess up the aspect ratio?.

DirectShowSource("video.wmv",29.97)
ConvertToYV12()
BicubicResize(704,480,0,0.6,0,1,640,478)
AddBorders(8,0,8,0)
ResampleAudio(44100)

Any help is very much appreciated.

Cheers Elbart0.

Terranigma
4th December 2006, 21:01
Why upconvert it from 640X480 to 720X480? That'd just require a higher bitrate to hold the gops in place.

My suggestion would be to only use the converttoyv12() line, and encode with an A:R of 1:1 or 4:3 (Since it'd return back to 1:1 anyways when played back).

But if you must resize it, then don't addborders after you resized it, that's like cropping (where it adds or subtracts from the total width/length).

foxyshadis
4th December 2006, 21:29
640x480 is not DVD compliant. 720x480 is entirely correct, but you must set the aspect ratio inside CCE as 4:3. Otherwise, if you add borders so it comes out looking right uncorrected, when played it'll be corrected and look terribly squeezed.

I won't get into the whole 720/704/702 discussion, but it's something to think about if you have a crt monitor. ;)

Terranigma
4th December 2006, 21:37
640x480 is not DVD compliant.
Yea that's true. Though I did'nt see where he/she said they were trying to make it dvd-compliant. :o

Elbart0-
4th December 2006, 21:45
Sorry he/she is trying to make it dvd compliant. Thanks for your help guys. :)

ficofico
4th December 2006, 22:18
Import script into "Super", program that is very easy to use and give the possibility to import avisynth script and use the template for video converter.

DirectShowSource("video.wmv")
ConvertToYV12()

This script is the only you need.

Container "Vob"
video scale size "720*480"
aspect "4:3"
frame/sec 29.97

Elbart0-
4th December 2006, 22:42
Will look into that ficofico thanks.

One more thing does anyone know how I can find out what the Intrablock DC precision is with WMV files?.

Cheers Elbart0.

foxyshadis
5th December 2006, 02:03
Yea that's true. Though I did'nt see where he/she said they were trying to make it dvd-compliant. :o

I don't think there's any other reason to use CCE, normally. ;)