@kelvie Thanks a lot, fixed it.
Search Criteria
Package Details: losslesscut-git 3.61.0.r2.g2599c4c-1
Package Actions
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. |
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: | 2 |
Popularity: | 1.00 |
First Submitted: | 2023-12-07 04:20 (UTC) |
Last Updated: | 2024-05-17 08:23 (UTC) |
Dependencies (10)
- electron27 (electron27-binAUR)
- ffmpeg (ffmpeg-intel-full-gitAUR, ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-amd-fullAUR, ffmpeg-obsAUR, ffmpeg-amd-full-gitAUR, ffmpeg-libfdk_aacAUR, ffmpeg-cudaAUR, ffmpeg-decklinkAUR, ffmpeg-fullAUR, ffmpeg-gitAUR, ffmpeg-full-gitAUR, ffmpeg-headlessAUR, ffmpeg-ffplayoutAUR)
- base-devel (make)
- curl (curl-quiche-gitAUR, curl-http3-ngtcp2AUR, curl-c-aresAUR, curl-gitAUR) (make)
- gcc (gccrs-gitAUR, gcc11AUR, gcc-gitAUR, gcc-snapshotAUR) (make)
- gendesk (make)
- git (git-gitAUR) (make)
- npm (corepackerAUR) (make)
- nvmAUR (nvm-gitAUR) (make)
- yarn (corepackerAUR, yarn-pnpm-corepackAUR, yarn-berryAUR) (make)
Required by (0)
Sources (2)
zxp19821005 commented on 2024-05-17 08:23 (UTC)
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?
j1simon commented on 2024-05-13 13:48 (UTC)
I can't test it, now it fails another thing:
...
➤ YN0000: ┌ Link step
➤ YN0007: │ electron@npm:27.0.0 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.17.8 must be built because it never has been before or the last one failed
➤ YN0007: │ sharp@npm:0.32.6 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.18.20 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.19.12 must be built because it never has been before or the last one failed
➤ YN0009: │ sharp@npm:0.32.6 couldn't be built successfully (exit code 1, logs can be found here: /tmp/xfs-75838038/build.log)
➤ YN0007: │ lossless-cut@workspace:. must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 8s 497ms
➤ YN0000: · Failed with errors in 22s 63ms
==> ERROR: A failure occurred in build().
Aborting...
-> error making: losslesscut-git-exit status 4
...
$ cat /tmp/xfs-75838038/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-13 04:26 (UTC)
@j1simon I think it was because of you had changed some environment variable. I've add --pkgname="${pkgname%-git}"
in the gendesk
section, can you try again?
j1simon commented on 2024-05-11 08:16 (UTC) (edited on 2024-05-11 08:17 (UTC) by j1simon)
Unable to install:
...
==> Starting package()...
install: cannot stat '/tmp/makepkg/losslesscut-git/src/losslesscut.desktop': No such file or directory
...
$ ls -1 /tmp/makepkg/losslesscut-git/src/
losslesscut.git
losslesscut.sh
PKGBUILD.desktop
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.