Package Details: losslesscut-git 3.64.0.r47.g8b43485-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: 2
Popularity: 0.006015
First Submitted: 2023-12-07 04:20 (UTC)
Last Updated: 2025-01-06 10:04 (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

1 2 Next › Last »

zxp19821005 commented on 2025-01-06 10:07 (UTC)

@gue5t I've not met a problem like you, but I suggest deleting the whole package and installing again.Here are part of my building logs:

✓ built in 9.93s
  • electron-builder  version=24.13.3 os=6.12.7-arch1-1
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  • packaging       platform=linux arch=x64 electron=33.3.0 appOutDir=dist/linux-unpacked
  • copying Electron  source=/usr/lib/electron33 destination=/home/zxp-endeavouros/.cache/paru/clone/losslesscut-git/src/losslesscut.git/dist/linux-unpacked
  • file source doesn't exist  from=/home/zxp-endeavouros/.cache/paru/clone/losslesscut-git/src/losslesscut.git/ffmpeg/linux-x64/lib
==> 正在进入 fakeroot 环境...

gue5t commented on 2025-01-03 23:30 (UTC)

This package fails to install with a Node OOM message after printing the following:

✓ built in 9.04s
  • electron-builder  version=24.13.3 os=6.12.6-arch1-1
  • loaded configuration  file=package.json ("build" field)
  • writing effective config  file=dist/builder-effective-config.yaml
  • packaging       platform=linux arch=x64 electron=33.3.0 appOutDir=dist/linux-unpacked
  • copying Electron  source=/home/user/.cache/yay/losslesscut-git/src/losslesscut.git destination=/home/user/.cache/yay/losslesscut-git/src/losslesscut.git/dist/linux-unpacked

This seems to correspond to the following line from the PKGBUILD:

NODE_ENV=production yarn electron-builder --linux dir -c.electronDist="${electronDist}"

Somehow this creates an infinitely nested series of dist/linux-unpacked/dist/linux-unpacked directories (not symlinks) which takes gigs and gigs of disk space and seems to blow up the memory usage of Node. It seems like the installation/copy being performed is unintentionally recursive, as the listed "source" contains the listed "destination" in the above output.

I don't know how this could be going differently on my system than others; building with simply makepkg fails this way for me.

zxp19821005 commented on 2024-12-12 02:18 (UTC)

@dreieck Thanks for your suggestions, added it.

dreieck commented on 2024-12-11 17:10 (UTC)

Ahoj,

I noticed that yarn wants to collect data and phone home during build:

➤ YN0065: Yarn will periodically gather anonymous telemetry: https://yarnpkg.com/advanced/telemetry
➤ YN0065: Run yarn config set --home enableTelemetry 0 to disable

Since yarn is run in a local environment, a yarn config set --home enableTelemetry 0 to disable as user is not the solution here.

Telemetry needs to be disabled within the actual environment used for this build.

Can you add this, please?

Regards!

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.