Downloads of v 1.1.2:


Last Update:

23 Oct 2020

Package Maintainer(s):

Software Author(s):

  • Dec Software


mfilter 7zip 7-zip bmp pnm ppm pgm pam tiff dng raw tga wav caf w64 dff dsf aif afc sf2

mfilter (Install)

  • 1
  • 2
  • 3

1.1.2 | Updated: 23 Oct 2020



Downloads of v 1.1.2:



Software Author(s):

  • Dec Software

  • 1
  • 2
  • 3
mfilter (Install) 1.1.2

  • 1
  • 2
  • 3

Some Checks Have Failed or Are Not Yet Complete

Not All Tests Have Passed

Validation Testing Passed

Verification Testing Passed


Scan Testing Resulted in Flagged:

This package was submitted (and approved) prior to automated virus scanning integration into the package moderation processs.

We recommend clicking the "Details" link to make your own decision on installing this package.

Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install mfilter (Install), run the following command from the command line or from PowerShell:


To upgrade mfilter (Install), run the following command from the command line or from PowerShell:


To uninstall mfilter (Install), run the following command from the command line or from PowerShell:


Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to

2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade mfilter -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade mfilter -y --source="'INTERNAL REPO URL'" 

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Install mfilter
    name: mfilter
    version: '1.1.2'
    state: present

See docs at

chocolatey_package 'mfilter' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '1.1.2'

See docs at

cChocoPackageInstaller mfilter
    Name     = "mfilter"
    Version  = "1.1.2"
    Source   = "INTERNAL REPO URL"

Requires cChoco DSC Resource. See docs at

package { 'mfilter':
  ensure   => '1.1.2',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',

Requires Puppet Chocolatey Provider module. See docs at

4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator flcdrg on 13 Nov 2020.


MFilter is a filter plugin for the popular 7-Zip archiver designed to deliver higher compression ratios to certain multimedia file types by means of automatic pre-processing. The filter itself does not provide compression, and requires co-use of a compressing codec.

Specifically, here is what MFilter does over the files being compressed:

  • The filter recompresses jpeg files using Brunsli or Lepton methods. This also applies to embedded thumbnails and jpeg files attached to or embedded into other files, like pdf.
  • The filter performs delta encoding of the following raster graphic file types:
    • uncompressed bmp
    • pnm (ppm, pgm, pam)
    • uncompressed tiff
    • uncompressed dng
    • uncompressed raw (3fr, arw, nef and others)
    • uncompressed tga
      -The filter uses the WavPack method to compress wav-files with uncompressed PCM audio. The following file types are automatically identified and compressed:
    • wav (including bwf/rf64 и Multiple Data Chunks (Legasy Audition Format) formats)
    • caf (Core Audio Format)
    • w64 (Sony Wave64)
    • dff (Philips DSDIFF)
    • dsf (Sony DSD stream)
    • aif, afc (Аudio Interchange File Format, including AIFF-C format)
    • sf2 (SoundFont)
  • The filter decodes data in BASE64 format.
  • The filter applies BCJ, ARM, ARMT, IA64, SPARC and PPC filters to the corresponding executables.

$ErrorActionPreference = 'Stop';

$installed = Get-Content -Path $env:ChocolateyPackageFolder\tools\installed.json -Raw | ConvertFrom-Json

$spliter = "path to executable:"
$7zLocation = "$(Split-Path -parent ((7z --shimgen-noop | Select-String $spliter) -split $spliter | ForEach-Object Trim)[1])"
$installLocation = "$(Join-Path $7zLocation "Codecs")"

Write-Host "Remove libraries" -ForegroundColor Blue
ForEach($file in $installed) {
  Remove-Item "$(Join-Path $installLocation $file)" -Force
Write-Host "Remove completed" -ForegroundColor Blue
$ErrorActionPreference = 'Stop';

$meta = Get-Content -Path $env:ChocolateyPackageFolder\tools\packageArgs.json -Raw
$packageArgs = @{}
(ConvertFrom-Json $meta) | ForEach-Object { $packageArgs[$_.Name] = $_.Value }

$filename = if ((Get-OSArchitectureWidth 64) -and $env:chocolateyForceX86 -ne $true) {
       Split-Path $packageArgs["url64bit"] -Leaf }
else { Split-Path $packageArgs["url"] -Leaf }

$packageArgs["packageName"] = "$($env:ChocolateyPackageName)"
$packageArgs["fileFullPath"] = "$(Join-Path (Split-Path -parent $MyInvocation.MyCommand.Definition) $filename)"

$archiveLocation = Get-ChocolateyWebFile @packageArgs
$extractLocation = "$(Join-Path (Split-Path -parent $archiveLocation) "Codecs")"

$spliter = "path to executable:"
$7zLocation = "$(Split-Path -parent ((7z --shimgen-noop | Select-String $spliter) -split $spliter | ForEach-Object Trim)[1])"
$installLocation = "$(Join-Path $7zLocation "Codecs")"

Write-Host "Install libraries" -ForegroundColor Blue
New-Item -ItemType directory -Path $installLocation -Force | Out-Null
Get-ChocolateyUnzip -FileFullPath $archiveLocation -Destination $extractLocation | Out-Null

if ((Get-OSArchitectureWidth 64) -and $env:chocolateyForceX86 -ne $true) {
       $extractLocationArch = Join-Path $extractLocation '64'
} else {
       $extractLocationArch = Join-Path $extractLocation '32'

Get-ChildItem -Recurse $extractLocationArch -Name -File | ConvertTo-Json | Out-File $env:ChocolateyPackageFolder\tools\installed.json
Copy-Item "$(Join-Path $extractLocationArch '/*')" "$($installLocation)" -Recurse -Force

Write-Host "Install completed" -ForegroundColor Blue

#block shimgen
$exes = Get-ChildItem -Recurse $extractLocation -Include "*.exe" -Name
ForEach($exe in $exes) {
       New-Item "$(Join-Path $extractLocation ($exe + ".ignore"))" -ItemType File -Force | Out-Null
               "url": "",
          "checksum": "3519ce6aeb22c2d8547a65053dee22defb023ecbc10ec8c6502f2e0d12af5fab",
      "checksumType": "sha256",
          "url64bit": "",
        "checksum64": "3519ce6aeb22c2d8547a65053dee22defb023ecbc10ec8c6502f2e0d12af5fab",
    "checksumType64": "sha256"

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status

Current version

Plugin version: 1.1.2
Distribution package release date: 13 Oct 2019

Discussion for the mfilter (Install) Package

Ground Rules:

  • This discussion is only about mfilter (Install) and the mfilter (Install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or mfilter (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus