VideoHelp Forum




+ Reply to Thread
Results 1 to 14 of 14
  1. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    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.


    Click image for larger version

Name:	w2vqn.png
Views:	1008
Size:	34.0 KB
ID:	11847

    My input file looks as:

    Click image for larger version

Name:	gYzKM.png
Views:	327
Size:	110.9 KB
ID:	11848

    After Virtualdub my image (desired) looks:

    Click image for larger version

Name:	b2NHS.png
Views:	351
Size:	183.2 KB
ID:	11849

    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):

    # 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()
    Thanks all



    Claudio
    Quote Quote  
  2. Originally Posted by Cauptain View Post
    I'm wondering how I can resize a video at 1280x720, but inside I want 1024x760.
    I don't know what you meant by that. But using your pictures:

    BilinearResize(1024, 600, 0, 96, 1024, 704)
    AddBorders(128, 60, 128, 60)
    Last edited by jagabo; 7th Apr 2012 at 17:00.
    Quote Quote  
  3. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by jagabo View Post
    Originally Posted by Cauptain View Post
    I'm wondering how I can resize a video at 1280x720, but inside I want 1024x760.
    I don't know what you meant by that. But using your pictures:

    BilinearResize(1024, 600, 0, 96, 1024, 704)
    AddBorders(128, 60, 128, 60)
    Thank you for help jagabo but your config crop my video, look:

    Click image for larger version

Name:	JMUIj.png
Views:	261
Size:	70.7 KB
ID:	11852

    Read MEGUI docs I find this:


    addborders(128,100,128,100)
    Lanczos4Resize(1280,720) # Lanczos4 (Sharp)

    Its work for me.


    Click image for larger version

Name:	ud98E.png
Views:	286
Size:	107.5 KB
ID:	11853

    This method ABOVE (megui) is correct??



    Claudio
    Last edited by Cauptain; 7th Apr 2012 at 18:46.
    Quote Quote  
  4. It worked perfectly with the source image (1024x896) in your first post.

    Click image for larger version

Name:	720p.png
Views:	1107
Size:	169.2 KB
ID:	11854

    How am I supposed to know what's right if you don't post the correct source?
    Quote Quote  
  5. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by jagabo View Post
    It worked perfectly with the source image (1024x896) in your first post.

    Image
    [Attachment 11854 - Click to enlarge]


    How am I supposed to know what's right if you don't post the correct source?
    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
    Quote Quote  
  6. 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?
    Quote Quote  
  7. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    DAR is 8:7

    Name:  DlFgx.png
Views: 1117
Size:  5.3 KB



    Claudio
    Quote Quote  
  8. Originally Posted by Cauptain View Post
    DAR is 8:7
    Including the black borders?
    Quote Quote  
  9. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Originally Posted by jagabo View Post
    Originally Posted by Cauptain View Post
    DAR is 8:7
    Including the black borders?
    YES.

    Get a sample: http://www.mediafire.com/?v83q2714z34t67j


    Claudio
    Quote Quote  
  10. 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)

    Click image for larger version

Name:	borders.png
Views:	309
Size:	49.7 KB
ID:	11856

    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.
    Quote Quote  
  11. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    Sorry jagabo but no work for me. Both.

    Any idea??


    Claudio
    Quote Quote  
  12. What do you mean "no work"? You need to be more clear.
    Quote Quote  
  13. ..
    Last edited by somespirit; 8th Apr 2012 at 06:22.
    Quote Quote  
  14. Lone soldier Cauptain's Avatar
    Join Date
    Jan 2006
    Location
    Brazil
    Search Comp PM
    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
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!