• 《国家人文历史》往期杂志汇总 2019-04-22
  • 一师一团土地确权登记颁证工作全面展开 2019-04-14
  • 德州扑克赌场披“俱乐部”外衣 打竞技旗号难掩赌博实质 2019-04-12
  • 自治区党委召开常委(扩大)会议 陈全国主持 2019-04-12
  • 17年来首次!塔利班组织宣布停火3天 与阿富汗民众自拍 2019-04-04
  • 2022年冬奥会筹备进行时 2019-04-03
  • 人家80年前就造航母,我们现在才造航母,基础不一样。 2019-04-03
  • 葡萄牙首都上演城市节狂欢 2019-04-01
  • RED EARTH红地球展现自我丝绒唇膏全新发布 2019-03-24
  • 龙船礼 有讲究 百岁龙 抖精神 2019-03-17
  • 新加坡航空将开通 全球最长商业航线 2019-03-17
  • 传说中的自由飞“翔” 当厕所被狂风吹上天 2019-03-12
  • 导游强迫交易获刑 曾辱骂威胁强迫游客消费上万元--旅游频道 2019-03-09
  • 北京正式推出租赁型职工集体宿舍 每间居住人数不超8人 2019-03-09
  • 美元短线拉升 随后回吐涨幅 2019-03-07
  • Welcome to

    Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

     

    Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

    Reply
     
    Thread Tools Search this Thread Display Modes
    Old 14th March 2019, 18:42   #1  |  Link
    Registered User
     
    Join Date: Jan 2014
    Posts: 1,126
    RemoveDirt - pfmod

    RemoveDirt v0.9.2 (20190324)
    https://github.com/pinterf/RemoveDir...ses/tag/v0.9.2

    Link to the previous topic:
    //www.zs-x.com/showthread.p...threadid=70856

    Code:
    # RemoveDirt - pfmod
    A plugin for removing dirt from film clips.
    
    Port of classic RemoveDirt 0.9 to Avisynth v2.6 interface (x86/x64), adding new color spaces, bugfixes.
    
    Functions in plugin: RestoreMotionBlocks and SCSelect.
    This mod does not support other filters appearing in 1.0beta.
    
    Note: Previous v0.9 DLL versions named differently (RemoveDirtT.DLL, RemoveDirtSSE2.DLL) should be deleted from your plugin folder.
    
    - (20190324 v0.9.2)
      - RestoreMotionBlocks: 10-16 bit support. Relevant threshold and noise parameters are bit depth independent.
      - minor speedup
      - SCSelect: add support for 10-16 bits and 32 bit float clips
      - SCSelect: add support for planar RGB
      - FIX: SCSelect: make it work properly for large frames (>8MPixel)
      - FIX: SCSelect: Makes use the whole frame: now counts the rightmost non-mod32 pixels as well.
      - Clang 7.0.1 support (LLVM) with Visual Studio 2017 (15.9.9) (LLVM 8.0.0: not tried yet)
        - Install LLVM 7.0.1 (//releases.llvm.org/download.html, Windows pre-built libraries)
        - Install Clang Power Tools & LLVM Compiler Toolchain
          - https://marketplace.visualstudio.com/items?itemName=caphyon.ClangPowerTools
          - https://marketplace.visualstudio.com/items?itemName=LLVMExtensions.llvm-toolchain
      - update html docs
      - add clang-built DLLs to the released version
    
    - (20190314 v0.9.1)
      - project moved to github: https://github.com/pinterf/RemoveDirt
      - built using Visual Studio 2017
      - x64 build for Avisynth+
      - Added version resource to DLL
      - Changed to AVS 2.6 plugin interface
      - Fix: RestoreMotionBlocks: grey=false: it was copying 8x4 chroma pixels for YV12 and 8x8 for YUY2 instead of 4x4 and 8x4 blocks
      - Fix: SCSelect: Old v0.9 SSE2 code omitted difference checking for every second 8 columns
      - Removed MMX code, now requires SSE2
      - Reports MT Modes for Avisynth+: MT_SERIALIZED for SCSelect
      - Reports MT Modes for Avisynth+: MT_MULTI_INSTANCE for RestoreMotionBlocks (may not be any faster)
      - Added Y, YV16 and YV24 support besides existing YV12 and planar-hacked-YUY2
    
    - (20190312)
      Initial source v0.9 (2005/05/07) moved to VS2017 project 
    
    Links
    =====
    Project: https://github.com/pinterf/RemoveDirt
    Forum: //www.zs-x.com/showthread.php?t=176199
    Additional info: //avisynth.nl/index.php/RemoveDirt

    Last edited by pinterf; 24th March 2019 at 14:15. Reason: New build
    pinterf is offline   Reply With Quote
    Old 14th March 2019, 18:51   #2  |  Link
    Registered User
     
    Join Date: Jan 2014
    Posts: 1,126
    Finally I used the original Avisynth source, the VapourSynth port had bugs, I'll point to those places on my fork later next week.
    pinterf is offline   Reply With Quote
    Old 14th March 2019, 19:02   #3  |  Link
    Registered User
     
    Join Date: Sep 2007
    Posts: 3,758
    Thanks
    poisondeathray is offline   Reply With Quote
    Old 14th March 2019, 19:18   #4  |  Link
    Registered User
     
    Join Date: Feb 2017
    Posts: 57
    This is much appreciated.
    SaurusX is offline   Reply With Quote
    Old 14th March 2019, 19:49   #5  |  Link
    SuperVirus
     
    filler56789's Avatar
     
    Join Date: Jun 2012
    Location: Antarctic Japan
    Posts: 839
    Thanks!
    filler56789 is offline   Reply With Quote
    Old 14th March 2019, 20:05   #6  |  Link
    Registered User
     
    Join Date: Mar 2012
    Location: Texas
    Posts: 1,105
    Thank you pinterf, I will update the wiki in the next couple of days.
    Reel.Deel is offline   Reply With Quote
    Old 14th March 2019, 21:38   #7  |  Link
    Registered User
     
    Join Date: Dec 2005
    Location: Germany
    Posts: 724
    I think the VS port wasn't finished yet. The one dll I found crashes often. Thx for the release.

    I always wondered how hard it is to make "hybrid plugins" now which supports vs and avs+, since avs+ now supports 16bit and the same color spaces? Some plugins like this exists: knlmeans, f3kdb, ffms2
    Or is it just too cumbersome because of the different threading models?

    p.s. You can also install RemoveDirt via avsrepo now
    __________________
    Search and denoise

    Last edited by ChaosKing; 14th March 2019 at 21:51.
    ChaosKing is offline   Reply With Quote
    Old 15th March 2019, 03:19   #8  |  Link
    Registered User
     
    Join Date: Jan 2012
    Location: Mesopotamia
    Posts: 1,112
    been waiting for this, thanks
    __________________
    My Avisynth Stuff
    real.finder is offline   Reply With Quote
    Old 15th March 2019, 13:21   #9  |  Link
    Professional Code Monkey
     
    Myrsloik's Avatar
     
    Join Date: Jun 2003
    Location: Ikea Chair
    Posts: 1,893
    Quote:
    Originally Posted by ChaosKing View Post
    I think the VS port wasn't finished yet. The one dll I found crashes often. Thx for the release.

    I always wondered how hard it is to make "hybrid plugins" now which supports vs and avs+, since avs+ now supports 16bit and the same color spaces? Some plugins like this exists: knlmeans, f3kdb, ffms2
    Or is it just too cumbersome because of the different threading models?

    p.s. You can also install RemoveDirt via avsrepo now
    It's generally very simple. The threading models are extremely similar.
    __________________
    VapourSynth - proving that scripting languages and video processing isn't dead yet
    Myrsloik is offline   Reply With Quote
    Old 24th March 2019, 14:20   #10  |  Link
    Registered User
     
    Join Date: Jan 2014
    Posts: 1,126
    New build.
    Download RemoveDirt v0.9.2
    Just now: experimental (and for me quicker) clang build inside.
    Original code is almost completely rewritten by now.

    Code:
    - (20190324 v0.9.2)
      - RestoreMotionBlocks: 10-16 bit support. Relevant threshold and noise parameters are bit depth independent.
      - minor speedup
      - SCSelect: add support for 10-16 bits and 32 bit float clips
      - SCSelect: add support for planar RGB
      - FIX: SCSelect: make it work properly for large frames (>8MPixel)
      - FIX: SCSelect: Makes use the whole frame: now counts the rightmost non-mod32 pixels as well.
      - Clang 7.0.1 support (LLVM) with Visual Studio 2017 (15.9.9) (LLVM 8.0.0: not tried yet)
        - Install LLVM 7.0.1 (//releases.llvm.org/download.html, Windows pre-built libraries)
        - Install Clang Power Tools & LLVM Compiler Toolchain
          - https://marketplace.visualstudio.com...langPowerTools
          - https://marketplace.visualstudio.com...llvm-toolchain
      - update html docs
      - add clang-built DLLs to the released version
    pinterf is offline   Reply With Quote
    Old 24th March 2019, 18:34   #11  |  Link
    Registered User
     
    Join Date: Jan 2012
    Location: Mesopotamia
    Posts: 1,112
    Quote:
    Originally Posted by pinterf View Post
    New build.
    Download RemoveDirt v0.9.2
    Just now: experimental (and for me quicker) clang build inside.
    Original code is almost completely rewritten by now.


    any plan to port RemoveGrainT to x64? it only one missed for run RemoveDirtMC_SE in x64
    __________________
    My Avisynth Stuff
    real.finder is offline   Reply With Quote
    Old 25th March 2019, 08:58   #12  |  Link
    Registered User
     
    Join Date: Jan 2014
    Posts: 1,126
    Quote:
    Originally Posted by real.finder View Post


    any plan to port RemoveGrainT to x64? it only one missed for run RemoveDirtMC_SE in x64
    Which function is used?
    pinterf is offline   Reply With Quote
    Old 25th March 2019, 17:43   #13  |  Link
    Registered User
     
    Join Date: Jan 2012
    Location: Mesopotamia
    Posts: 1,112
    Quote:
    Originally Posted by pinterf View Post
    Which function is used?
    TemporalRepair in TemporalDeGrain_SE
    __________________
    My Avisynth Stuff
    real.finder is offline   Reply With Quote
    Old 27th March 2019, 22:55   #14  |  Link
    Broadcast Encoder
     
    FranceBB's Avatar
     
    Join Date: Nov 2013
    Location: Germany
    Posts: 517
    Quote:
    Originally Posted by pinterf View Post
    New build.
    Download RemoveDirt v0.9.2
    Just now: experimental (and for me quicker) clang build inside.
    Original code is almost completely rewritten by now.

    Code:
    - (20190324 v0.9.2)
      - RestoreMotionBlocks: 10-16 bit support. Relevant threshold and noise parameters are bit depth independent.
      - minor speedup
      - SCSelect: add support for 10-16 bits and 32 bit float clips
      - SCSelect: add support for planar RGB
      - FIX: SCSelect: make it work properly for large frames (>8MPixel)
      - FIX: SCSelect: Makes use the whole frame: now counts the rightmost non-mod32 pixels as well.
      - Clang 7.0.1 support (LLVM) with Visual Studio 2017 (15.9.9) (LLVM 8.0.0: not tried yet)
        - Install LLVM 7.0.1 (//releases.llvm.org/download.html, Windows pre-built libraries)
        - Install Clang Power Tools & LLVM Compiler Toolchain
          - https://marketplace.visualstudio.com...langPowerTools
          - https://marketplace.visualstudio.com...llvm-toolchain
      - update html docs
      - add clang-built DLLs to the released version
    Thank you!
    Out of curiosity, what are the benefits of the Clang compiled version over the normal x86 version?

    Thank you in advance.
    __________________
    Broadcast Encoder
    FranceBB is offline   Reply With Quote
    Old 28th March 2019, 14:17   #15  |  Link
    Registered User
     
    Join Date: Jan 2014
    Posts: 1,126
    Clang sometimes generates quicker code, it seems that it features with smarter optimizer than MS. For example the above mentioned TemporalRepair has modes that run 10-15% faster in clang version than with MS built DLL.
    I was also looking at the generated assembly code based on pure C source. clang was able to vectorize (parallel computing of pixel data using mm registers) situations where MS simply stuck with linear one-by-one processing.
    pinterf is offline   Reply With Quote
    Old 28th March 2019, 15:28   #16  |  Link
    Acid fr0g
     
    tormento's Avatar
     
    Join Date: May 2002
    Location: Italy
    Posts: 1,028
    Quote:
    Originally Posted by pinterf View Post
    Clang sometimes generates quicker code, it seems that it features with smarter optimizer than MS.
    It would be nice to try your MVTools, MaskTools and RgTools with Clang...
    __________________
    @turment on Telegram
    tormento is offline   Reply With Quote
    Old 28th March 2019, 20:15   #17  |  Link
    Registered User
     
    Join Date: Jan 2012
    Location: Mesopotamia
    Posts: 1,112
    I just tried clang in xp in vm, it's can't load the dll with error 0x36b1, normal one work fine, clang 64 bit work fine in windows server 2016
    __________________
    My Avisynth Stuff
    real.finder is offline   Reply With Quote
    Old 29th March 2019, 11:07   #18  |  Link
    Acid fr0g
     
    tormento's Avatar
     
    Join Date: May 2002
    Location: Italy
    Posts: 1,028
    Quote:
    Originally Posted by real.finder View Post
    I just tried clang in xp in vm, it's can't load the dll with error 0x36b1, normal one work fine, clang 64 bit work fine in windows server 2016
    XP is 18 years old. Time for it to go out from parents' home
    __________________
    @turment on Telegram
    tormento is offline   Reply With Quote
    Old 29th March 2019, 11:29   #19  |  Link
    Registered User
     
    Join Date: Jan 2014
    Posts: 1,126
    Quote:
    Originally Posted by real.finder View Post
    I just tried clang in xp in vm, it's can't load the dll with error 0x36b1, normal one work fine, clang 64 bit work fine in windows server 2016
    LLVM (clang) dropped XP support three years ago, since version 3.8. Now I'm using latest version (8.0)
    pinterf is offline   Reply With Quote
    Old 29th March 2019, 12:50   #20  |  Link
    HeartlessS Usurer
     
    StainlessS's Avatar
     
    Join Date: Dec 2009
    Location: Over the rainbow
    Posts: 6,487
    Quote:
    Originally Posted by tormento View Post
    It would be nice to try your MVTools, MaskTools and RgTools with Clang...
    Not if it totally breaks XP compatibility for only small speed increase.
    EDIT: Removedirt v0.9.1 looks to be XP compatible.
    __________________
    I sometimes post sober.
    [email protected] ::: AND/OR ::: [email protected]

    "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
    StainlessS is offline   Reply With Quote
    Reply


    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT +1. The time now is 09:11.


    Powered by vBulletin® Version 3.8.11
    Copyright ©2000 - 2019, vBulletin Solutions Inc.
  • 《国家人文历史》往期杂志汇总 2019-04-22
  • 一师一团土地确权登记颁证工作全面展开 2019-04-14
  • 德州扑克赌场披“俱乐部”外衣 打竞技旗号难掩赌博实质 2019-04-12
  • 自治区党委召开常委(扩大)会议 陈全国主持 2019-04-12
  • 17年来首次!塔利班组织宣布停火3天 与阿富汗民众自拍 2019-04-04
  • 2022年冬奥会筹备进行时 2019-04-03
  • 人家80年前就造航母,我们现在才造航母,基础不一样。 2019-04-03
  • 葡萄牙首都上演城市节狂欢 2019-04-01
  • RED EARTH红地球展现自我丝绒唇膏全新发布 2019-03-24
  • 龙船礼 有讲究 百岁龙 抖精神 2019-03-17
  • 新加坡航空将开通 全球最长商业航线 2019-03-17
  • 传说中的自由飞“翔” 当厕所被狂风吹上天 2019-03-12
  • 导游强迫交易获刑 曾辱骂威胁强迫游客消费上万元--旅游频道 2019-03-09
  • 北京正式推出租赁型职工集体宿舍 每间居住人数不超8人 2019-03-09
  • 美元短线拉升 随后回吐涨幅 2019-03-07
  • 重庆时时彩开奖号码 6场半全场11087 竞彩半全场3窜1玩法 爱彩网比分直播 陕西快乐十分遗漏数据爱彩乐 东方心经马报资料2018 北京pk10 前三玩法技巧 刮刮乐玩 澳洲幸运8开奖记录 3d开奖 七乐彩智能缩水大师 NBA竞彩篮球胜分差技巧 北京赛车pk10走势分析 免费幸运飞艇在线计划 山东时时彩11夺金 管家婆中特网王中王开