VideoHelp Forum




+ Reply to Thread
Page 5 of 5
FirstFirst ... 3 4 5
Results 121 to 134 of 134
  1. When using the following code in PotPlayer from Jagabo:
    Code:
    src = potplayer_source()
    Crop(src, 8,0,-8,-0) # assuming ITU cap
    Overlay(Spline36Resize(width/16*2,height/16*2).Blur(1.4).Blur(1.4).Blur(1.4).Spline36Resize(src.width,src.height).ColorYUV(gain_y=-50), Spline36Resize(width*3/4,height), x=(src.width-(width*3/4))/2, y=0)
    float(src.width)/float(src.height) < 1.77 ? last : src
    I get an error when playing a video with the resolutions of Width:708 x Height: 480.
    Stating: Resize: Planar destination height must be a multiple of 2. (potplayer_avisynth_script, line 4)
    How can i fix this?
    Quote Quote  
  2. On the third line change Spline36Resize(width*3/4,height) to Spline36Resize(width*3/8*2,height).
    Quote Quote  
  3. Thanks so much jagabo!

    I would like to use this code:

    Code:
    src = potplayer_source()
    Crop(src, 8,0,-8,-0) # assuming ITU cap
    Overlay(Spline36Resize(width/16*2,height/16*2).Blur(1.4).Blur(1.4).Blur(1.4).Spline36Resize(src.width,src.height).ColorYUV(gain_y=-50), Spline36Resize(width*3/8*2,height), x=(src.width-(width*3/4))/2, y=0)
    float(src.width)/float(src.height) < 1.77 ? last : src
    But include the feather effect u made using this code without the ZOOM function, just the feather effect:
    from this:

    Code:
    uncropped = potplayer_source()
    src = uncropped.Crop(8,0,-8,-0)
    
    ZOOM = 1.167
    
    Spline36Resize(src, int(uncropped.width*ZOOM)/2*2, int(uncropped.height*ZOOM)/2*2)
    Crop(0, (height-src.height)/4*2, -0, src.height)
    alpha = Overlay(BlankClip(last, color=$000000), BlankClip(last, color=$ffffff).Crop(16,0,-16,-0), x=16, y=0).ColorYUV(cont_y=50).PointResize(width/16*2, width).BilinearResize(width,height)
    bg = Spline36Resize(width/16*2,height/16*2).Blur(1.4).Blur(1.4).Blur(1.4).Spline36Resize(uncropped.height*16/18*2,uncropped.height).ColorYUV(gain_y=-50)
    Overlay(bg, last, x=(bg.width-width)/4*2, y=0, mask=alpha)
    Spline36Resize(uncropped.width, uncropped.height)
    
    float(uncropped.width)/float(uncropped.height) < 1.77 ? last : uncropped
    And how can i adjust the sidebar sizes because with my video it's not a 4:3 image anymore.
    but a bit wider.

    Thanks!
    Last edited by Desz5; 1st Feb 2025 at 14:57.
    Quote Quote  
  4. Been trying but i only get the desired effect on the left side with this code:
    Code:
    src = potplayer_source()
    Crop(src, 8,0,-8,-0) # assuming ITU cap
    alpha = Overlay(BlankClip(last, color=$000000), BlankClip(last, color=$ffffff).Crop(16,0,-16,-0), x=16, y=0).ColorYUV(cont_y=50).BilinearResize(width/16*2, width).BilinearResize(width,height)
    bg = FastBlur(8, iterations=3, dither=yes).Spline36Resize(src.width,src.height).ColorYUV(gain_y=-50).Spline36Resize(src.height*16/18*2,src.height)
    Overlay(bg, last, x=(bg.width-width)/4*2, y=0, mask=alpha)
    float(src.width)/float(src.height) < 1.77 ? last : src
    Quote Quote  
  5. I did a quick test of that script in AviSynth with a 640x480 video. The script works but it enlarges the frame to 852x480:

    Image
    [Attachment 85252 - Click to enlarge]


    You can't enlarge the frame like that in PotPlayer -- it will crop the video back to the original frame size.
    Quote Quote  
  6. Would you have an idea how to use this in PotPlayer?
    Quote Quote  
  7. What are the properties of your source file? Frame dimensions, display aspect ratio, sampling aspect ratio?
    Quote Quote  
  8. My source file is 708x480, display aspect ratio is 3:2, and Bits/(Pixel*Frame): 0.144.
    Is there a way to always apply the script in potplayer no matter the source height and width?
    Quote Quote  
  9. Originally Posted by Desz5 View Post
    My source file is 708x480, display aspect ratio is 3:2, and Bits/(Pixel*Frame): 0.144.
    Is there a way to always apply the script in potplayer no matter the source height and width?
    So you want a 4:3 source to display as 4:3 in a 16:9 frame (fill a 16:9 monitor)? That can't be done by AviSynth as PotPlayer will not allow the script to change the frame size or DAR. You can force PotPlayer to display all videos as 16:9 DAR but then some will display incorrectly.
    Quote Quote  
  10. With this code i get the following results which is great:

    Code:
    src = potplayer_source()
    Crop(src, 8,0,-8,-0) # assuming ITU cap
    Overlay(FastBlur(14, iterations=3, dither=yes).Spline36Resize(src.width,src.height).ColorYUV(gain_y=0), Spline36Resize(width*3/8*2,height), x=(width-(width*3/4))/2, y=0)
    float(src.width)/float(src.height) < 1.77 ? last : src


    With this code i get the following results which is good but i would like it to be like the sample above with de sides more wider making it a 4:3 image like the original picture.
    I've set the ZOOM to 1 but i was looking for a way to cut out the ZOOM function because i wouldn't use it.
    Making the code longer and more demanding.

    Code:
    uncropped = potplayer_source()
    src = uncropped.Crop(8,0,-8,-0)
    
    ZOOM = 1
    
    Spline36Resize(src, int(uncropped.width*ZOOM)/2*2, int(uncropped.height*ZOOM)/2*2)
    Crop(0, (height-src.height)/4*2, -0, src.height)
    alpha = Overlay(BlankClip(last, color=$000000), BlankClip(last, color=$ffffff).Crop(16,0,-16,-0), x=16, y=0).ColorYUV(cont_y=50).PointResize(width/16*2, width).BilinearResize(width,height)
    bg = Spline36Resize(width/16*2,height/16*2).Blur(1.4).Blur(1.4).Blur(1.4).Spline36Resize(uncropped.height*16/18*2,uncropped.height).ColorYUV(gain_y=-50)
    Overlay(bg, last, x=(bg.width-width)/4*2, y=0, mask=alpha)
    Spline36Resize(uncropped.width, uncropped.height)
    
    float(uncropped.width)/float(uncropped.height) < 1.77 ? last : uncropped



    With this code i get the following result:
    Only showing the left side and the picture doesn't stay the same as before.

    Code:
    src = potplayer_source()
    Crop(src, 8,0,-8,-0) # assuming ITU cap
    alpha = Overlay(BlankClip(last, color=$000000), BlankClip(last, color=$ffffff).Crop(16,0,-16,-0), x=16, y=0).ColorYUV(cont_y=50).BilinearResize(width/16*2, width).BilinearResize(width,height)
    bg = FastBlur(8, iterations=3, dither=yes).Spline36Resize(src.width,src.height).ColorYUV(gain_y=-50).Spline36Resize(src.height*16/18*2,src.height)
    Overlay(bg, last, x=(bg.width-width)/4*2, y=0, mask=alpha)
    float(src.width)/float(src.height) < 1.77 ? last : src
    Quote Quote  
  11. I'm not at home with my computer. I won't have time to look into this until tomorrow or the next day.
    Quote Quote  
  12. Had a chance today...

    Code:
    uncropped = potplayer_source()
    
    cropped = uncropped.Crop(8,0,-8,-0)
    cropped = cropped.Spline36Resize(cropped.width*3/8*2, cropped.height)
    alpha = cropped.BlankClip(color=$00ffffff).Crop(16,0,-16,0).AddBorders(16,0,16,0).BilinearResize(cropped.width/16*2, cropped.height).Blur(1.5).BilinearResize(cropped.width, cropped.height).ColorYUV(cont_y=60)
    bg = cropped.Spline36Resize(uncropped.width/16*2, uncropped.height/16*2).Blur(1.0).Spline36Resize(uncropped.width, uncropped.height).ColorYUV(gain_y=-50)
    Overlay(bg, cropped, x=(bg.width-cropped.width)/4*2, y=0, mask=alpha)
    
    float(uncropped.width)/float(uncropped.height) < 1.77 ? last : uncropped
    This should work with both PAL and NTSC videos.
    Last edited by jagabo; 4th Feb 2025 at 23:39.
    Quote Quote  
  13. Works great!
    You're the best jagabo!
    Quote Quote  



Similar Threads

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