Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Downloads:

27,354

Downloads of v 3.59.1:

1,575

Last Update:

22 Dec 2023

Package Maintainer(s):

Software Author(s):

  • Mikael Finstad

Tags:

lossless-cut lossless trimming cutting video audio files

LosslessCut

  • 1
  • 2
  • 3

3.59.1 | Updated: 22 Dec 2023

Downloads:

27,354

Downloads of v 3.59.1:

1,575

Maintainer(s):

Software Author(s):

  • Mikael Finstad

LosslessCut 3.59.1

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

To install LosslessCut, run the following command from the command line or from PowerShell:

>

To upgrade LosslessCut, run the following command from the command line or from PowerShell:

>

To uninstall LosslessCut, 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 https://community.chocolatey.org/api/v2/)


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 https://community.chocolatey.org/api/v2/. 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 lossless-cut -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 lossless-cut -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install lossless-cut
  win_chocolatey:
    name: lossless-cut
    version: '3.59.1'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'lossless-cut' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '3.59.1'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller lossless-cut
{
    Name     = "lossless-cut"
    Version  = "3.59.1"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'lossless-cut':
  ensure   => '3.59.1',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

NOTE

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

Package Approved

This package was approved as a trusted package on 22 Dec 2023.

Description

Simple and ultra fast cross platform tool for lossless trimming/cutting of video and audio files. Great for saving space by rough cutting your large video files taken from a video camera, GoPro, drone, etc. It lets you quickly extract the good parts from your videos and discard many gigabytes of data without doing a slow re-encode and thereby losing quality. It extremely fast because it does an almost direct data copy. It uses the awesome ffmpeg (included) for doing the grunt work.

Features

  • Lossless cutting of common video and audio formats
  • Lossless re-merge of selected segments (for cutting out commercials etc.)
  • Lossless merge of arbitrary files (with identical codecs)
  • Lossless extracting of all data streams from a file (video, audio, subtitle, ++)
  • Take full-resolution snapshots from videos in JPEG/PNG format
  • Manual input range of cutpoints
  • Can include more than 2 streams or remove audio track (optional)
  • Apply a timecode offset
  • Change rotation/orientation metadata in videos. Great for rotating phone videos that come out the wrong way without actually re-encoding the video.

Package Parameters

Command-line options for installer configuration:

  • /InstallDir:PATH
  • /NoDesktopShortcut Do not create Desktop Shortcut
  • /NoStartMenuShortcut Do not create Start Menu Shortcut
  • /NoSendToShortcut Do not create Send To Shortcut
  • /DontRegisterApp Do not register app

Examples

  • Portable mode:
    choco install lossless-cut --params "/InstallDir:C:\your\install\path /NoDesktopShortcut /NoStartMenuShortcut /NoSendToShortcut /DontRegisterApp"\

Default Parameters

By default, installation of this package:

  • Will be installed in Chocolatey tools directory.
  • Will install a Desktop shortcut.
  • Will install a Start Menu shortcut.
  • Will install a Sent To shortcut.

To have choco remember parameters on upgrade, be sure to set choco feature enable -n=useRememberedArgumentsForUpgrades

screenshot


tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';
$toolsDir =	"$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$PackageParameters = Get-PackageParameters

### PARAMETERS
If ($PackageParameters.InstallDir) {
  $installDir = $PackageParameters.InstallDir
} Else {
  $installDir = "$toolsDir"
}

$packageArgs = @{
  packageName    = $env:ChocolateyPackageName
  unzipLocation  = "$installDir"
  # url            = 'https://github.com/mifi/lossless-cut/releases/download/v3.43.0/LosslessCut-win.zip'
  url64          = 'https://github.com//mifi/lossless-cut/releases/download/v3.59.1/LosslessCut-win-x64.7z'
  # checksum       = 'c5df41dac8d792215e75663f29be7c14410ef7e115bb2648ed5d4214aa7f00ec'
  checksum64     = '54663de6f81bda72ac3fcd8c01bce3da751ad91d9e1eab75500335adbb6723f0'
  checksumType   = 'sha256'
}
Install-ChocolateyZipPackage @packageArgs

# Don't create shims for other executables
$files = Get-ChildItem "$toolsDir" -Recurse -Include *.exe -Exclude LosslessCut.exe
foreach ($file in $files) {
    New-Item "$file.ignore" -type file -force | Out-Null
}

$targetPath = Join-Path "$installDir" "LosslessCut.exe"

# Add StartMenu shortcut
If (-Not( $PackageParameters.NoStartMenuShortcut )) {
  $programsPath = "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\"
  $programsFilePath = Join-Path "$programsPath" "LosslessCut.lnk"
  Install-ChocolateyShortcut -shortcutFilePath "$programsFilePath" -targetPath "$targetPath"
}

# Add Desktop shortcut
If (-Not( $PackageParameters.NoDesktopShortcut )) {
  $programsPath = [Environment]::GetFolderPath("CommonDesktopDirectory")
  $programsFilePath = Join-Path "$programsPath" "LosslessCut.lnk"
  Install-ChocolateyShortcut -shortcutFilePath "$programsFilePath" -targetPath "$targetPath"
}

# Add SendTo shortcut
If (-Not( $PackageParameters.NoSendToShortcut )) {
  $programsPath = "$env:APPDATA\Microsoft\Windows\SendTo\"
  $programsFilePath = Join-Path "$programsPath" "Merge media in LosslessCut.lnk"
  Install-ChocolateyShortcut -shortcutFilePath "$programsFilePath" -targetPath "$targetPath"
}

# Set File Association
If (-Not( $PackageParameters.DontRegisterApp )) {
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Clients\Media") -ne $true) { New-Item "HKLM:\SOFTWARE\Clients\Media" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut") -ne $true) { New-Item "HKLM:\SOFTWARE\Clients\Media\LosslessCut" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\Capabilities") -ne $true) { New-Item "HKLM:\SOFTWARE\Clients\Media\LosslessCut\Capabilities" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\DefaultIcon") -ne $true) { New-Item "HKLM:\SOFTWARE\Clients\Media\LosslessCut\DefaultIcon" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\Capabilities\FileAssociations") -ne $true) { New-Item "HKLM:\SOFTWARE\Clients\Media\LosslessCut\Capabilities\FileAssociations" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\shell") -ne $true) { New-Item "HKLM:\SOFTWARE\Clients\Media\LosslessCut\shell" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\shell\losslesscut") -ne $true) { New-Item "HKLM:\SOFTWARE\Clients\Media\LosslessCut\shell\losslesscut" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\shell\losslesscut\command") -ne $true) { New-Item "HKLM:\SOFTWARE\Clients\Media\LosslessCut\shell\losslesscut\command" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\DefaultIcon") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\DefaultIcon" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\shell") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\shell" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\shell\losslesscut") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\shell\losslesscut" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\shell\losslesscut\command") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\shell\losslesscut\command" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\SupportedTypes") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\SupportedTypes" -Force -ea SilentlyContinue };
	if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\RegisteredApplications") -ne $true) { New-Item "HKLM:\SOFTWARE\RegisteredApplications" -Force -ea SilentlyContinue };
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\Capabilities" -Name "Hidden" -Value "0" -PropertyType DWord -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\Capabilities" -Name "ApplicationName" -Value "LosslessCut" -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\Capabilities" -Name "ApplicationDescription" -Value "LosslessCut is an editing tool that lets you cut or trim your videos or audios." -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\Capabilities" -Name "ApplicationIcon" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe",0' -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\DefaultIcon" -Name "(default)" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe",0' -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\shell" -Name "(default)" -Value "losslesscut" -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\shell\losslesscut" -Name "(default)" -Value "Cut media in LosslessCut" -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\shell\losslesscut" -Name "Icon" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe",0' -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\shell\losslesscut\command" -Name "(default)" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe" "%1"' -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe" -Name "(default)" -Value "LosslessCut" -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\DefaultIcon" -Name "(default)" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe",0' -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\shell" -Name "(default)" -Value "losslesscut" -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\shell\losslesscut" -Name "(default)" -Value "Cut media in LosslessCut" -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\shell\losslesscut" -Name "Icon" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe",0' -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\shell\losslesscut\command" -Name "(default)" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe" "%1"' -PropertyType String -Force -ea SilentlyContinue;
	New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\RegisteredApplications" -Name "LosslessCut" -Value "SOFTWARE\Clients\Media\LosslessCut\Capabilities" -PropertyType String -Force -ea SilentlyContinue;
	$extensions = @("3g2","3gp","8svx","aa","aac","aax","act","aiff","alac","amr","amv","ape","asf","au","avi","awb","cda","dct","drc","dss","dvf","f4a","f4b","f4p","f4v","flac","flv","gif","gifv","gsm","iklax","ivs","m2ts","m2v","m4a","m4b","m4p","m4v","mkv","mmf","mng","mogg","mov","mp2","mp3","mp4","mpc","mpe","mpeg","mpg","mpv","msv","mts","mxf","nmf","nsf","nsv","oga","ogg","ogv","opus","qt","ra","rf64","rm","rmvb","roq","sln","svi","ts","tta","vob","voc","vox","wav","webm","wma","wmv","wv","yuv","tsv","3gpp","webm")
	foreach ($extension in $extensions) {
		if ((Test-Path -LiteralPath ("HKLM:\SOFTWARE\Classes\.$extension")) -ne $true) { New-Item ("HKLM:\SOFTWARE\Classes\." + "$extension".ToUpper().ToUpper()) -Force -ea SilentlyContinue };
		if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\.$extension\OpenWithList") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\.$extension\OpenWithList" -Force -ea SilentlyContinue };
		if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\.$extension\OpenWithList\LosslessCut.exe") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\.$extension\OpenWithList\LosslessCut.exe" -Force -ea SilentlyContinue };
		if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\.$extension\OpenWithProgids") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\.$extension\OpenWithProgids" -Force -ea SilentlyContinue };
		if ((Test-Path -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper())) -ne $true) { New-Item ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper().ToUpper()) -Force -ea SilentlyContinue };
		if ((Test-Path -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\DefaultIcon")) -ne $true) { New-Item ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\DefaultIcon") -Force -ea SilentlyContinue };
		if ((Test-Path -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\shell")) -ne $true) { New-Item ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\shell") -Force -ea SilentlyContinue };
		if ((Test-Path -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\shell\losslesscut")) -ne $true) { New-Item ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\shell\losslesscut") -Force -ea SilentlyContinue };
		if ((Test-Path -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\shell\losslesscut\command")) -ne $true) { New-Item ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\shell\losslesscut\command") -Force -ea SilentlyContinue };  
		if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.$extension\Shell\losslesscut") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.$extension\Shell\losslesscut" -Force -ea SilentlyContinue };
		if ((Test-Path -LiteralPath "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.$extension\Shell\losslesscut\command") -ne $true) { New-Item "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.$extension\Shell\losslesscut\command" -Force -ea SilentlyContinue };
		New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\.$extension\OpenWithProgids" -Name ("LosslessCut." + "$extension".ToUpper()) -Value "" -PropertyType String -Force -ea SilentlyContinue;
		New-ItemProperty -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper()) -Name "(default)" -Value ("$extension".ToUpper() + " Media File") -PropertyType String -Force -ea SilentlyContinue;
		New-ItemProperty -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\DefaultIcon") -Name "(default)" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe",0' -PropertyType String -Force -ea SilentlyContinue;
		New-ItemProperty -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\shell") -Name "(default)" -Value "losslesscut" -PropertyType String -Force -ea SilentlyContinue;
		New-ItemProperty -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\shell\losslesscut") -Name "(default)" -Value "Cut media in LosslessCut" -PropertyType String -Force -ea SilentlyContinue;
		New-ItemProperty -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\shell\losslesscut") -Name "Icon" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe",0' -PropertyType String -Force -ea SilentlyContinue;
		New-ItemProperty -LiteralPath ("HKLM:\SOFTWARE\Classes\LossLessCut." + "$extension".ToUpper() + "\shell\losslesscut\command") -Name "(default)" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe" "%1"' -PropertyType String -Force -ea SilentlyContinue;  
		New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.$extension\Shell\losslesscut" -Name "(default)" -Value "Cut media in LosslessCut" -PropertyType String -Force -ea SilentlyContinue;
		New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.$extension\Shell\losslesscut" -Name "Icon" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe",0' -PropertyType String -Force -ea SilentlyContinue;
		New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.$extension\Shell\losslesscut\command" -Name "(default)" -Value '"C:\ProgramData\chocolatey\lib\lossless-cut\tools\LosslessCut.exe" "%1"' -PropertyType String -Force -ea SilentlyContinue;
		New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe\SupportedTypes" -Name ".$extension" -Value "" -PropertyType String -Force -ea SilentlyContinue;
		New-ItemProperty -LiteralPath "HKLM:\SOFTWARE\Clients\Media\LosslessCut\Capabilities\FileAssociations" -Name ".$extension" -Value ("LosslessCut." + "$extension".ToUpper()) -PropertyType String -Force -ea SilentlyContinue;
	}
}
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop'
Uninstall-ChocolateyZipPackage $env:ChocolateyPackageName 'LosslessCut-win-x64.zip'

