VideoHelp Forum
+ Reply to Thread
Page 4 of 5
FirstFirst ... 2 3 4 5 LastLast
Results 91 to 120 of 146
Thread
  1. Originally Posted by hello_hello View Post
    The mp4 has so much encoder blocking in the borders it's hard to tell what's what, but if I'm seeing what you are, I guess I'd call it flickering rather than shimmering. I think it's caused by part of an object appearing in the border and disappearing quickly, and being blurred in the process, which makes it more noticeable. Plus it's a single shot with a hand held camera, and the camera moving increases the likelihood that sort of thing will happen.

    I also suspect the more you blur, the more temporal softening is required to reduce it, but that's probably not a bad thing because the more you blur, the less noticeable the temporal softening is.

    Mind you I find borders that size more distracting than any flickering, which is why I tend to zoom in a bit and make them smaller, but is it as noticeable in either of these?

    example1

    Code:
    CropResize(640,480)
    FCropResize(Feather=50,clone=2,blend=0,blur=70,TSoft=5)
    CropResize(960,540, 10,0,0,0, frosty=true)
    example2

    Code:
    CropResize(700,480, 0,10,0,-30)
    FCropResize(Feather=20,clone=2,blend=0,blur=20,TSoft=2)
    CropResize(960,540, 10,0,0,0, frosty=true)
    Your second example seems to have successfully solved my shimmering/flickering issue . Thank you for your support with that problem. I do have a question to ask. I noticed that you applied a crop value on the top crop resize (CropResize(700,480, 0,10,0,-30)) and then applied the remaining crop values on the last line (CropResize(960,540, 10,0,0,0, frosty=true)) . Could you explain to me the benefits of doing that versus applying the crop values all in the last line?


    By the way, even if you're watching the video via a script, you can still use the ffdshow function to automate the aspect ratio and cropping.

    FCropResize(Feather=20,clone=2,blend=0,blur=20, TSoft=2)
    CR_FFDShow(960,540, 10,0,0,0, CropDAR=1.55, frosty=true)

    The main difference between that and the standard CropResize, it the ffdshow function will crop more from the bottom than from the top for the specified CropDAR, rather than crop them evenly.

    Of course if ffdshow is involved in the decoding, you don't need to do it in the script.
    Noted. I've been using FFDshow since I have it installed to all my computers that I use to watch videos on, alongside frostyboarders.
    Quote Quote  
  2. Originally Posted by thebib62 View Post

    Code:
    CropResize(700,480, 0,10,0,-30)
    FCropResize(Feather=20,clone=2,blend=0,blur=20,TSoft=2)
    CropResize(960,540, 10,0,0,0, frosty=true)
    Your second example seems to have successfully solved my shimmering/flickering issue . Thank you for your support with that problem. I do have a question to ask. I noticed that you applied a crop value on the top crop resize (CropResize(700,480, 0,10,0,-30)) and then applied the remaining crop values on the last line (CropResize(960,540, 10,0,0,0, frosty=true)) . Could you explain to me the benefits of doing that versus applying the crop values all in the last line?
    I was just using the first CropResize(700,480, 0,10,0,-30) to roughly simulate what the ffdshow function would do and crop more from the top than the bottom for a 1.45 aspect ratio (720x480). I think I only did it that way because the previous example used CropResize(640,480) to ensure the aspect ratio was 4:3 before adding borders, so I kept the two CropResize instances for the second one.

    To answer your question though, the result would have been the same doing it this way, not counting the extra ten pixels you were cropping from the left. The source I used was 704x528. It's just the way I did it at the time.

    FCropResize(Feather=20,clone=2,blend=0,blur=20,TSo ft=2)
    CropResize(960,540, 0,10,0,-30, frosty=true)
    Last edited by hello_hello; 19th Nov 2021 at 06:34.
    Quote Quote  
  3. Okay. Thank you for your quick explanation. Everything seems to be in working order now. Which is all I could ever ask and once again thank you. I would like to know how you rendered those two example files that you posted earlier. Unfortunately, I have been unable to find any way to watch videos on android using AVI synth like we can on Windows. Maybe there is a way but I haven't found it yet. So my alternative solution is to pre-render some videos and watch them on my device with Frostyboarders hardcoded into the video. Another upside to doing that is I'll be able to fill out my entire screen. Most phones these days are much wider than 16 x 9 and still leaves black borders on the side even if you're watching a widescreen video. 4 x 3 video is even worse. I'd love to fill up those black areas with Frostyboarders. I've actually been able to repurpose a 16 x 10 computer monitor that I've had laying around for a couple of years. I despise that aspect ratio because while watching videos it leaves black borders on the top and bottom while watching a widescreen video. Now I've found a new use for the monitor after utilizing Frostyboarders with everything I watch now.
    Quote Quote  
  4. You don't normally encode Avisynth scripts?

    To encode a script, you need a source filter to open the video. FFMpegSource/FFMS2 or LSMASHSource are the usual culprits for software decoding.

    So the script for opening the video would look something like this. If ffms2.dll is in the plugins folder you can delete the first line, otherwise modify it accordingly. There's instructions on the FFMS2 & lsmash wikis for opening the audio too, although I usually just add the original audio to the encoded video.

    Code:
    LoadPlugin("C:\Program Files\MeGUI\tools\ffms\ffms2.dll")
    FFVideoSource("E:\Some Folder\Some Video.mkv")
    
    FCropResize(Feather=20, Clone=2, Blend=0, Blur=20, TSoft=2)
    CR_FFDShow(960,540, 0,0,0,0, CropDAR=1.55, Frosty=true)
    I'd use the CR_FFDShow function for 4:3 videos as if it crops the height it'll crop more from the bottom than the top. Set the cropped aspect ratio (before borders are added) with the CropDAR argument, and of course specify the appropriate output dimensions. You'll need to specify an InDAR for an anamorphic source.

    Save the script with an avs extension and you can open it with MPC-HC or Potplayer. Or you can use something like AvsPmod. The first time you open the script, it might take a few seconds, or more, depending on the video size, while ffms2 creates an index file. It'll only do that the first time, unless of course you delete it.

    For encoding the script output I normally use MeGUI, but that might be a bit of over-kill just to encode. Maybe try something like Simple x264/x265 Launcher if you don't like playing with command lines yourself (I don't).

    Or if you're an ffmpeg user, most ffmpeg builds will accept Avisynth scripts as the input, just like any other video file.

    Are your source files mainly MP4s or MKVs etc? For DVD/mpeg2 video, DGIndex is the preferred source filter, rather than ffms2 or lsmash, but I'll leave that story for another time.
    Last edited by hello_hello; 19th Nov 2021 at 06:55.
    Quote Quote  
  5. My videos are mainly MP4. I got the encoding part working, but... there wasn't any audio.
    I tried FFAudioSource("E:\Some Folder\Some Video.mkv") but got an error, saying the video was too small. If I deleted FFAudioSource("E:\Some Folder\Some Video.mkv") then it doesn't give me an error, and of course, no audio.
    How can I get the audio stream to be included in the encoding process? I'm using Simple x264/x265 Launcher
    Quote Quote  
  6. It doesn't look like Simple x264/x265 Launcher will encode audio, just video.

    There's a combined function for ffms2 that decodes and outputs both. I can't remember if it's built into the dll or a separate script, but try

    FFmpegSource2("E:\Some Folder\Some Video.mkv", atrack=-1) # the audio is disabled by default and atrack=-1 enables it.
    or
    FFMS2("E:\Some Folder\Some Video.mkv", atrack=-1)

    If you open that script in MPC-HC or Potplayer you should have both. Failing that, combining FFVideoSource and FFAudioSource is very easy, once you know how.

    A = FFAudioSource("E:\Some Folder\Some Video.mkv")
    V = FFVideoSource("E:\Some Folder\Some Video.mkv")
    AudioDub(V, A)

    And.... I just remembered a function I have so it's attached below. It's called FFMS3 so it doesn't have the same name as FFMS2, but I'm pretty sure the only difference is the audio is enabled by default. Being disabled by default used to annoy me no end.

    So
    FFMS3("E:\Some Folder\Some Video.mkv")
    should work.

    And... now I've been typing long enough for my brain to start contributing, you probably can't go too far wrong with VirtualDub2.
    A quick test.....

    Code:
    FFMS3("E:\Some Folder\Some Video.mkv")
    CropResize(832,468, CropDAR=1.3, Frosty=true)
    I clicked play and there was definitely audio. You could even edit before you encode. I don't think it'll be hard to find your way around it for just encoding a script.

    Image
    [Attachment 61920 - Click to enlarge]


    Another option might be something with presets for hardware devices. Assuming there's one that'll accept scripts as the input. I don't know. There's a few all-in one converters in the software section though.
    https://www.videohelp.com/software/Video-to-Video-Converter
    https://www.videohelp.com/software/ShanaEncoder
    This looks interesting, although it's not free.
    https://www.videohelp.com/software/myFFmpeg
    Image Attached Files
    Last edited by hello_hello; 20th Nov 2021 at 13:34.
    Quote Quote  
  7. Thanks for your help. I got it working.
    I will go into more detail later, but wanted to make sure I reached out to you and thanked you.
    Quote Quote  
  8. Today I came up with another idea. I'm not sure if you would run into the same limitations or issues that you experienced with the other suggestion that I came up with. What I had in mind was being able to apply a vignette effect to Frostyboarders. For reference, I've attached two screenshots below. A before and after of how Frostyboarders acts now and what I want the effect to look like.
    Image Attached Thumbnails Click image for larger version

