Package Details: losslesscut-git 3.64.0.r95.g25022044-1

Git Clone URL: https://aur.archlinux.org/losslesscut-git.git (read-only, click to copy)
Package Base: losslesscut-git
Description: The swiss army knife of lossless video/audio editing.Using system-wide ffmpeg.(Use system-wide electron)
Upstream URL: https://github.com/mifi/lossless-cut
Keywords: codec cut editor ffmpeg lossless player video video-editor video-files
Licenses: GPL-2.0-only
Conflicts: losslesscut
Provides: losslesscut
Submitter: zxp19821005
Maintainer: zxp19821005
Last Packager: zxp19821005
Votes: 3
Popularity: 0.59
First Submitted: 2023-12-07 04:20 (UTC)
Last Updated: 2025-02-25 01:46 (UTC)

Pinned Comments

zxp19821005 commented on 2024-01-08 10:19 (UTC)

When you first used it,you will got errors like 'Cann't find ffmpeg'.Then please switch to advanced settings and manually set the ffmpeg path to /usr/bin.That will be OK.

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

zxp19821005 commented on 2024-12-10 03:02 (UTC)

@dreieck Thanks for your feedback and suggestions, fixed it.

dreieck commented on 2024-12-09 11:38 (UTC)

There seems to be some packaging error.

When I start it, I get a warning dialogue saying

Failed to open file
ENOENT: no such file or directory, lstat '/usr/lib/losslesscut/env'

It expects some files in directories without write access by the user, so package() should create that files.

Regards!

dreieck commented on 2024-12-09 11:34 (UTC) (edited on 2024-12-09 11:36 (UTC) by dreieck)

Ahoj,

this PKGBUILD downloads stuff in build().

This should not happen.

Please do the nvm/ npm specific downloads in prepare().

Also, if possible, use Arch Linux repo's nodejs instead of downloading your own.

==> Starting build()...
Downloading and installing node v20.18.1...
Downloading https://nodejs.org/dist/v20.18.1/node-v20.18.1-linux-x64.tar.xz...
############################################################################################################################################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v20.18.1 (npm v10.8.2)
Creating default alias: default -> 20 (-> v20.18.1)
Now using node v20.18.1 (npm v10.8.2)
! Corepack is about to download https://repo.yarnpkg.com/4.4.0/packages/yarnpkg-cli/bin/yarn.js
➤ YN0000: lossless-cut@workspace:.: Bumped to 4.4.0

➤ YN0000: Done in 0s 3ms
➤ YN0000: · Yarn 4.4.0
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + electron@npm:31.7.6
➤ YN0085: │ - electron@npm:33.2.1
➤ YN0000: └ Completed in 0s 785ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0060: │ typescript is listed by your project with version 5.7.2 (p6348b), which doesn't satisfy what eslint-config-mifi and other dependencies request (~5.2.0).
➤ YN0002: │ lossless-cut@workspace:. doesn't provide react-is (p6ee21), requested by evergreen-ui.
➤ YN0086: │ Some peer dependencies are incorrectly met by your project; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code.
➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: ⠦ ===============================================================================-
[...]

Regards and thanks for the package!

zxp19821005 commented on 2024-05-17 08:23 (UTC)

@kelvie Thanks a lot, fixed it.

kelvie commented on 2024-05-17 05:10 (UTC)

diff --git a/losslesscut.sh b/losslesscut.sh
index 3983984..3e80c18 100644
--- a/losslesscut.sh
+++ b/losslesscut.sh
@@ -23,7 +23,7 @@ if [[ -f "${_FLAGS_FILE}" ]]; then
 fi
 cd "${_APPDIR}"
 if [[ "${EUID}" -ne 0 ]] || [[ "${ELECTRON_RUN_AS_NODE}" ]]; then
-    exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "${_USER_FLAGS[@]}" "$@"
+    exec electron@electronversion@ "${_RUNNAME}" ${_OPTIONS} "${_USER_FLAGS[@]}" "$@"
 else
