VideoHelp Forum




+ Reply to Thread
Results 1 to 17 of 17
  1. hi, when I use LWLibAvVideoSource instead of FFVideoSource,
    if the script contains a bbmod(0,0,0,0,128,8) command,
    I receive the following errors:

    Code:
    clip must be frame-based
    C:/Program files.. avisynth...bla bla... bborders.avsi, line 489
    C:/Program files.. avisynth...bla bla... bborders.avsi, line 366
    C:/Program files.. avisynth...bla bla... bborders.avsi, line 368
    C:/Program files.. avisynth...bla bla... bborders.avsi, line 422
    C:/Program files.. avisynth...bla bla... bborders.avsi, line 429
    etc..etc..

    how to avoid that error and use both LWLibAvVideoSource and bbmod?
    Last edited by maudit; 29th Oct 2022 at 05:48.
    Quote Quote  
  2. Where can one get bbmod?
    Quote Quote  
  3. LWlibavVideoSource may be giving a different color format than ffVideoSource. You can use Info() to verify this. You may have to reduce bit depth and/or convert to a planar format.

    Code:
    ConvertBits(8)
    ConvertToYV12()
    Last edited by jagabo; 29th Oct 2022 at 10:33.
    Quote Quote  
  4. thx u all, but still cannot get rid of that error.
    Quote Quote  
  5. I can't find bbmod() so I can't test it.

    Are you sure LWlibavVideoSource() is opening the video properly? Ie, if you leave out the bbmod() call do you get a video?
    Quote Quote  
  6. Video Damager VoodooFX's Avatar
    Join Date
    Oct 2021
    Location
    At Doom9
    Search PM
    Should it do anything with all "0,0,0,0" there?

    Originally Posted by jagabo View Post
    Where can one get bbmod?
    I guess it's function from this script: https://github.com/Asd-g/AviSynthPlus-Scripts/blob/master/bborders.avsi
    Quote Quote  
  7. Thanks VoodooFX. I downloaded bborders and have been able to duplicate the problem.

    The problem has something about the z_* resize functions . If you remove all the z_ from bborders.avsi, leaving just the regular resize functions (for example z_PointResize() becomes PointResize()), bbmod works with both source filters.
    Quote Quote  
  8. ok, thanks for having clarified that.
    if i've understood well, I have to remove all those 20 "z_" from the plugin..
    is this safe to do? will bbmod works as usual?
    is this workaround the only way to solve?
    what command do you use in order to fix borders?
    isn't there another plugin/command that do the same thing bbmod does, so i can use it without edit any plugin?
    Quote Quote  
  9. Video Damager VoodooFX's Avatar
    Join Date
    Oct 2021
    Location
    At Doom9
    Search PM
    Originally Posted by jagabo View Post
    The problem has something about the z_* resize functions .
    Maybe something with frame props, check if propClearAll() after the source fixes it.

    EDIT:
    Yeap, I looked at z_ resizers and it supports frame props, and it has interlaced=false by default.
    So propClearAll(), or propDelete("_FieldBased") or propSet("_FieldBased", 0) should fix it.
    Probably FFMS is outdated, or it doesn't support or doesn't sets frame props by default, that's why no error with it.

    Could be that clip is with fake interlace and it's handled differently in FFMS, only God knows when people don't share samples...
    Quote Quote  
  10. Video Damager VoodooFX's Avatar
    Join Date
    Oct 2021
    Location
    At Doom9
    Search PM
    Originally Posted by maudit View Post
    what command do you use in order to fix borders?
    isn't there another plugin/command that do the same thing bbmod does, so i can use it without edit any plugin?
    I don't know how exactly bbmod works, probably something similar like EdgeFixer's function ContinuityFixer(). IMO, I wouldn't use ContinuityFixer on more than 3 pixels at edge.
    If it's 1px at edges to fix then FillMargins() is OK too.
    Quote Quote  
  11. Originally Posted by VoodooFX View Post
    So propClearAll(), or propDelete("_FieldBased") or propSet("_FieldBased", 0) should fix it.
    Thanks for that. Any of them fixes the problem. With ffVideoSource() (or any video that doesn't have the problem) you can create create the problem with propSet("_FieldBased", 1).
    Quote Quote  
  12. those commands are working.
    thanks!
    Quote Quote  
  13. ah! excuse me, I have another little problem.

    in the stackvertical script I use:

    Code:
    DVD=Import("C:\dvd.mkv.avs").FFInfo(cfrtime=false,vfrtime=false,colorspace=false,colorrange=false,cropping=false,sar=false, version=false, frametype=false)
    BD=Import("C:\bd.mkv.avs").FFInfo(cfrtime=false,vfrtime=false,colorspace=false,colorrange=false,cropping=false,sar=false, version=false, frametype=false)
    
    StackVertical(DVD,BD)
    or with AviSource instead of Import, with FFVideoSource I got no errors and FFInfo works.
    with LWLibAvVideoSource I receive this error:

    I don't know what 'FFVAR_PREFIX' means.
    (..PATH/FFMS2_.avsi, line 73)

    how to solve that?
    Quote Quote  
  14. LWlibavVideoSource() can't be used to open AVS scripts.
    Quote Quote  
  15. Originally Posted by jagabo View Post
    LWlibavVideoSource() can't be used to open AVS scripts.
    I think i didn't explain myself so well,

    if I use FF in the BD, DVD scripts then all is ok, the stackvertical script with FFINFO works.
    instead
    if I use LWlibav in the scripts, then I can no longer use FFINFO due that error.
    Quote Quote  
  16. I believe the information that ffinfo reports is private to the ffmpeg source filter. LSMASH won't have that private data.

    By the way, you can use ScriptClip to get frame number and count:

    Code:
    ScriptClip("""subtitle("Frame Number: " + string(current_frame) + " of " +string(framecount))""")
    Last edited by jagabo; 31st Oct 2022 at 13:14.
    Quote Quote  



Similar Threads

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