Downloads:

269

Downloads of v 2.6.2:

45

Last Update:

11/11/2019

Package Maintainer(s):

Software Author(s):

  • Mikael Finstad

Tags:

lossless-cut lossless trimming cutting video audio files

LosslessCut

2.6.2 | Updated: 11/11/2019

Downloads:

269

Downloads of v 2.6.2:

45

Maintainer(s):

Software Author(s):

  • Mikael Finstad

LosslessCut 2.6.2

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

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:

>

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

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • 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://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. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade lossless-cut -y --source="'STEP 3 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="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Ensure lossless-cut installed
  win_chocolatey:
    name: lossless-cut
    state: present
    version: 2.6.2
    source: STEP 3 URL

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

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'lossless-cut' do
  action    :install
  version  '2.6.2'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: lossless-cut,
    Version: 2.6.2,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller lossless-cut
{
   Name     = 'lossless-cut'
   Ensure   = 'Present'
   Version  = '2.6.2'
   Source   = 'STEP 3 URL'
}

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


package { 'lossless-cut':
  provider => 'chocolatey',
  ensure   => '2.6.2',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install lossless-cut version="2.6.2" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

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

This package was approved as a trusted package on 11/11/2019.

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 installation defaults

By default, installation of this package:

  • Will be installed in Chocolatey tools directory.
  • Will NOT install a desktop icon.
  • Will install a start menu shorcut.

Package parameters

  • /InstallDir - Installation directory, by default Chocolatey tools directory.
  • /DesktopIcon - Create a desktop shortcut.
  • /NoStartMenu - Do not create a start menu shortcut.

Example:
choco install lossless-cut --params '"/InstallDir:C:\your\install\path /DesktopIcon /NoStartMenu"'

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

screenshot


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

if ( $pp.InstallDir ) { $installDir = $pp.InstallDir }
Write-Host "$env:ChocolateyPackageName is going to be installed in '$installDir'..."

$packageArgs = @{
  packageName    = $env:ChocolateyPackageName
  fileFullPath   = "$installDir\LosslessCut.exe"

  url            = 'https://github.com/mifi/lossless-cut/releases/download/v2.6.2/LosslessCut-2.6.2.exe'
  checksum       = '2e99be1fe8be6dd6e6a10e7103635cdcd5d52dac1329c3175c68c8026e4048fc'
  checksumType   = 'sha256'

  url64          = 'https://github.com/mifi/lossless-cut/releases/download/v2.6.2/LosslessCut-2.6.2.exe'
  checksum64     = '2e99be1fe8be6dd6e6a10e7103635cdcd5d52dac1329c3175c68c8026e4048fc'
  checksumType64 = 'sha256'
}

Get-ChocolateyWebFile @packageArgs

# Shortcut parameters
$sparams = @{
  link       = 'LosslessCut.lnk'
  targetPath = $packageArgs.fileFullPath
}

# Install start menu shortcut
if ( !$pp.NoStartMenu ) {
  Write-Host "Creating Start menu shortcut for $env:ChocolateyPackageName..."
  $programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
  $sparams.shortcutFilePath = Join-Path $programs $sparams.link
  Install-ChocolateyShortcut @sparams
}

# Install desktop icon
if ( $pp.DesktopIcon ) {
    Write-Host "Creating Desktop icon for $env:ChocolateyPackageName..."
    $sparams.ShortcutFilePath = Join-Path "$Env:USERPROFILE\Desktop" $sparams.link
    Install-ChocolateyShortcut @sparams
}

Set-Content -Path "$toolsDir\installDir" -value "$installDir"
tools\chocolateyuninstall.ps1
$ErrorActionPreference = 'Stop'
$toolsDir   = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$link       = 'LosslessCut.lnk'
$installDir = Get-Content -Path "$toolsDir\installDir"

# Remove start menu shortcut
$programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
$shortcutFilePath = Join-Path "$programs" "$link"
if (Test-Path $shortcutFilePath) { Remove-Item $shortcutFilePath }

# Remove desktop icon
$programs = [environment]::GetFolderPath([environment+specialfolder]::Programs)
$shortcutFilePath = Join-Path "$Env:USERPROFILE\Desktop" "$link"
if (Test-Path $shortcutFilePath) { Remove-Item $shortcutFilePath }

# Remove parent folder if empty
if( (Get-ChildItem "$installDir" | Measure-Object).Count -eq 0) { Remove-item -Path "$installDir" }

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.

Version Downloads Last Updated Status
LosslessCut 2.6.0 37 Monday, November 4, 2019 Approved
LosslessCut 2.4.0.20190821 92 Wednesday, August 21, 2019 Approved
LosslessCut 2.4.0 39 Tuesday, August 13, 2019 Approved
LosslessCut 2.3.0 56 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