Package Details: losslesscut-bin 3.59.1-4

Git Clone URL: https://aur.archlinux.org/losslesscut-bin.git (read-only, click to copy)
Package Base: losslesscut-bin
Description: Crossplatform GUI tool for lossless trimming/cutting of video/audio files
Upstream URL: https://github.com/mifi/lossless-cut
Licenses: MIT
Conflicts: losslesscut
Provides: losslesscut
Submitter: dmp1ce
Maintainer: dmp1ce (Lulzagna)
Last Packager: Lulzagna
Votes: 49
Popularity: 2.90
First Submitted: 2020-11-10 13:10 (UTC)
Last Updated: 2024-03-22 14:06 (UTC)

Pinned Comments

kata55 commented on 2023-07-06 20:07 (UTC) (edited on 2023-07-06 20:09 (UTC) by kata55)

If anyone, like me, uses this on GNOME on Wayland with Fractional Scaling (due to a 14" 2560x1440 screen in their laptop), you may find this Electron trick useful to make the app work in native Wayland mode instead of xwayland (so that it does not appear blurry) - run the app with this command:

losslesscut --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations

To make the change persist, change the Exec=... line in /usr/share/applications/losslesscut-bin.desktop to:

Exec=losslesscut --ozone-platform-hint=auto --enable-features=WaylandWindowDecorations

It would be probably great if the .desktop file in this AUR would have this automatically included if Wayland is detected as the display server, but I'm not sure how do you go about this; Also this seems to be a recurring theme with all Electron apps, so I'm thinking about some system-wide solution to be brought up on Arch upstream - no point in having every single Electron app packager waste the effort repeating this.

dmp1ce commented on 2021-10-29 17:03 (UTC)

I'm following the releases on this page: https://github.com/mifi/lossless-cut/releases

I'm not following all the tagged versions.

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

AvianaCruz commented on 2023-01-16 03:23 (UTC) (edited on 2023-01-16 03:25 (UTC) by AvianaCruz)

@dmp1ce Please try this:

PKGBUILD:

# Maintainer: David Parrish <daveparrish@tutanota.com>

# shellcheck disable=SC2034,SC2164

_pkgname=losslesscut
pkgname=losslesscut-bin
pkgver=3.49.0
pkgrel=2
pkgdesc="Crossplatform GUI tool for lossless trimming/cutting of video/audio files"
arch=('x86_64')
url='https://github.com/mifi/lossless-cut'
license=('MIT')
depends=('electron21' 'ffmpeg')
source_x86_64=("$pkgname-$pkgver.tar.bz2::https://github.com/mifi/lossless-cut/releases/download/v$pkgver/LosslessCut-linux-x64.tar.bz2"
  "$_pkgname.sh"
  "$_pkgname.desktop"
  'LICENSE'
  'https://raw.githubusercontent.com/mifi/lossless-cut/master/src/icon.svg')
noextract=("$pkgname-$pkgver.tar.bz2")
sha256sums_x86_64=('65e66ddcef7f78389a8ab81caa8bf61991a82a11049863d4dc0045d242cbd204'
  'f181a36a5dfdb1a75012fa069accb5636984a44161edbf42c454a23567cc1940'
  '87827ee65955d49c40327ba958b15d054cc107cf8e56de7cf1f93d4bc2b6fca5'
  '48affed7162fc2e76f1cd47b50355181b869b4025ff04c2a53b03854e329dca0'
  'd3d3da3f403ce1b9f846ae2a38a8fe9938fc458024352a9741b59a920eefacf9')

prepare() {
  tar x --strip-components=2 -f $pkgname-$pkgver.tar.bz2 LosslessCut-linux-x64/resources/app.asar
}

package() {
  # ffmpeg not found workaround
  install -dm755 "$pkgdir/usr/lib/electron21/resources"
  ln -s /usr/bin/ffmpeg "$pkgdir/usr/lib/electron21/resources/"
  ln -s /usr/bin/ffprobe "$pkgdir/usr/lib/electron21/resources/"

  install -Dm755 $_pkgname.sh "$pkgdir/usr/bin/$_pkgname"
  install -Dm644 -t "$pkgdir/usr/lib/$_pkgname" app.asar
  install -Dm644 $_pkgname.desktop "$pkgdir/usr/share/applications/$_pkgname.desktop"
  install -Dm644 icon.svg "$pkgdir/usr/share/pixmaps/$_pkgname.svg"
  install -Dm644 -t "$pkgdir/usr/share/licenses/$_pkgname" LICENSE
}

losslesscut.sh:

#!/bin/sh
ELECTRON_IS_DEV=0 exec electron21 /usr/lib/losslesscut/app.asar "$@"

dmp1ce commented on 2022-12-02 12:45 (UTC)

@skreett it looks like the same error I get because of Wayland. Try losslesscut --no-sandbox for starting lossescut on Wayland.

skreett commented on 2022-12-02 04:23 (UTC)

I'm seeing the following issue when running the application. Any thoughts on how to fix it?

[3642:1201/201853.604775:FATAL:gpu_data_manager_impl_private.cc(1034)] The display compositor is frequently crashing. Goodbye.
[1]    3642 trace trap (core dumped)  ./losslesscut

dmp1ce commented on 2022-11-27 11:59 (UTC)

@AvianaCruz How do I test using the system electron?

dmp1ce commented on 2022-09-25 16:59 (UTC)

Reverted. Thanks guys! I thought I had tested but clearly I had not. 🤦

hcjl commented on 2022-09-25 13:13 (UTC)

@dmp1ce, I think youn can revert the change in the PKGBUILD back to 3.46.2. 3.46.3 is MacOs only.

1nikolas commented on 2022-09-25 12:58 (UTC)

hello 3.46.3 is an update only for macos you should change the version to 3.46.2. Also please test before pushing, thanks

dmp1ce commented on 2022-08-14 10:51 (UTC)

v3.46.3 release is missing a release page on Github.

foolishgrunt commented on 2022-06-02 04:48 (UTC) (edited on 2022-06-02 04:48 (UTC) by foolishgrunt)

Missing a dependency.

losslesscut: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

Resolved by installing libxss.