Hello guys,
I have a terrible doubt.
I'm wondering how I can resize a video at 1280x720, but inside I want 1024x760.
In virtualdub I can do it. See below.
My input file looks as:
After Virtualdub my image (desired) looks:
How to do it in AviSynth? Already read some docs, but can not find what I need.
Can you help?
My AVS file (input: 256x224 - output 1024x896):
Thanks all# Set DAR in encoder to 8 : 7. The following line is for automatic signalling
global MeGUI_darx = 8
global MeGUI_dary = 7
AVISource("ninjagaiden.avi").AssumeFPS(60.100)
ConvertToRGB32()
hq4x()
Claudio
+ Reply to Thread
Results 1 to 14 of 14
-
-
Last edited by jagabo; 7th Apr 2012 at 17:00.
-
Thank you for help jagabo but your config crop my video, look:
Read MEGUI docs I find this:
addborders(128,100,128,100)
Lanczos4Resize(1280,720) # Lanczos4 (Sharp)
Its work for me.
This method ABOVE (megui) is correct??
ClaudioLast edited by Cauptain; 7th Apr 2012 at 18:46.
-
-
I've seen. What did I do wrong jagabo?
My all sources are 256x224 + hq4x() = 1024x896 - No other.
General
Complete name : D:\NINJA GAIDEN - 02 - RAW.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 164 MiB
Duration : 8mn 24s
Overall bit rate : 2 723 Kbps
Video
ID : 0
Format : TechSmith
Codec ID : tscc
Codec ID/Info : TechSmith Screen Capture
Duration : 8mn 24s
Bit rate : 1 920 Kbps
Width : 256 pixels
Height : 224 pixels
Display aspect ratio : 1.143
Frame rate : 60.100 fps
Bits/(Pixel*Frame) : 0.557
Stream size : 115 MiB (71%)
Audio
ID : 1
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : 1
Duration : 8mn 24s
Bit rate mode : Constant
Bit rate : 768 Kbps
Channel(s) : 1 channel
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Stream size : 46.2 MiB (28%)
Interleave, duration : 8 ms (0.50 video frame)
Claudio -
Post a sample of the original 256x224 source. What's the proper display aspect ratio for that source? I don't have the TSCC codec. Can you use uncompressed RGB or Lagarith instead?
-
YES.
Get a sample: http://www.mediafire.com/?v83q2714z34t67j
Claudio
-
So it's square pixel? Using the 256x224 image I got this:
ImageSource("DlFgx.png", pixel_type="RGB32")
HQ4x()
BilinearResize(1044, 720, 0, 100, 1024, 704)
AddBorders(118, 0, 118, 0)
Or, if you you prefer no further resizing and don't mind tiny borders top and bottom:
ImageSource("DlFgx.png", pixel_type="RGB32")
Crop(0,25,256,176)
HQ4x()
AddBorders(128,8,128,8)
If you're going to resize after HQ4X I recommend you use Bilinear. Lanczos or any other sharpening resize will result in oversharpening halos.Last edited by jagabo; 7th Apr 2012 at 19:38.
-
Hello Jagabo,
Sorry for delay in responding. My son woke up and I went to put him to bed and slept together hehehe
My friend, I tested his two scripts in my videos and not work.
I reinstall my AVISYNTH and DLLs.
Now, your scripts worked, both.
Once more, thanks for all help and tip about bilinear resize.
Ah, My upload source using X264, no TSCC.
Thank you very much.
Claudio
Similar Threads
-
Resize Video for 480p or 720p!!!
By Cauptain in forum Newbie / General discussionsReplies: 8Last Post: 21st Mar 2011, 21:36 -
720p 59.94 to 480p 23.976 in TMPGEnc w/o Using AVISynth
By CubDukat in forum Video ConversionReplies: 6Last Post: 19th Oct 2009, 09:51 -
UNDERWATER VIDEO - Should I get a still-cam with 720p, or a 720p camcorder?
By v1ru5 in forum Newbie / General discussionsReplies: 1Last Post: 25th Aug 2009, 02:49 -
Help w/AVISynth and ABC's 720p cadence
By CubDukat in forum DVB / IPTVReplies: 23Last Post: 7th Feb 2008, 19:21 -
Auto resize Image in Avisynth
By GioBarque in forum Newbie / General discussionsReplies: 8Last Post: 21st Jul 2007, 12:02