Hi,
Don't know if this is the right place
I'm using free tools to convert AVI to DVD, my encoder is QuENC, and I made a APP by my own that accomplish all tasks and the final result is a ISO ready to burn.
All works fine, but I have a problem with Frame Size, DVD Lab gives me an error of "Wrong Frame Size" when I try to open my encoded DVD. I don't know how to calculate this, i.e.,
imagine I have a AVI source of 640x240 and I want to convert it to a PAL DVD with an aspect ratio of 16:9, I use this avisynth script :
AviSource("c:\mymovie.avi")
Lanczos4Resize(720, 576)
AddBorders(0, 50, 0, 50)
AssumeFPS(25)
ConvertToyv12()
and run QuEnc with this parameters :
Quenc -i script.avs -o multiplex.mpg -b 4000 -maxbitrate 9000 -2 -aspectratio 16:9 -auto -close
what values must I use for frame width and heigh for Lanczos resize ?
is there a rule for calculating this ???
+ Reply to Thread
Results 1 to 7 of 7
-
-
IIRC, the output video will be 720x676 from this script. Change the resize to Lanczos4Resize(720, 476), then add the borders (50+50=100) resulting in a 720x576 video (which is PAL full D1 res).
Haven't looked into the AR aspect of this example.
/Mats -
But how do you know that the output will be 720x676
what calculations did you made ? this is what I don't understand
I want a widescreen output (16:9)
thank you -
You first resize to 576 height with
Lanczos4Resize(720, 576)
Then you add 50 pixels of borders top and bottom with
AddBorders(0, 50, 0, 50)
giving a total height of 576+ 50+50=676
Play the AVS in MPC (or other video player that handles AVS scripts) to see if it looks ok before you proceed to encode it.
/Mats -
Assuming your AVI source has a pixel aspect ratio of 1:1, and that you want to retain the final picture aspect ratio, you should:
4:3 DVD
Lanczos4Resize(704, 288)
AddBorders(8, 144, 8, 144)
16:9 (anamorphic) DVD
Lanczos4Resize(704, 384)
AddBorders(8, 96, 8, 96)
Try using FitCD to calculate the sizes. -
thanks a lot guys, BUG FIXED
Image perfect on my TV, either with 16:9 or 4:3 sources
Here is my APP GUI if you want to try, BUT BE AWARE OF THIS :
- you need Win XP Framework
- it is PAL DVD-VIDEO optimized
- you need full codecs
- I don't GIVE CCE, you must buy it and install on my APP CCE folder, I just use free tools
I had given it only to friends, I made it mainly to myself, and all said to me it works fine. It is a GUI for CCE encoding, QuENC, and the output is a DVD-MOVIE ISO image, and it burns a DVD either using NERO at backgroud or not
http://pwp.netcabo.pt/falmartins/videohelp/avi2iso.msi
Similar Threads
-
AviSynth - Looping through frames?
By Mister Epic in forum EditingReplies: 13Last Post: 25th Apr 2014, 10:23 -
How to display .png just for (exam 3 seconds or 100 frames) with Avisynth?
By xicudiz in forum EditingReplies: 2Last Post: 9th Apr 2011, 21:41 -
How do you blur selected frames in AVIsynth?
By Nagashi in forum EditingReplies: 4Last Post: 9th Jan 2011, 19:30 -
Avisynth drops blank frames?
By wfael in forum EditingReplies: 3Last Post: 9th Dec 2008, 22:06 -
HDTV to DVD using DGIndex/AviSynth losing frames
By gadgetguy in forum Video ConversionReplies: 13Last Post: 3rd Sep 2008, 16:12