# Remove start menu shortcut
$programsPath = "$env:ProgramData\Microsoft\Windows\Start Menu\Programs\"
$programsFilePath = Join-Path $programsPath "LosslessCut.lnk"
if (Test-Path "$programsFilePath") { Remove-Item "$programsFilePath" }

# Remove send to menu shortcut
$sendtoPath = "$env:APPDATA\Microsoft\Windows\SendTo\"
$sendtoFilePath = Join-Path $sendtoPath "Merge videos in LosslessCut.lnk"
if (Test-Path "$sendtoFilePath") { Remove-Item "$sendtoFilePath" }

# Remove desktop icon
$shortcutFilePath = "$Env:USERPROFILE\Desktop\Lossless Cut.lnk"
if (Test-Path "$shortcutFilePath") { Remove-Item "$shortcutFilePath" }

# Remove File Association for .MP4
Remove-Item -Recurse -Force -LiteralPath "HKLM:\SOFTWARE\Classes\SystemFileAssociations\.mp4\Shell\cut" -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force -LiteralPath "HKLM:\SOFTWARE\Classes\Applications\LosslessCut.exe" -ErrorAction SilentlyContinue

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
LosslessCut 3.58.0 1360 Monday, October 16, 2023 Approved
LosslessCut 3.56.0 1183 Thursday, August 24, 2023 Approved
LosslessCut 3.54.0 1612 Tuesday, April 4, 2023 Approved
LosslessCut 3.53.0 732 Friday, March 10, 2023 Approved
LosslessCut 3.52.0 706 Friday, February 17, 2023 Approved
LosslessCut 3.51.1 126 Friday, February 17, 2023 Approved
LosslessCut 3.50.0 540 Sunday, February 5, 2023 Approved
LosslessCut 3.49.0 643 Sunday, January 15, 2023 Approved
LosslessCut 3.48.2 875 Thursday, November 24, 2022 Approved
LosslessCut 3.47.1 637 Saturday, October 29, 2022 Approved
LosslessCut 3.45.0 1275 Tuesday, May 24, 2022 Approved
LosslessCut 3.44.0 888 Saturday, March 12, 2022 Approved
LosslessCut 3.43.0 570 Monday, February 21, 2022 Approved
LosslessCut 3.42.0.20220205 573 Saturday, February 5, 2022 Approved
LosslessCut 3.42.0 1501 Sunday, January 16, 2022 Approved
LosslessCut 3.39.0 1219 Saturday, August 28, 2021 Approved
LosslessCut 3.38.0 216 Thursday, August 26, 2021 Approved
LosslessCut 3.37.0 653 Sunday, July 25, 2021 Approved
LosslessCut 3.36.0 1189 Friday, April 9, 2021 Approved
LosslessCut 3.34.3 354 Friday, March 26, 2021 Approved
LosslessCut 3.33.13.20210301 497 Monday, March 1, 2021 Approved
LosslessCut 3.33.1 241 Friday, February 19, 2021 Approved
LosslessCut 3.32.0 462 Sunday, February 7, 2021 Approved
LosslessCut 3.31.1 366 Monday, January 25, 2021 Approved
LosslessCut 3.30.0 512 Tuesday, December 15, 2020 Approved
LosslessCut 3.29.1 255 Friday, December 11, 2020 Approved
LosslessCut 3.27.0 421 Friday, November 27, 2020 Approved
LosslessCut 3.26.0 182 Thursday, November 26, 2020 Approved
LosslessCut 3.25.0 217 Monday, November 23, 2020 Approved
LosslessCut 3.24.0 157 Sunday, November 22, 2020 Approved
LosslessCut 3.23.8 610 Saturday, July 11, 2020 Approved
LosslessCut 3.23.7 412 Sunday, May 17, 2020 Approved
LosslessCut 3.22.3 265 Wednesday, May 6, 2020 Approved
LosslessCut 3.22.2 194 Monday, May 4, 2020 Approved
LosslessCut 3.22.0 152 Sunday, May 3, 2020 Approved
LosslessCut 3.21.0 226 Monday, April 27, 2020 Approved
LosslessCut 3.17.9 310 Sunday, March 29, 2020 Approved
LosslessCut 3.17.7 162 Sunday, March 29, 2020 Approved
LosslessCut 3.17.4 192 Thursday, March 26, 2020 Approved
LosslessCut 3.17.1 128 Monday, March 23, 2020 Approved
LosslessCut 3.13.0 280 Thursday, March 5, 2020 Approved
LosslessCut 3.12.0 200 Friday, February 28, 2020 Approved
LosslessCut 3.11.0 173 Thursday, February 27, 2020 Approved
LosslessCut 3.8.0 210 Saturday, February 22, 2020 Approved
LosslessCut 3.7.0 147 Friday, February 21, 2020 Approved
LosslessCut 3.6.0 167 Friday, February 21, 2020 Approved
LosslessCut 3.4.0 147 Thursday, February 20, 2020 Approved
LosslessCut 3.2.0 150 Wednesday, February 19, 2020 Approved
LosslessCut 2.8.0 192 Saturday, February 15, 2020 Approved
LosslessCut 2.7.1 153 Saturday, February 15, 2020 Approved
LosslessCut 2.6.2 311 Monday, November 11, 2019 Approved
LosslessCut 2.6.0 167 Monday, November 4, 2019 Approved
LosslessCut 2.4.0.20190821 235 Wednesday, August 21, 2019 Approved
LosslessCut 2.4.0 199 Tuesday, August 13, 2019 Approved
LosslessCut 2.3.0 218 Sunday, June 30, 2019 Approved

This package has no dependencies.

Discussion for the LosslessCut Package

Ground Rules:

  • This discussion is only about LosslessCut and the LosslessCut 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 LosslessCut, 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