VideoHelp Forum




+ Reply to Thread
Results 1 to 18 of 18
  1. I would like to convert a 576i 4:3 video to 1080p. What resolution should I upscale to and what borders do I need to add?
    What about for a 480i video?

    If the video is widescreen then I assume I should upscale to 1920 x 1080? Thanks
    Quote Quote  
  2. 1080/3*4=1440, so upscale to 1440x1080
    1920-1440=480, 480/2=240 so add 240px borders to each side.

    Makes no difference if you're starting from 576 or 480, you want a 4:3 square pixel image centered in a 16:9 frame at 1920x1080.
    Quote Quote  
  3. OK thanks so do I upscale to 1440 x 1080 for both 576i and 480i?

    For 576p widescreen what resolution would I upscale to?
    Quote Quote  
  4. A Member since June, 2004 Keyser's Avatar
    Join Date
    Feb 2013
    Location
    Westernmost point of Europe
    Search Comp PM
    The source resolution is irrelevant. What matters is the aspect ratio. So, if the source is widescreen (16:9) you should resize to 1920x1080; if it is 4.3, you already have the answer for that.
    "The greatest trick the Devil ever pulled was convincing the world he didn't exist."
    Quote Quote  
  5. Thanks. I'm also trying to use Nnedi to upscale from 720 x 576 to 1080p. The following doubles the resolution to 1440 x 1152.

    Code:
    nnedi3_rpow2(2)
    How can I get Nnedi to upscale to 1920 x 1080 without using Spline36Resize to upscale from 1440 x 1152 to 1920 x 1080 like this?:

    Code:
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1920, fheight=1080)
    Quote Quote  
  6. Originally Posted by MrBiggles View Post
    Thanks. I'm also trying to use Nnedi to upscale from 720 x 576 to 1080p. The following doubles the resolution to 1440 x 1152.

    Code:
    nnedi3_rpow2(2)
    How can I get Nnedi to upscale to 1920 x 1080 without using Spline36Resize to upscale from 1440 x 1152 to 1920 x 1080 like this?:

    Code:
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1920, fheight=1080)
    You can't. nnedi3_rpow2() only upscales by powers of 2 (2, 4, 8...).

    You could use:
    Code:
    nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1920, fheight=1080)
    That will upscale to 4x then downscale to 1920x1080.

    For animated material I sometimes use a sequence like this to give sharper edges:

    Code:
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1280, fheight=720)
    aWarpSharp(depth=5)
    Sharpen(0.2)
    nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=1920, fheight=1080)
    aWarpSharp(depth=5)
    Sharpen(0.2)
    Adjust the sharpening to suit the material.
    Quote Quote  
  7. OK how do I use Nnedi to upscale to power of 4 then downscale to 1920 x 1080?
    Quote Quote  
  8. I updated my previous post while you were replying.
    Quote Quote  
  9. Thanks. I tried this: nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1920, fheight=1080)

    However it's too slow for me. I'm getting under 2fps. Is there a way to speed it up by doing that turn left thing or whatever you call it?
    Quote Quote  
  10. What CPU are you running? Are you using a multithreaded build of AviSynth? Does your 2 fps include encoding or just AviSynth processing? I'm seeing about 4x that speed on my i5 2500K -- just AviSynth processing, no encoding. About 8x that speed with multithreaded AviSynth.
    Quote Quote  
  11. Core i7 2700K @ 4.2 Ghz. I'm also running McTemperalDenoise medium and QTGMC medium before Nnedi.

    How do I see what speed Avisynth is running at and why does it matter when the video needs to be encoded anyway? My encoder is encoding at under 2fps.
    Quote Quote  
  12. Originally Posted by MrBiggles View Post
    Core i7 2700K @ 4.2 Ghz. I'm also running McTemperalDenoise medium and QTGMC medium before Nnedi.
    MCTD and QTGMC are very slow filters, especially with some settings.

    Originally Posted by MrBiggles View Post
    How do I see what speed Avisynth is running at
    I usually open a script and VirtualDub and select File -> Run Video Analysis Pass. You can also use AvsMeter.

    Originally Posted by MrBiggles View Post
    why does it matter when the video needs to be encoded anyway? My encoder is encoding at under 2fps.
    Because encoders can be very slow, especially with high definition material. For example, there's a 100 fold difference in encoding speed (without other processing) between x264's slowest (placebo) and fastest (ultrafast) presets.
    Quote Quote  
  13. Well I use the VeryFast preset in x264 which basically gives the lowest file size at the fastest speed. I don't see the relevance of what speed Avisynth runs at when the video needs to be encoded anyway and it's the encoding speed that matters.

    I know those filters are slow but they are usually faster when not upscaling. Is there anything I can do to speed up Nnedi. Is there a way to speed it up by doing that turn left thing or whatever you call it?
    Quote Quote  
  14. Originally Posted by MrBiggles View Post
    I don't see the relevance of what speed Avisynth runs at when the video needs to be encoded anyway and it's the encoding speed that matters.
    Really? You don't see how more filtering and a larger frame size could take longer?
    Quote Quote  
  15. I'm saying what difference does it make if Avisynth runs faster than the encoding speed I get when obviously the video needs to be encoded to get the improved file.
    Quote Quote  
  16. Because earlier in this thread you didn't mention x264 and the settings used or any of the other filters you're using. How am I supposed to know whether the slowness was due to nnedi3, some other filtering, or the encoder?
    Quote Quote  
  17. With a script like:

    Code:
    SetMtMode(5,4) 
    SetMemoryMax(2000)
    Mpeg2Source("720x576.d2v", Info=3) 
    SetMtMode(2)
    QTGMC()
    McTemporalDenoise()
    nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1920, fheight=1080)
    and x264 CLI at the veryfast preset, I'm getting about 6 fps.
    Quote Quote  
  18. And upscaled video usually is not encoded to H.264 (makes little sense), it is encoded to lossless, because of the purpose is to load it to some HD project.
    Quote Quote  



Similar Threads

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