-    exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "${_USER_FLAGS[@]}" "$@"
-fi
\ No newline at end of file
+    exec electron@electronversion@ "${_RUNNAME}" ${_OPTIONS} --no-sandbox "${_USER_FLAGS[@]}" "$@"
+fi

with an empty first argument you can no longer run losslesscut with file CLI arguments (and it breaks opening video files via XDG file associations too)

zxp19821005 commented on 2024-05-17 04:17 (UTC)

@j1simon Sorry, I've no idea about that. Actually, if you have already installed ffmpeg-amd-full, you will not be prompted to install ffmpeg again.

j1simon commented on 2024-05-15 12:28 (UTC)

$ yay -S losslesscut
:: There are 2 providers available for losslesscut:
:: Repository AUR
    1) losslesscut-bin 2) losslesscut-git

Enter a number (default=1):
==> 2
AUR Explicit (1): losslesscut-git-3.61.0.r2.g2599c4c-1
Sync Make Dependency (3): yarn-1.22.22-1, gendesk-1.0.9-4.1, nvm-0.39.7-1
Sync Dependency (1): ffmpeg-2:6.1.1-7.1
:: PKGBUILD up to date, skipping download: losslesscut-git
==> Making package: losslesscut-git 3.61.0.r2.g2599c4c-1 (ons 15 maj 2024 14:27:06 CEST)
==> Retrieving sources...
  -> Updating losslesscut.git git repo...
  -> Found losslesscut.sh
==> WARNING: Skipping verification of source file PGP signatures.
==> Validating source files with sha256sums...
    losslesscut.git ... Skipped
    losslesscut.sh ... Passed
:: (1/1) Parsing SRCINFO: losslesscut-git
resolving dependencies...
:: There are 2 providers available for onevpl:
:: Repository cachyos-extra-v3
   1) libvpl
:: Repository extra
   2) libvpl

Enter a number (default=1):
looking for conflicting packages...
:: ffmpeg-2:6.1.1-7.1 and ffmpeg-amd-full-6.1.1-3 are in conflict. Remove ffmpeg-amd-full? [y/N]
...

I don't want to install ffmpeg-2.

j1simon commented on 2024-05-14 12:32 (UTC)

It still fails:

$ cat /tmp/xfs-9151a207/build.log
# This file contains the result of Yarn building a package (sharp@npm:0.32.6)
# Script name: install

sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.14.5/libvips-8.14.5-linux-x64.tar.br
sharp: Integrity check passed for linux-x64
gyp info it worked if it ends with ok
gyp info using node-gyp@9.3.0
gyp info using node@18.20.2 | linux | x64
gyp info find Python using Python version 3.12.3 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/dist/v27.3.11/node-v27.3.11-headers.tar.gz
gyp http 404 https://nodejs.org/dist/v27.3.11/node-v27.3.11-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 404 response downloading https://nodejs.org/dist/v27.3.11/node-v27.3.11-headers.tar.gz
gyp ERR! stack     at go (/tmp/makepkg/losslesscut-git/src/losslesscut.git/node_modules/node-gyp/lib/install.js:153:17)
gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
gyp ERR! stack     at async install (/tmp/makepkg/losslesscut-git/src/losslesscut.git/node_modules/node-gyp/lib/install.js:62:18)
gyp ERR! System Linux 6.8.9-7-cachyos-lto
gyp ERR! command "/tmp/makepkg/losslesscut-git/src/.nvm/versions/node/v18.20.2/bin/node" "/tmp/makepkg/losslesscut-git/src/losslesscut.git/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/makepkg/losslesscut-git/src/losslesscut.git/node_modules/sharp
gyp ERR! node -v v18.20.2
gyp ERR! node-gyp -v v9.3.0
gyp ERR! not ok

zxp19821005 commented on 2024-05-14 05:56 (UTC)

@j1simon Thanks for your feedback, fixed it ,will you please try again?