VideoHelp Forum
+ Reply to Thread
Page 4 of 4
FirstFirst ... 2 3 4
Results 91 to 108 of 108
Thread
  1. The think the border artifacts are a result of oversharpening, not mpeg compression. Try something like this:

    Code:
    Mpeg2Source("HORSE(01).d2v", CPU2="ooooxx", Info=3) 
    
    # IVTC first
    TFM(d2v="C:\Users\John\Desktop\HORSE(01).d2v") 
    TDecimate() 
    
    # restore black borders that were remove before, so dehaloing will work at the edges of the frame
    AddBorders(8,8,8,8)
    
    # overlay a dehaloed video only at sharpest edges
    emask = mt_edge(mode="prewitt", thy1=150, thy2=150).mt_expand().Blur(1.5).Blur(1.5)
    dh = dehalo_alpha(rx=2.0, ry=2.0, DarkStr=1.5, BrightStr=1.5)
    Overlay(last, dh, mask=emask)
    
    # sharpen a little, skip this if you don't like it
    Sharpen(0.3, 0.2)
    
    #remove the borders we added and the letterboxing
    Crop(10,52,-10,-56)
    
    # increase contrast and saturaton a little, convert to rec.709, temporal denoise and sharpen/shift chroma
    ColorYUV(gain_y=30, off_y=-10, cont_u=30, cont_v=30)
    ColorMatrix(mode="rec.601->rec.709") 
    SMDegrain(tr=1, thsad=100, prefilter=4)
    MergeChroma(last, aWarpSharp2(depth=10).ChromaShiftSP(x=-0.5, y=-0.5))
    
    # upscale
    nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1920, fheight=1164).aWarpSharp(depth=3).Sharpen(0.2)
    
    # just the same portion that Sharc uploaded
    Trim(0, 1396)
    Image Attached Files
    Last edited by jagabo; 7th Jul 2024 at 08:24. Reason: uploaded correct video file
    Quote Quote  
  2. Originally Posted by jagabo View Post
    The think the border artifacts are a result of oversharpening, not mpeg compression. Try something like this:

    Code:
    Mpeg2Source("HORSE(01).d2v", CPU2="ooooxx", Info=3) 
    
    # IVTC first
    TFM(d2v="C:\Users\John\Desktop\HORSE(01).d2v") 
    TDecimate() 
    
    # restore black borders that were remove before, so dehaloing will work at the edges of the frame
    AddBorders(8,8,8,8)
    
    # overlay a dehaloed video only at sharpest edges
    emask = mt_edge(mode="prewitt", thy1=150, thy2=150).mt_expand().Blur(1.5).Blur(1.5)
    dh = dehalo_alpha(rx=2.0, ry=2.0, DarkStr=1.5, BrightStr=1.5)
    Overlay(last, dh, mask=emask)
    
    # sharpen a little, skip this if you don't like it
    Sharpen(0.3, 0.2)
    
    #remove the borders we added and the letterboxing
    Crop(10,52,-10,-56)
    
    # increase contrast and saturaton a little, convert to rec.709, temporal denoise and sharpen/shift chroma
    ColorYUV(gain_y=30, off_y=-10, cont_u=30, cont_v=30)
    ColorMatrix(mode="rec.601->rec.709") 
    SMDegrain(tr=1, thsad=100, prefilter=4)
    MergeChroma(last, aWarpSharp2(depth=10).ChromaShiftSP(x=-0.5, y=-0.5))
    
    # upscale
    nnedi3_rpow2(4, cshift="Spline36Resize", fwidth=1920, fheight=1164).aWarpSharp(depth=3).Sharpen(0.2)
    
    # just the same portion that Sharc uploaded
    Trim(0, 1396)
    The dehaloing is effective, but I think you attached my file of post#89 instead of yours, right?
    Quote Quote  
  3. Originally Posted by Sharc View Post
    I think you attached my file of post#89 instead of yours, right?
    You're right. I'll fix it now.
    Quote Quote  
  4. First jagabo I want to thank you for all the work.
    What you did is above my knowledge level to do.
    I have never used dehalo or overlay.
    I would sure need to use your sharp edge settings.
    I would have to Google to try to understand them.

    My BD player would not play the resolution height.
    My TV could play it direct.I could see the vertical line but it was only about 1/16th" wide.

    Sharcs video you made it from has the line about 1/8th wide.
    For some reason in Sharc's video the line is more translucent.

    I will explain this again.The line is translucent on all the videos posted here.
    I have to be very close to the TV to see it.
    From normal watching distance I do not see it
    The test pattern Sharc posted does not have the line.
    I have tested other videos I have & a few DVDs .
    On some the line is there & some it is not.
    So I believe it is the TV.


    Instead of restoring the black borders;why not start with the original rip from the DVD?
    Then use the other procedures you recommend.
    Quote Quote  
  5. Originally Posted by cholla View Post
    Instead of restoring the black borders;why not start with the original rip from the DVD?
    Because the dehalo filter needs the black border to recognize the halo at the edge of the frame. Without it the halo isn't detected correctly.
    Quote Quote  
  6. Originally Posted by cholla View Post
    My BD player would not play the resolution height.
    Many/most BD players won't play >1080 height and/or level L5.
    You can try to crop jagabo's file vertically by 84 pixels to make it 1920x1080 (16:9), and you may have to change the Level to 4.1 to make your BD player happy. The PAR (pixel aspect ratio) will be ok, means the objects in the picture are not stretched by the cropping.
    Quote Quote  
  7. Originally Posted by Sharc View Post
    Originally Posted by cholla View Post
    My BD player would not play the resolution height.
    Many/most BD players won't play >1080 height and/or level L5.
    You can try to crop jagabo's file vertically by 84 pixels to make it 1920x1080 (16:9)
    Or upscale to 1782x1080 instead of 1920x1164.
    Quote Quote  
  8. @jagabo,
    I meant using the DVD rip strait from the DVD.
    I uploaded a clip like this in post#35.
    It is a pillared & bared 4:3 resolution.
    I never was able to determine if it actually had pillars or was just a size that looks like it has them.

    @ Sharc,

    Originally Posted by Sharc View Post
    Many/most BD players won't play >1080 height and/or level L5.
    I believe you meant 1164 height like jagabo's video.

    My TV played it fine & I believe that was good enough to check the results.
    Quote Quote  
  9. Originally Posted by cholla View Post
    @ Sharc,

    Originally Posted by Sharc View Post
    Many/most BD players won't play >1080 height and/or level L5.
    I believe you meant 1164 height like jagabo's video.
    ">1080" in words means "larger than 1080". So yes, most BD-players will not play files with 1164 height, because 1164 is larger than 1080.
    (Your TV is not a BD-player. Obviously it can play .mkv and .mp4 files which are not BD-compliant, and apply its own resizing rules.)
    Last edited by Sharc; 7th Jul 2024 at 13:10.
    Quote Quote  
  10. Hi... Your panoramic conversion is one of the option of Atomic Stretch a free plugin for Adobe Premiere, that can give you various stretching options.

    I use another method of stretching, a mixed method. I stretch the 4:3 to 5:3 and I zoom the rest to 16:9. With this method some of the upper and lower parts of the video are cutted, but each movie I have seen does not have so many important detail in these two little parts cutted. With these method, The peoples on the video are not too much stretched.
    Quote Quote  
  11. Originally Posted by Sharc View Post
    Many/most BD players won't play >1080 height and/or level L5.
    You can try to crop jagabo's file vertically by 84 pixels to make it 1920x1080 (16:9), and you may have to change the Level to 4.1 to make your BD player happy. The PAR (pixel aspect ratio) will be ok, means the objects in the picture are not stretched by the cropping.
    I did some conversions:
    The first gave an "Incorrect Resolution" Then "Cannot play this file" HORSE_jagabo_High4.mkv
    Correct on this one the BD player could not play 1164 height.

    The second gave "Cannot play this file" HORSE_jagabo_1080.mkv
    Correct on this one the BD player could not play High 5 even if the resolution is 1080.

    The third is a working video with 1080 & High 4.1.
    It plays correctly.
    Image Attached Files
    Quote Quote  
  12. @chollo: No surprise, no miracle. It's what I said.
    Some players may be even more picky with what they play. Read the specs of your BD player.

    (Btw. the 3rd got horizontally stretched again by ~7% ("fat people") by your re-encoding. You should have cropped it vertically to keep the proportions intact, as discussed before.)
    Last edited by Sharc; 7th Jul 2024 at 16:45.
    Quote Quote  
  13. Originally Posted by cholla View Post
    My BD player would not play the resolution height.
    My TV could play it direct.I could see the vertical line but it was only about 1/16th" wide.

    Sharcs video you made it from has the line about 1/8th wide.
    For some reason in Sharc's video the line is more translucent.
    Note that Sharc removed the artifacts by cropping them away. I removed them by dehaloing -- leaving more of the original picture.

    Originally Posted by cholla View Post
    I will explain this again.The line is translucent on all the videos posted here.
    I have to be very close to the TV to see it.
    From normal watching distance I do not see it
    The test pattern Sharc posted does not have the line.
    I have tested other videos I have & a few DVDs .
    On some the line is there & some it is not.
    So I believe it is the TV.
    Make sure your TV's Sharpen filter is disabled or lowered as far as possible. All those enhancement filters do is mess up a good picture.
    Quote Quote  
  14. Originally Posted by Sharc View Post
    Read the specs of your BD player.
    I will if i can find them.

    Originally Posted by Sharc View Post
    (Btw. the 3rd got horizontally stretched again by ~7% ("fat people") by your re-encoding. You should have cropped it vertically to keep the proportions intact, as discussed before.)
    I wasn't co0ncerned about the ("fat people") I was just making an example that would play on my BD player & probably other peoples.
    In case someone reads this topic & needs to check out their BD player.

    Originally Posted by jagabo View Post
    Make sure your TV's Sharpen filter is disabled or lowered as far as possible. All those enhancement filters do is mess up a good picture.
    I will check my TV settings to see. It has a lot of settings .

    This is my final video for this project.
    If the people are stretched horizontally "fat" I will live with it.
    I'm now converting it back to a DVD format & will burn that to a DVD disc.
    To me it will still be a lot better than watching a small square or rectangle surrounded by black on all sides.
    I look at it like this: even if at a movie theater the people are in the correct proportion.
    They are still a lot fatter than on my TV.
    Image Attached Files
    Quote Quote  
  15. Member
    Join Date
    May 2005
    Location
    Australia-PAL Land
    Search Comp PM
    All the work of the last 4 pages has been spoiled by that stretching. A pity.
    Quote Quote  
  16. Originally Posted by Alwyn View Post
    All the work of the last 4 pages has been spoiled by that stretching. A pity.
    I do appreciate the effort & I'm satisfied with my result.
    So I wouldn't say spoiled.

    I did a comparison & all the videos were stretched some.
    I made these measurements with VLC player & a ruler on a 24" monitor set to 1920x1080.
    The original DVD rip 720x480 Man in middle 1 is 3 1/4" at shoulders. Man 2 in white coat is 2 5/16" at shoulders.

    jagabo's was the least stretched the resolution was 1920x1164.


    HORSE(01) 880x540 6k.mp4 Man width 4"but this video is not 1920 x1080.

    HORSE(01) 1280x720_.mp4 Man width 4 1/16" but this video is not 1920 x1080.

    HORSE(01) 1920x1080_ffmpeg_.mp4 Man width 4 3/8"

    HORSE(01) 1920x1080_ffmpeg_2.mp4 Man width 4 3/8"

    HORSE(01) 1920x1080_ffmpeg_stretch.mp4 Man width 4 3/8"

    HORSE(01) No Bars 884x540.avi Neither man was not in this video but this video is not 1920 x1080.

    HORSE(01) VDub IVTC Crop Resize 1920x1080.mp4 Man was not in this video,Had to use different man. Shoulders 3 1/8"

    horse(01).mp4 Man width 4 1/16" video is 720x480

    HORSE(01).vob.avs.mkv Man width 4"

    HORSE(01)_zoomed_.mp4 Man was not in this video.Had to use different man. Shoulders 2 7/8"

    Jerky AVISynth.mp4 Man was not in this video.Had to use different man. Shoulders 2 7/8" .Video 720x480.

    Horse(06)cut.mp4 Man width 4" 5/16" Other man 3 1/8"

    The images are the location in the video I made the measurements at.
    Image
    [Attachment 80510 - Click to enlarge]


    Image
    [Attachment 80513 - Click to enlarge]
    Quote Quote  



Similar Threads

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