VideoHelp Forum
+ Reply to Thread
Results 1 to 22 of 22
Thread
  1. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    the MPG is a bad transfert from DV cam to dvd recorder (probably rca audio and 1/8 jack for video)

    I can't reshoot this. i have lots of dvd transferd this way (not by me)

    i know the whites are blown (IRE) (any alchemist are welcome if they can tranform lead into gold)

    the Avi was made using this script -

    OUT_SAR_X = 10
    OUT_SAR_Y = 11

    video = MPEG2Source("E:\DVD_VIDEO_RECORDER\DVD_RECORDER.in dex\DVD_RECORDER.d2v", cpu=6, info=3)
    audio = NicAC3Source("E:\DVD_VIDEO_RECORDER\DVD_RECORDER.i ndex\DVD_RECORDER T80 2_0ch 256Kbps DELAY 0ms.ac3")
    AudioDub(video, audio)

    AssumeTFF()
    ConvertToYV12(interlaced = true, matrix = "PC.601")
    ColorYUV(off_y=-8, gain_y=-14)
    AutoAdjust()
    QTGMC(Preset="Slow", Sharpness=1.0)
    TurnRight()
    QTGMC(Preset="Slower", InputType=3, ProgSADMask=2.0)
    maa2()
    TurnLeft()
    QTGMC(Preset="Slow", InputType=3, ProgSADMask=2.0)
    maa2()
    srestore(Frate=29.97)
    ConvertToYUY2(ChromaInPlacement="MPEG2", matrix = "Rec601")
    TemporalSoften(2, 5, 8, scenechange=15, mode=2)

    Spline36Resize(720, 480)

    i think it's a little over-filtred i'm loosing details (their isn't much)
    i wanted to cleah up vertical and horizontal lines visibles around edges
    i can see them well if i zoom to 400% (with virtualdub or aviuti)

    my end goal is to make an edit-friendly file (probably prores422) for a 2 cam projet
    i have another source that i've deshakened with enough succes

    any suggestions?
    Image Attached Files
    Last edited by smartel; 27th Sep 2017 at 18:01.
    Quote Quote  
  2. aBigMeanie aedipuss's Avatar
    Join Date
    Oct 2005
    Location
    666th portal
    Search Comp PM
    do the transfer from the camera to computer again. DV to computer is a FILE TRANSFER and nothing is lost or changed. use a standard firewire connection and winDV or similar.
    --
    "a lot of people are better dead" - prisoner KSC2-303
    Quote Quote  
  3. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    the file does not exist anymore..that's all i've got now to work with, it's an 11 years old recording
    Quote Quote  
  4. Use Santiag() instead of Maa2(). It doesn't blur as much, at least at the default settings. I'd be wary of using SRestore() to decimate. It may lead to jerky motion at times.
    Quote Quote  
  5. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    i was thinking SRestore for removing possible frame blending.. would MflowFPS be better or smoother?
    Quote Quote  
  6. SRestore will remove the frames that it thinks are the most blended. But that may mean it removes two in a row at times. Given that your frames are at equal 1/60 second intervals that will lead to little jerks in the motion. I didn't notice any in your clip but I'd worry about it. I'd just use a simple decimation like SelectEven() or SelectOdd().
    Quote Quote  
  7. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    am i correct to think that QTGMC uses content of pre and post fields to complete it's fields to frame construction so when removing even or odd frames it doesn't really throw away half of the data?
    Quote Quote  
  8. Originally Posted by smartel View Post
    am i correct to think that QTGMC uses content of pre and post fields to complete it's fields to frame construction so when removing even or odd frames it doesn't really throw away half of the data?
    That is correct. It also uses motion compensation (interpolation). Rather than producing double frame rate then discarding half the frames, you can tell it to produce only one frame for each source frame with FPSDivisor=2. It won't be twice as fast though.
    Last edited by jagabo; 27th Aug 2017 at 22:51.
    Quote Quote  
  9. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    In the wiki they are other options like

    QTGMC( Preset="Slower", FPSDivisor=2, ShutterBlur=2, ShutterAngleSrc=180, ShutterAngleOut=180, SBlurLimit=8 )

    is it usually worth it.? would i gain anything?
    Quote Quote  
  10. You want to add motion blur?
    Quote Quote  
  11. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    when zooming in on the edges, it looks like the old -lite bright- game ....BIG square pixels ..stairways everywhere ...i just want to smooth that out or correct it i don't see any solutions

    that's why i've haded temporalsoften at the end of my script ...if i had a solution for my BIG pixels thing i'd removed it

    I used cpu=6 ..does deblocking kill detail?

    Would seesaw() help for the jaggies or shimmering?
    Last edited by smartel; 28th Aug 2017 at 12:17.
    Quote Quote  
  12. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    i still get horizontal and vertical shimmering and their are still stairways everywhere ? no real solutions?
    Quote Quote  
  13. I didn't find anything that would eliminate the shimering without otherwise damaging the picture.
    Quote Quote  
  14. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    if have questions about multicam in freeware for this projet should i start another thread?
    Last edited by smartel; 3rd Sep 2017 at 17:15.
    Quote Quote  
  15. Member
    Join Date
    May 2014
    Location
    Memphis TN, US
    Search PM
    Originally Posted by smartel View Post
    i still get horizontal and vertical shimmering and their are still stairways everywhere ? no real solutions?
    Those sawtooth edges are a hallmark of many consumer video cameras, both analog and DV. Tends to look worse with DV sources. I hate that noise, and even the best of gurus I've found have no solution for it any better than dropping alternate fields. That's what I tried with QTGMC (FPSdivisor=2), and used RemoveDirtMC to smooth most of the shimmer. The results still worked when I lied to my encoder, told it the video was interlaced, and encoded it for standard def BluRay. Likely wouldn't be so great for a sports video. Too bad about the fried brights, another DV signature.

    Code:
    Import("Drive:\path\to\ContrastMask.avs")
    Import("Drive:\path\to\RemoveDirtMC.avs")
    Import("Drive:\path\to\Santiag_v16.avs")
    
    vid=MPEG2Source("Drive:\path\to\DVD RECORDER.d2v")
    aud=NicAC3Source("Drive:\path\to\DVD RECORDER T80 2_0ch 256Kbps DELAY -12ms.ac3")
    AudioDub(vid,aud)
    ColorYUV(gain_y=-22)
    SmoothLevels(16,0.75,255,16,255,protect=6)
    ContrastMask(enhance=3.0)
    
    AssumeTFF()
    QTGMC(preset="medium",FPSdivisor=2,GrainRestore=0.5)
    Santiag(3,3,type="sangnom")
    RemoveDirtMC(20,false)
    Spline36Resize(720,480)
    LSFmod()
    return last
    Image Attached Files
    - My sister Ann's brother
    Quote Quote  
  16. I took a shot at the MPEG version using a convolution filter with a

    1 2 1
    2 4 2
    1 2 1

    matrix. I then followed that with an inverse gamma function to try to squeeze little more out of the highlights. I then ran that through my own histogram function to further adjust the highlights and gamma. It might look a little blurry up close, but I don't think I lost too much detail. Even if it isn't exactly what you want, it shows you some of the possibilities of a convolution approach. It is well-suited for removing or blurring horizontal or vertical lines.

    Here's the result (I kept it interlaced):

    Convolution Blur, etc.

    You can also play around with these functions which someone suggested to me for removing much stronger vertical lines in Polavision film transfers (Polaroids instant movie film from the late '70s).

    Code:
    function Fix1 (clip c)
    {
      TurnRight(c)
      Merge(Yadif(0,1),Yadif(0,0),0.5)
      Merge(Yadif(0,1),Yadif(0,0),0.5)
      TurnLeft()
    }
    Code:
    function Fix2 (clip c)
    {
    TurnRight(c)
    Merge(Merge(RemoveGrain(15),RemoveGrain(16),0.5),Merge(Yadif(0,0),Yadif(0,1),0.5),0.33)
    TurnLeft()
    }
    Quote Quote  
  17. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    i will come back soon to this post ,i'm working a lot these days

    so far i got relative succes reducing stairways with

    Spline64Resize(640, 480)#square pixels
    nnedi3_rpow2(rfactor=2,cshift="Spline36Resize")

    i don't seam to find the plugin for ContrastMask, the wiki tells me it may work good with HighlightLimiter that i can't find either .

    any improvement i can have i will be happy with ..

    i'll try to find time over the weekend, thx
    Quote Quote  
  18. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    Well sanlyn posted this

    https://forum.videohelp.com/threads/360004-Using-Avisyth-Overlay-for-Contrast-Masking/page2

    it's close to 4 year old ..i'll try to figure out a script and make it work out♥...thx a lot
    Quote Quote  
  19. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    i have difficulties with with 32 and 64 bits compabilities
    so i've uninstalled avisynth and installed avisynth+ 64
    and reinstalled xvid4psp ..

    and noodling with fft3.dll. trying to make LMotlow suggestions work

    and i have no idea how to figure out johnmeyer's suggestion ..

    i'll give myself more time to figure all of that out
    Quote Quote  
  20. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    AssumeTFF()
    #Tweak(hue=0, sat=1.0, bright=-7, cont=0.93, coring=false, dither=true)
    #ColorYUV(gain_y=-22)

    ColorYUV(off_y=-10, gain_y=-12)
    #invert().hdragc().invert()

    SmoothLevels(chroma=2,protect=16)
    ConvertToYV12(interlaced = true, matrix="pc.709")
    QTGMC(Preset="Slow", Sharpness=0.9, FPSDivisor=2, GrainRestore=0.5)

    Spline36Resize(640, 480)
    nnedi3_rpow2(rfactor=2,cshift="Spline36Resize")
    LSFmod()
    ConvertToYV12(matrix="pc.709")
    BilinearResize(640, 480) # bicam mix and youtube upload

    ConvertToRGB()
    #ChromaInPlacement="MPEG2"

    Did a few tests some worked some didn't

    i ran the script trough virtualdub's color tools with it's IRE 100 reduced intensity

    i came across this link http://www.glennchan.info/articles/technical/setup/75IREsetup.html

    Using proc amps to change black level (But i'm mostly concerned about White level)

    A proc amp is typically a hardware device that adjusts analog levels. One of these can be used to convert black level from 0 IRE to 7.5 IRE. You will need to adjust the video levels as follows:

    Adjust luma gain by 92.5 / 100. This is to compensate for the next step.
    Adjust pedestal / luma offset by +7.5. Luma black level will now be at 7.5 IRE, and white level at 100 IRE.
    Adjust chroma gain by 92.5 / 100. To maintain constant saturation, it is necessary to match the chroma gain to luma gain.

    not shure how it translates into avisynth??

    Anyway.i cured most of every aliasing artifacts ..i just leave me to pin my white balance right .. i know i can't do miracles .. still working at it.
    Image Attached Files
    Last edited by smartel; 22nd Oct 2017 at 22:29.
    Quote Quote  
  21. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    video = MPEG2Source("E:\VEGAS\DVD_RECORDER.index\DVD_RECORDER.d2v", cpu=0, info=3, idct=5)
    audio = NicAC3Source("E:\VEGAS\VTS_01_1 T80 2_0ch 256Kbps DELAY 0ms.ac3")
    AudioDub(video, audio)

    Tweak(hue=3, sat=1.2, bright=0, cont=1.00, coring=false, dither=true)
    ColorYUV(off_y=-12, gain_y=-10)

    ConvertToYV12(interlaced = true)

    QTGMC(Preset="Slower", InputType=0, TR2=1, Sharpness=0.4, ChromaMotion=true, ChromaNoise=true, GrainRestore=1.5, NoiseRestore=0.1, StabilizeNoise=true, SourceMatch=3, Lossless=2, Denoiser="dfttest", DenoiseMC=true, NoiseDeint="Generate", ediThreads=2)

    Spline64Resize(704, 528) # for square pixel
    Santiag(3,3,type="sangnom")

    nnedi3_rpow2(2, nsize=4, nns=4, cshift="Spline64Resize", fwidth=960, fheight=720)

    LSFmod(strength=40, soft=-2, edgemode=1, edgemaskHQ=true)

    invert().hdragc(max_sat=1.0, reducer=2.0).invert()

    converttoYUV422(matrix="PC.709")
    ConvertTo16bit()

    Last 2 lines is for prores encoding via xmediarecode

    i want to color correct with davinci resolve

    does my script look right ? it's the best i've done so far

    i have difficulties to get resolve to keep 16-235 from input through output
    any ideas on that ?
    Quote Quote  
  22. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    Click image for larger version

Name:	DVD_RECORDER_1.jpeg
Views:	185
Size:	607.1 KB
ID:	45323

    i uploaded a snapshot the video file didn't upload.. well did upload but didn't made it

    Complete name : E:\VEGAS\DVD_RECORDER.index\New Folder\DVD_RECORDER_1.mov
    Format : MPEG-4
    Format profile : QuickTime
    Codec ID : qt 0000.02 (qt )
    File size : 27.6 GiB
    Duration : 20 min 11 s
    Overall bit rate mode : Variable
    Overall bit rate : 195 Mb/s
    Encoded date : UTC 2018-04-23 10:33:27
    Tagged date : UTC 2018-04-23 10:33:27
    Writing application : Lavf58.10.100

    Video
    ID : 1
    Format : ProRes
    Format version : Version 0
    Format profile : 422 HQ
    Codec ID : apch
    Duration : 20 min 11 s
    Bit rate mode : Variable
    Bit rate : 195 Mb/s
    Width : 960 pixels
    Height : 720 pixels
    Display aspect ratio : 4:3
    Frame rate mode : Constant
    Frame rate : 59.940 (60000/1001) FPS
    Color space : YUV
    Chroma subsampling : 4:2:2
    Scan type : Progressive
    Bits/(Pixel*Frame) : 4.715
    Stream size : 27.6 GiB (100%)
    Writing library : Lavc
    Language : English
    Encoded date : UTC 2018-04-23 10:33:27
    Tagged date : UTC 2018-04-23 10:33:27
    Last edited by smartel; 23rd Apr 2018 at 16:57.
    Quote Quote  



Similar Threads

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