Log in

View Full Version : Aspect ratio problem


switu
23rd October 2005, 18:40
I have downloaded the new DVD2SVCD 1.2.3 build 1 over the old one and was trying to tested it,when choosing Aspect ratio 16:9(borders added, encoded as 4:3)my clip is not coming out at the right aspect ratio, I have included 2 dvd2svcd logs (1 new ver., 2 old ver.) I have not change any settings. PLease have a look at dvd2svcd log:
Forgot about something, when editing the Avisynth script file(in new version) everything is great as it is supposed to be, meaning Good Ratio
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''


Executing Cinema Craft Encoder.
StreamSectors: 4666096988
AudioSectors: 3671920
VideoPAPO: 72223452
ScanOffsetBytes: 2351
SeqAligningBytes: 149387
DVDBytes: 0
VideoEndHeader: 4
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 4590049874.17
Seconds: 64.68
CalcMPEGStream: 4590049874.17
Frames: 1567
CDSize: 4464.00
Number of CDs: 1
Cut point 4460.00
Variable Settings:
Frames: 1567
Anti Noise Filter: Off
Passes: 3
Image Quality: 17
VAF file creation: On
Video Encoding Mode: One Pass VBR
Q. Factor: 1
Min. bitrate: 800
Max. bitrate: 7200
Aspect Ratio: 16:9 (borders added, encoded as 4:3)

---AVS Begin---
LoadPlugin("C:\PROGRA~1\DVD2SVCD\dgindex\DGDecode.dll")
AVISource("C:\PROGRA~1\eMule\Incoming\1.avi",audio=false)
ConvertToYUY2()
Import("C:\Program Files\DVD2SVCD\Tylo\RoBaConditional.avs")
LanczosResize(720,432)
AddBorders(0,72,0,72)
Import("C:\Program Files\DVD2SVCD\Movie\ResampleAudio.avs")
ResampleAudio(44100)
----AVS End----

at first I thought maybe i got little rusty encoding but then I switched to previous ver of DVD2SVCD 1.2.2. build 3 and I encoded the same clip with same settings and this is what I got, perfect aspect ratio, dvd2svcd log
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Executing Cinema Craft Encoder.
StreamSectors: 4666096988
AudioSectors: 1573348
VideoPAPO: 72255960
ScanOffsetBytes: 2351
SeqAligningBytes: 149387
DVDBytes: 0
VideoEndHeader: 4
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 4592115938.17
Seconds: 64.68
CalcMPEGStream: 4592115938.17
Frames: 1567
CDSize: 4464.00
Number of CDs: 1
Cut point 4460.00
Variable Settings:
Frames: 1567
Anti Noise Filter: Off
Passes: 3
Image Quality: 17
VAF file creation: On
Video Encoding Mode: One Pass VBR
Q. Factor: 60
Min. bitrate: 800
Max. bitrate: 7200
Aspect Ratio: 16:9 (borders added, encoded as 4:3)

---AVS Begin---
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("C:\PROGRA~1\eMule\Incoming\1.avi",audio=false)
ConvertToYUY2()
Import("C:\Program Files\DVD2SVCD\Tylo\RoBaConditional.avs")
LanczosResize(720,326)
AddBorders(0,125,0,125)
Import("C:\Program Files\DVD2SVCD\Movie\ResampleAudio.avs")
ResampleAudio(44100)
----AVS End----

Could anyone take a second or 2 to look at it?
Thank you

P.S.
Congrats to DVD2SVCD team on new version and all the best in the future

j_olson
23rd October 2005, 18:57
Well, what aspect ratio did you want, and in what way is it wrong? That option is for watching an 16:9 movie on a standard 4:3 TV, is that what you wanted?

switu
23rd October 2005, 19:09
Aspect ratio 16:9 that's what I want it
when choosing above aspect ratio in both versions the clip is being resized differently and also as you can noticed borders are different too as you can see in dvd2svcd logs
My goal wasto get this:
LanczosResize(720,326)
AddBorders(0,125,0,125)
the only way I can do that is do manual editing of avisynth.

Nick
23rd October 2005, 19:51
That's because lots of people complained about the aspect ratio calculations in 1.2.2 Build 3 as it only gave the correct resize script if the AVI has 1:1 PAR.

Meanwhile build 1.2.1 Build 3 had resizing that worked well for non-1:1 PAR AVIs but everyone converting 1:1 PAR ones were unhappy.

So here's the deal. There is now a checkbox in the Conversion tab: AVI is 1:1 PAR.

Unchecked: Resizes as per 1.2.1 Build 3
Checked: Resizes as per 1.2.2 Build 3.

For a more comprehensive explanations of ARs, PARs and the new options, see the "Problems specific to AVI input" sticky.

switu
23rd October 2005, 20:01
Thank you Nick for Quick reply, now I know 2 things,
first where to fixed my problem and second I'm getting blind.
Thanks :cool:

Rod
19th February 2006, 06:00
I have read a number of guides from this web site and links and thought I would share what I found successful for converting a divx avi file to a DVD using DVD2SVCD. The file was a British tv program recorded at 640x480 and 25 fps.
DVD2SVCD insisted on keeping it in PAL format even when editing the AVS with CHANGEFPS. I had to change the DVDAuthor XML file to NTSC and rerun Author - no big deal.
Where it got interesting was in the aspect ratio. I do not fully understand all the nuances and technical here so I approached it brute force. I used the AVI source setting and DVD output and chose to edit the AVS file. I tried with and without the AR switch and 4x3 encoding, 4x3 Anamorphic and 16x9 so a total of 6 tests. My bench mark was making the image appear on my television set with no loss of image on the top or on the sides using the imaging on my computer as the standard (used the title screen and measured the letters and screen size with a ruler to verify if some area was missing).
I chose modify AVS script and changed it to 720 x 480 leaving the borders as DVD2SVCD determined. In some cases I ended up with large borders on the top and other times with on the sides.
To cut a long story short, I found that through trial and error using a setting of 650x432 for the resize and add border of (35,20,35,28) gave me the best fit with only a little bit of black edge showing in a couple of corners.
I hope this might help others. I am using Quenc as the encoder.
The program sure simplifies all of the steps, I only need to do a little "post processing" and voila.
Thanks to all that make this program happen.