Name:	before.jpg
Views:	24
Size:	165.1 KB
ID:	62251  

    Click image for larger version

Name:	after.jpg
Views:	18
Size:	128.1 KB
ID:	62252  

    Quote Quote  
  9. The problem is still a gradient one though, and I don't think I could get it to look right with the clone borders because it's possible for stuff to the very left/right of the borders to be brighter than what's close to the picture edge, so even with the mask it didn't produce a consistent gradient type look. A similar thing has happened with your screenshot where the monitor is.

    The original frosty borders would be a different story as they're just a small number of pixels stretched out to fill the border, so they're consistent from edge to picture (more or less) which means the mask can produce a gradient effect. I assume it'd need a much darker version of the borders, under the normal borders, with a gradient mask.

    This is a simulation as I'm using a black to white gradient over the normal borders, but even though they're a bit dull as a result, the gradient look is there. Aside from the dullness, the gradient stays gradient-like when the picture is changing too.

    A = FrostyBorders(704,396)
    B = FrostyBorders(704,396, FrostyGradient=true, BColor=color_white)
    Overlay(A, B, mask=B.Invert().ColorYUV(Levels="TV->PC"))

    Image
    [Attachment 62257 - Click to enlarge]


    Thinking about it, last time it was the blurring we were trying to make gradual. I can't remember if I tried the same with clone borders for a dark to light gradient. When I get a chance to play around with this properly I can try it with the clone borders too.

    Edit: I played around some more and did it properly (although just from a fresh script, not in the function at all), but I don't think the gradient look works. Even for frosty borders the gradient appears to move around according to how bright the picture is. For a still shot it's okay.

    Image
    [Attachment 62264 - Click to enlarge]


    But have a look at the first sample. I find the way the gradient appears to change pretty distracting. Clone borders with less blurring and more picture are worse.
    I think the only way it might look sensible is to blur the borders so much they're virtually a single color, and blend them together. I'm not crazy about the way that looks either but the gradient is more stable. See the second sample. It's extremely blurred clone borders blended together.

    I haven't tried either with feathering as that's a whole other thing, but I can't imaging why they'd look any different feathered.... aside from the feathering.

    Edit: Another thought. If you don't want a gradient as such, and just darker borders, you can darken them using the Bright argument. You can also adjust the contrast and saturation.
    Image Attached Files
    • File Type: mkv 1.mkv (4.58 MB, 25 views)
    • File Type: mkv 2.mkv (4.43 MB, 35 views)
    Last edited by hello_hello; 9th Dec 2021 at 21:57.
    Quote Quote  
  10. Playing around I discovered FrostyBorders was producing an error when feathering was enabled for the original frosty borders.
    That's fixed and there's a new version dated 2021-12-09 in the opening post.
    Quote Quote  
  11. Well, thank you for looking into it for me. I agree with you that it's distracting to have that gradient mask enabled. I'm wondering if there software that allows you to apply a gradient vignette mask overlay of the entire display for your computer. I used a program that did do just that, but it did not seem to work with video players. That's kind of where I got the idea from. LOL. I'll keep looking or see if there's a workaround to get that software to recognize the video player and apply it to the video being played. If I do I'll get back to you and let you know just in case you are interested or any other users of frosty borders are as well.
    Quote Quote  
  12. If it can be a solid color that'd be a different story. When you overlay a solid color on the picture it'll be stable.

    I downloaded a vignette mask and fiddled with it a bit, then made a blue copy to use as the solid color. There's quite a few vignette masks on the internet if you search for them. A little bit of tweaking and contrast adjustment and I ended up with an effect I'm sure I've seen in an old Doctor Who episode from the 70s. : )

    Image
    [Attachment 62510 - Click to enlarge]


    The feathering wasn't really designed for this, but maybe with a bit of tweaking it could produce a better vignette look. Once again, it's fine overlaying a solid color. I made the picture wider than 4:3 before adding borders as using the feathering it seemed to work better if the borders weren't too wide.

    CropResize(760,468)
    FrostyBorders(832,468, Plain=true, Feather=56, BColor=Color_Gray10, Bright=-10)

    Image
    [Attachment 62511 - Click to enlarge]


    Just for fun.

    CropResize(760,468)
    FrostyBorders(832,468, Plain=true, Feather=56, BColor=Color_Gray10, Bright=-10)
    FrostyBorders(800,480, Plain=true, Feather=56, BColor=Color_Gray10, Bright=-10)

    Image
    [Attachment 62512 - Click to enlarge]
    Quote Quote  
  13. Thanks for the update. I tried it on my end and although it works it's not the intended affect that I was looking for. I'm not sure if I phrased myself clearly in my previous post, but is it possible to load a transparent PNG file on top of any video that I have frosty borders enabled on?

    Below I have attached the file that I wish to use. I found another piece of software that allows you to load any image and overlay it on top of your workspace on the computer. It also retains the transparency of PNG files. I was able to overlay it on top of potplayer and although it does work, it's a little cumbersome trying to get it to fill up the entire screen. If all else fails, I guess this could be a last ditch effort to have frosty borders enabled with a transparent vignette PNG file overlaid on top.

    https://github.com/Apprehentice/ImgOverlay/releases
    Image Attached Thumbnails Click image for larger version

