VideoHelp Forum




+ Reply to Thread
Results 1 to 15 of 15
  1. Member
    Join Date
    May 2004
    Location
    Brazil
    Search Comp PM
    This image is taken from a bluray version of a film.

    Have a look at the green invasion into many areas, I think it's called fringing, but I'm not sure.

    Apparently it was badly captured during the film/video conversion, with a misaligned camera.

    A friend of mine told that it's possible to correct that, possibly using a Virtualdub plugin. Is that true?

    How should I proceed?
    Image Attached Thumbnails Click image for larger version

Name:	Bend.jpg
Views:	107
Size:	191.8 KB
ID:	44819  

    Quote Quote  
  2. Shifting the red channel up by a few lines helps. I don't know if there's a VirtualDub filter for this but in AviSynth:

    Code:
    ImageSource("Bend.jpg") 
    
    red = ShowRed() # separate red, green, blue channels
    green = ShowGreen()
    blue = ShowBlue()
    
    red = red.Crop(0,2,0,0).AddBorders(0,0,0,2) #shift red up by two lines
    
    MergeRGB(red, green, blue) # merge red,green,blue back together
    Click image for larger version

Name:	redup.jpg
Views:	84
Size:	33.2 KB
ID:	44822
    Quote Quote  
  3. Member
    Join Date
    May 2004
    Location
    Brazil
    Search Comp PM
    How and using what do I run AviSynth in HD?
    Quote Quote  
  4. Do you know AviSynth at all?

    A full script might look like:

    Code:
    LWLibAVVideoSource("filename.m2ts") # load video
    
    ConvertToRGB(matrix="rec.709") # HD YV12 to RGB
    
    red = ShowRed() # separate red, green, blue channels
    green = ShowGreen()
    blue = ShowBlue()
    
    red = red.Crop(0,2,0,0).AddBorders(0,0,0,2) #shift red up by two lines
    
    MergeRGB(red, green, blue) # merge red,green,blue back together
    
    ConvertToYV12(matrix="rec.709") # back to HD YV12
    
    # any other cleanup here...
    You open that script with an editor/encoder that supports AviSynth scripts as input, for example VirtualDub, MeGUI, x264 CLI, etc., then encode. Then mux with the original audio.

    In addition to the bad red channel registration, your sample image looks like poorly upscaled standard definition video tape. It could probably use some other filtering.
    Quote Quote  
  5. Member
    Join Date
    May 2004
    Location
    Brazil
    Search Comp PM
    Well, know Avisynth as I should I don't know. But I used it a lot a few years ago to convert mkv files onto DVD, and also to correct many problems the video or audio tracks had.

    I collected a large list of plugins, which I still have, even if I do not use them.

    AviSynth tools would become very handy to convert many DVDs I have onto mkv, using some plugins to improve resolution, at least visually. So I would love to find a way to do that, which I guess there might be.

    In those times I used AvsP to look at how things changed with plugins and HCenc to make the conversion. They turned out beautifully.

    But I don't know what programs to use in HD.

    About the film, even if it comes from a Bluray, I don't think the film was masterized to HD, it certainly looks like an upscale.
    Quote Quote  
  6. All the functions I used in that script are built into AviSynth. Except LWLibavVideoSource(). If you don't have that you will need to get the LSMash package and put LSmashSource.dll in AviSynth's plugins folder.

    If you want to upscale DVDs you'll want to use nnedi3. If you ever install MCTemporalDenoise or QTGMC you will already have nnedi3. Cartoons upscale pretty well.

    https://forum.videohelp.com/threads/387998-Ripping-a-DVD-in-order-to-deinterlace-decom...it#post2511590

    Real video doesn't upscale as well but you can get results better than your TV/DVD player can give.

    Post a short sample of this Blu-ray video (don't re-encode) if you want input on it. Or of a DVD you want to upscale.
    Last edited by jagabo; 2nd Mar 2018 at 10:59.
    Quote Quote  
  7. Member
    Join Date
    May 2004
    Location
    Brazil
    Search Comp PM
    I didn't intend to use other plugins, but those of Avisynth.

    The question is which program I run them with for HD files.

    On DVD I used HCenc. What should I use now to load the plugins in?
    Quote Quote  
  8. Member
    Join Date
    May 2004
    Location
    Brazil
    Search Comp PM
    Oh, I forgot. I have been using Vidcoder to make my DVD to MKV conversions.

    Excellent as the program is, it doesn't allow any enhancements.

    My task would be to get similar results to what I get playing and upscaling DVDs in my Proview DVP-858 player.

    The upscaling is much better than on most BD players. I even thought of getting an HD capture recorder and use the Proview HDMI output. But I'm sure there must be a way to get a similar result with soft. Isn't it?
    Quote Quote  
  9. Originally Posted by carlmart View Post
    The question is which program I run them with for HD files.
    You can use any editor/encoder that supports AviSynth scripts as input. VirtualDub FilterMod, VirtualDub, MeGUI, x264 cli encoder, etc.
    Quote Quote  
  10. Member
    Join Date
    May 2004
    Location
    Brazil
    Search Comp PM
    How do you proceed with x264 encoder for instance, in order to load the video file and the plugins?

    Can I use some AvsP HD version (if any) to check different plugins and gradations?

    Any tutorial anywhere?
    Quote Quote  
  11. I use Notepad to edit my AVS scripts, VirtualDub to view the results. You can use AvsP if you want. Tutorial for what? Upscaling? I've posted many examples here. Search for nnedi3_rpow2.
    Quote Quote  
  12. Member
    Join Date
    May 2004
    Location
    Brazil
    Search Comp PM
    Yes, I also used Notepad for editing the scripts, and I did have a collection of them. They are probably on one of my old IDE HDDs.

    Then I loaded them in AvsP to check on the results, and then (in that case) in HCenc to generate the DVD files.

    I wondered if there was some tutorial for upscaling and for working with HD files, in MKV or whatever. On the script up above you used LWLibAVVideoSource. Do I have to use that?

    Will search for nnedi3_rpow2, here and on Google.
    Quote Quote  
  13. Use whatever source filter you want. For MPEG 2 sources (DVD) I would use DgDecode (DgIndex and Mpeg2Source()). I don't know of any upscaling tutorials.

    http://avisynth.nl/index.php/Nnedi3
    http://avisynth.nl/index.php/DGDecode
    http://avisynth.nl/index.php/LSMASHSource
    Quote Quote  
  14. Member
    Join Date
    May 2004
    Location
    Brazil
    Search Comp PM
    Correct me if I'm wrong. These are examples of upscaling?

    https://forum.videohelp.com/threads/387998-Ripping-a-DVD-in-order-to-deinterlace-decom...it#post2511590

    First I generate the d2v or avs file (how did I do that?) to load the DVD files, load the script into X264 or MEGUI, upconvert it, using filters or not, and get what file type from it?
    Quote Quote  
  15. Originally Posted by carlmart View Post
    Yes, that was from a DVD. The DVD was made from a studio analog video tape.

    Originally Posted by carlmart View Post
    First I generate the d2v or avs file (how did I do that?)
    Use DgIndex to make the index file. Then make a script with Notepad that starts with:

    Code:
    Mpeg2Source("filename.d2v")
    Change filename.d2v to whatever you named the d2v file. You'll probably also need to inverse telecine

    Code:
    TFM()
    TDecimate()
    or deinterlace:

    Code:
    QTGMC()
    Then upscale and maybe sharpen:

    Code:
    nned3_rpow2(4, cshift=Spline36Resize", fwidth=1920, fheight=1080) # for a 16:9 video, 1440x1080 for a 4:3 video
    awarpSharp(depth=10)
    Sharpen(0.3)
    But exactly what you want to do depends on the source. The cleaner you get the source the better the upscaling can be.

    Finally load the script into X264 or MEGUI or whatever program you plan to use to encode.

    I recommend you use DgIndex to extract a short portion of your video (mark a 30 second segment from the main movie, then File -> Save Project and Demux Video) and upload it (the m2v) here to get more detailed instructions for the particular video.
    Quote Quote  



Similar Threads

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