VideoHelp Forum




+ Reply to Thread
Results 1 to 10 of 10
  1. I'm converting a blu-ray to dvd. I've changed an .mkv to an .mpg (mpeg2).

    I want to adjust the saturation and brightness of my .mpg to match that of the .mkv.

    The screen cap on the left is the video I've been adjusting to match the one on the right:
    Click image for larger version

Name:	twovideos.png
Views:	914
Size:	642.3 KB
ID:	8382

    Is there a program that can tell me exactly what adjustments I need to make the images match?

    (btw - this is what I'm using to adjust the levels)
    Name:  cropadjust.png
Views: 2381
Size:  3.2 KB
    Quote Quote  
  2. I think you just need to use the proper color matrix to decode the videos. The HD video is rec.709, the SD video rec.601. In AviSynth you can use the ColorMatrix() filter to convert one to the other:

    ColorMatrix("Rec.709->Rec.601") #make the HD video match the SD video
    ColorMatrix("Rec.601->Rec.709") #make the SD video match HD video

    Or you might try the ColorLike() filter in AviSynth.

    http://forum.doom9.org/showthread.php?t=96308

    You probably can't make the adjustments with RGB filters.
    Last edited by jagabo; 28th Aug 2011 at 22:33.
    Quote Quote  
  3. Isn't there a mistake there, jagabo, as both colorimetry conversions are the same?

    thrakk, if using AviSynth (as you should) and the ColorMatrix filter, and downscaling from Hi-Def to Standard-Def, you should use:

    ColorMatrix("Rec.709->Rec.601")#I'd also use clamp=0 in there.

    Read the doc. It should fix the problems you're seeing.
    Quote Quote  
  4. Originally Posted by manono View Post
    Isn't there a mistake there, jagabo, as both colorimetry conversions are the same?
    Oops, I copied and pasted but forgot to change the matrix text! I'll fix it now.
    Quote Quote  
  5. Easy to do thrakk, see this thread on doom9 you will have to adjust the levels beforehand though for optimum results.
    Tested and approved by me.
    Edit:
    i woul do a color matrix convertion first as suggested and then use the filters levels+ colourlike
    *** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
    Quote Quote  
  6. Would anyone care to give me some code on how to do mkv ---> mpeg2 conversion using AviSynth (or just a color fix using the .mpg I already made)?

    I have AvsPmod as my script editor and my AViSynth is located in C:\Program Files\AviSynth 2.5
    my .mkv is in C:
    the .mpg that I previously made using IMToo Video Converter is in C:

    I have been trying to convert to 720x480, Zoom Level: Letterbox, Ratio 3:2 (so I can put subtitles underneath when I author using DVD Architect - which requires a reconversion to 16:9).

    I've been trying to make the rest of the conversion be DVD compliant (23.976 deinterlaced, 4750k cbr, GOP: 12, audio: ac3 5.1 448 48000)

    ________

    I have lots of plugins installed for AviSynth and am willing to install more to get a better quality picture.

    I just have never used AviSynth and I would love for someone to tell me all the code, and steps necessary to finish making this DVD that I've been working on for over a week now.
    Quote Quote  
  7. You have to demux the mkv in elementary streams (H264/aac typically, may vary for the audio), i use mediacoder for that (which use mkvextract)
    - install avisynth 2.6 (Better color accuracy)
    - use DGAVCIndex.exe to decode the video
    in your script it should look like this

    v=AVCSource("C:\MyVideo.dga")
    a=DirectShowSource("C:\Audio.aac")
    audiodub(v,a)
    #
    Resampleaudio(48000) # not necessary if already 48khz
    #
    ColorMatrix("Rec.709->Rec.601") # color matrix change HD>SD
    #
    spline36resize(720,480) # Resize video to dvd ntsc compliant size,
    # Note this is a sharp resizer, maybe you need one that blur for HD-> SD convertion (bilinearresize)
    AssumeTFF() # specify top field first as first field, not sure if that would be useful here

    And then you can add what you want. If your source is 23.976 fps then you can do a soft pulldown (23,9p > 29.9i) with the encoder of your choice (HC enc etc...)

    Search here for infos on filters: http://avisynth.org/mediawiki/AviSynth_FAQ
    And on doom9 forum (register + use seach engine)
    http://forum.doom9.org/forumdisplay.php?f=33
    *** DIGITIZING VHS / ANALOG VIDEOS SINCE 2001**** GEAR: JVC HR-S7700MS, TOSHIBA V733EF AND MORE
    Quote Quote  
  8. What do I do after I get the script running?
    I can open the script in WMP but I don't know how to make a permanent output file
    Quote Quote  
  9. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by thrakk View Post
    What do I do after I get the script running?
    I can open the script in WMP but I don't know how to make a permanent output file
    EDIT: Just noticed you're making DVD not AVI.
    So as Jagabo said, use HCEnc to make the MPEG2 video.
    You can choose the final size, no more than 4GB to fit on a DVD.

    You'll also need audio.

    You can do this with Avisynth too, one way is to install the SoundOut plugin, and save as AC3 audio, with an appropriate rate (anything over 128 is fine).

    Then author the files (i.e., make a VIDEO_TS fileset) using GfD, and burn with ImgBurn.
    Last edited by AlanHK; 10th Sep 2011 at 10:05.
    Quote Quote  
  10. Open your AviSynth script with HcGUI to make an MPEG 2 file.
    Quote Quote  



Similar Threads

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