Name:	test.png
Views:	111
Size:	87.3 KB
ID:	62523  

    Quote Quote  
  14. I haven't tried the image overlay thingy you linked to yet as it doesn't play nice with XP. I'm guessing this is what you're after though. I think it'll slot into the ffdshow function without too much hassle.

    Code:
    Video = ColorBars().KillAudio().CropResize(960,540).ConvertToYV24()
    
    Image = ImageSource("D:\test.png", pixel_type="RGB32")
    Image = Image.BilinearResize(960,540)
    Mask = Image.ShowAlpha("Y8")
    Image = Image.ConvertToYV24()
    Overlay(Video, Image, mask=Mask)
    ConvertToYV12()
    Image
    [Attachment 62643 - Click to enlarge]


    Let me know if that's correct, and if it is I'll update the ffdshow function.

    Cheers.
    Last edited by hello_hello; 31st Dec 2021 at 10:32.
    Quote Quote  
  15. It was easy to add it to FFDShow. All it takes is the following (after everything else in the FFDShow Avisynth filter).

    The blue line needs to be modified for the correct image path, and the two FastBlurs are optional. The image/mask seemed prone to banding and a little FastBlur with dithering is probably the easiest (and quickest) way to reduce it.

    Code:
    Video = last
    Image = ImageSource("D:\test.png", pixel_type="RGB32")
    Image = Image.BilinearResize(width(Video), height(Video))
    Mask = Image.ShowAlpha("Y8").FastBlur(2.0, dither=true)
    Image = Image.ConvertToYV24().FastBlur(2.0, dither=true)
    Overlay(Video, Image, mask=Mask)
    Last edited by hello_hello; 31st Dec 2021 at 10:36.
    Quote Quote  
  16. Originally Posted by hello_hello View Post
    It was easy to add it to FFDShow. All it takes is the following (after everything else in the FFDShow Avisynth filter).

    The blue line needs to be modified for the correct image path, and the two FastBlurs are optional. The image/mask seemed prone to banding and a little FastBlur with dithering is probably the easiest (and quickest) way to reduce it.

    Code:
    Video = last
    Image = ImageSource("D:\test.png", pixel_type="RGB32")
    Image = Image.BilinearResize(width(Video), height(Video))
    Mask = Image.ShowAlpha("Y8").FastBlur(2.0, dither=true)
    Image = Image.ConvertToYV24().FastBlur(2.0, dither=true)
    Overlay(Video, Image, mask=Mask)


    Thank you. That is the desired effect! Now t find the perfect overlay for to use with it. Sorry for the delay.
    Quote Quote  
  17. Capturing Memories dellsam34's Avatar
    Join Date
    Jan 2016
    Location
    Member Since 2005, Re-joined in 2016
    Search PM
    Can this be input in AvsPmod?
    Quote Quote  
  18. Yes. You need a vignette image with an alpha channel to create the overlay mask. There's probably lots on the internet, or you can download the one thebib62 attached to post #103. Other than setting the correct path to the image, you can just add the stuff above to a script.

    Image
    [Attachment 63065 - Click to enlarge]


    PS Because the vignette image is resized to match the video resolution, you don't have to worry about the aspect ratio of the one you use. Just find one you like. I cropped the video to 16:9 first, but it's the same image here as above.

    Image
    [Attachment 63066 - Click to enlarge]
    Last edited by hello_hello; 23rd Jan 2022 at 12:05.
    Quote Quote  
  19. Hope everything is going well. I'm updating this thread to let you guys know that I found a program on android called smooth video project. It's also available for Windows, Mac OS, and Lenox. This software is interesting because it has a feature similar to Frostyboarders, called "Black Bars Outer Lighting". It will fill in the black borders of a video file that does not match the aspect ratio of the display being used. Obviously, Frostyboarders is better in every way, but to my knowledge, there's no way to get AVI synth working on android. I'm going to reach out to the developers of smooth video project and see if they could implement your script into their software. Or at the very least, allow users to use their own custom AVI synth scripts on their android version. I am pretty blown away that I can watch all of my video content on Windows and now on my phone without any black borders all done in real time!

    https://www.svp-team.com/wiki/Manual:Outer_lighting
    Quote Quote  
  20. Interesting.
    I don't have SVP installed but I had a look at the video here demonstrating the Black Bars Outer Lighting.
    https://www.svp-team.com/
    It's a very similar concept.
    Quote Quote  
  21. There's a link for a new version of FrostyBorders dated 2022-07-08 in the opening post.

    Added the ability to crop, so for an anamorphic source, you can specify the original display aspect ratio before cropping, rather than have to crop prior to FrostyBorders and calculate the new DAR yourself.

    FrostyBorders(960,540, 6,4,-8,-2, InDAR=4.0/3.0)

    The default texture applied to the borders has a fixed value now, rather than being increased or decreased according to the resolution of the video as it was previously..
    Quote Quote  
  22. Originally Posted by hello_hello View Post
    There's a link for a new version of FrostyBorders dated 2022-07-08 in the opening post.

    Added the ability to crop, so for an anamorphic source, you can specify the original display aspect ratio before cropping, rather than have to crop prior to FrostyBorders and calculate the new DAR yourself.

    FrostyBorders(960,540, 6,4,-8,-2, InDAR=4.0/3.0)

    The default texture applied to the borders has a fixed value now, rather than being increased or decreased according to the resolution of the video as it was previously..
    Thanks, Those are two wonderful additions to Frostyborders!
    Glad you're still making new changes / improvements !
    Quote Quote  
  23. There's new version of FrostyBorders dated 2022-09-23 in the opening post. I think the only difference is a little change to what's displayed when Info=true, but I updated it ages ago and I can't actually remember.

    thebib62,
    If you're still around, I'll be uploading a new version of the CropResize script very soon. There's changes to a few arguments so it's not 100% backwards compatible, but if you decide to download it, here's a new version of the ffdshow functions that'll work with the new CropResize (both dated 2022-10-04, but it's the same as the version dated 2022-09-22).

    CropResize FFDShow Functions 2022-10-04.avsi
    Last edited by hello_hello; 3rd Oct 2022 at 10:50.
    Quote Quote  
  24. Awesome I will definitely take a look at that!
    Thanks again for your hard work and your plentiful updates to your wonderful scripts 😁
    Quote Quote  
  25. The best aspect ratio is stretch video to fullscrImage
    [Attachment 71086 - Click to enlarge]
    een and shrink the sides . like this

    Can anyone make a just aspect ratio like the one on Panasonic tvs , pixel shader hsl that works with potplayer / mpc

    Can you make a just aspect ratio like the one on Panasonic tvs

    It stretches only the edges , the center of the image remains fullscreen in correct aspect ratio and you view the entire image without losing parts of the picture as in your stretch by keeping aspect ratio


    Format JUST - Justifies the image by stretching it to the four corners on the screen. The middle of the image stays almost the same shape, however the sides of the image are stretched or shrunk more. This is recommended when you do not want to have black bars.
    Quote Quote  
  26. I believe the ForstyBoarders script can already do what you want.
    FrostyBorders(832,468, Clone=1, blur=0, texture=0, tsoft=0)

    Let me know if that is what you're asking for.

    Also, I am curious, could you provide a model number of the panasonic TV's you are referring to? I want to look into those TV's if they offer such an option for what you described.
    Quote Quote  
  27. Originally Posted by dunt View Post
    The best aspect ratio is stretch video to fullscreed
    Personally I don't like stretching, even warped stretching, but you could try the Avisynth SimpleResize plugin. It includes a function called WarpedResize.

    http://avisynth.nl/index.php/SimpleResize
    Quote Quote  
  28. A forum member PM'd me the other day to ask for instructions on running FrostyBorders in MPC-BE, as they wanted to use it to prevent uneven burn-in on an OLED display.

    Post #2 in this thread was empty so I added the instructions there for anyone else who's interested.
    Quote Quote  
  29. Originally Posted by thebib62 View Post
    I believe the ForstyBoarders script can already do what you want.
    FrostyBorders(832,468, Clone=1, blur=0, texture=0, tsoft=0)

    Let me know if that is what you're asking for.

    Also, I am curious, could you provide a model number of the panasonic TV's you are referring to? I want to look into those TV's if they offer such an option for what you described.

    I saw it on a Panasonic CT-34WX54, but many othr models had it.
    you can see it here

    https://www.youtube.com/watch?v=qJHxrAA1HYQ


    hevc videos, not avi.
    Last edited by dunt; 16th Jun 2023 at 15:01.
    Quote Quote  
  30. Originally Posted by hello_hello View Post
    Originally Posted by dunt View Post
    The best aspect ratio is stretch video to fullscreed
    Personally I don't like stretching, even warped stretching, but you could try the Avisynth SimpleResize plugin. It includes a function called WarpedResize.

    http://avisynth.nl/index.php/SimpleResize

    2nd best option
    if you dont want black bars, fullscreen makes image bigger, and its better than stretch to fit.
    1. it fills entire screen---- bigger picture shrink top bottom or left tight edges
    2. no black bars
    3. no distortion in middle screen (your focus) I dont notice shrunk eges unles i turm my head and focus on the image
    4. you don't lose any picture, you see everything
    Last edited by dunt; 16th Jun 2023 at 15:01.
    Quote Quote  



Similar Threads

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