Package Details: untrunc-git r184.8ae3c90-1

Git Clone URL: https://aur.archlinux.org/untrunc-git.git (read-only, click to copy)
Package Base: untrunc-git
Description: restore a damaged (truncated) mp4, m4v, mov, 3gp video
Upstream URL: https://github.com/ponchio/untrunc
Licenses: GPL2
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 25
Popularity: 0.015789
First Submitted: 2015-03-10 14:30 (UTC)
Last Updated: 2023-11-13 22:46 (UTC)

Dependencies (6)

Required by (0)

Sources (4)

Latest Comments

1 2 3 4 Next › Last »

gouchi commented on 2023-11-10 14:07 (UTC)

It seems we need this patch[1].

Source

[1] https://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff/effadce6c756247ea8bae32dc13bb3e6f464f0eb

jose1711 commented on 2023-10-10 19:37 (UTC)

@InFerNo: https://github.com/ponchio/untrunc/issues/272

InFerNo commented on 2023-10-10 18:03 (UTC) (edited on 2023-10-10 18:04 (UTC) by InFerNo)

libav no longer builds:

./libavcodec/x86/mathops.h: Assembler messages:  
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'  
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'  
./libavcodec/x86/mathops.h:125: Error: operand type mismatch for `shr'

Pulec commented on 2023-05-26 15:22 (UTC) (edited on 2023-05-26 15:22 (UTC) by Pulec)

There is issue in line 2 in prepare():

tar xf ../libav-${libav_version}.tar.gz

In other words, unpack .tar.gz, not .tar.xz.

qubidt commented on 2023-04-07 20:38 (UTC)

@SR-G replaced the libav URL with the source package from their github mirror:

diff --git a/PKGBUILD b/PKGBUILD
index 343826b..ab64698 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 # Contributor: sekret

 pkgname=untrunc-git
-pkgver=r142.e02f40e
+pkgver=r183.10fd251
 pkgrel=1
 libav_version=12.3
 pkgdesc="restore a damaged (truncated) mp4, m4v, mov, 3gp video"
@@ -14,15 +14,15 @@ depends=('libvdpau' 'zlib' 'bzip2')
 makedepends=('yasm' 'git' 'libx11')
 source=("${pkgname}"::'git+https://github.com/ponchio/untrunc.git'
         'framealloc.patch'
-   "http://libav.org/releases/libav-${libav_version}.tar.xz")
+        "libav-${libav_version}.tar.gz::https://github.com/libav/libav/archive/refs/tags/v${libav_version}.tar.gz")
 md5sums=('SKIP'
          '7f6cf1762cd93f4ce84cb218ab856ea3'
-         '753ec26481b0582eb737383bd8a350a5')
-noextract=("libav-${libav_version}.tar.xz")
+         '78f791a4f595a67abd3a7d0c976524c5')
+noextract=("libav-${libav_version}.tar.gz")

 prepare() {
   cd $srcdir/$pkgname
-  tar xvJf ../libav-${libav_version}.tar.xz
+  tar xf ../libav-${libav_version}.tar.gz
 }

 build() {

SR-G commented on 2023-04-07 17:28 (UTC) (edited on 2023-04-07 17:28 (UTC) by SR-G)

I fear it's not working anymore, as the online libav URL is not accessible :(

==> ERROR: Failure while downloading http://libav.org/releases/libav-12.3.tar.xz
    Aborting...
 -> error downloading sources: ~/.cache/yay/untrunc-git 
     context: exit status 1 

walder commented on 2023-03-11 18:30 (UTC) (edited on 2023-03-11 18:30 (UTC) by walder)

thanks for commenting your PKGBUILD fix, @Qwerty-Space.

Qwerty-Space commented on 2023-01-09 22:04 (UTC)

Please update the PKGBUILD to the one below:


# Maintainer: Jose Riha <jose1711 gmail com>
# Contributor: archdaemon
# Contributor: sekret

pkgname=untrunc-git
pkgver=r142.e02f40e
pkgrel=1
libav_version=12.3
pkgdesc="restore a damaged (truncated) mp4, m4v, mov, 3gp video"
arch=('x86_64' 'i686')
url="https://github.com/ponchio/untrunc"
license=('GPL2')
depends=('libvdpau' 'zlib' 'bzip2')
makedepends=('yasm' 'git' 'libx11')
source=("${pkgname}"::'git+https://github.com/ponchio/untrunc.git'
        'framealloc.patch'
    "https://github.com/libav/libav/archive/v${libav_version}.zip")
md5sums=('SKIP'
         '7f6cf1762cd93f4ce84cb218ab856ea3'
         '6ba5f8731b64704cfeb34bfa4f3f6cea')
noextract=("v${libav_version}.zip")

prepare() {
  cd $srcdir/$pkgname
  unzip ../v${libav_version}.zip
}

build() {
  cd $srcdir/$pkgname
  git submodule init
  git submodule update
  # patch -p1 -i $srcdir/framealloc.patch
  # wget http://libav.org/releases/libav-${libav_version}.tar.xz
  cd libav-"${libav_version}"
  ./configure
  make
  cd ..
  g++ -o untrunc -I./libav-${libav_version} file.cpp main.cpp track.cpp atom.cpp codec_*.cpp codecstats.cpp codec.cpp mp4.cpp log.cpp -L./libav-${libav_version}/libavformat -lavformat -L./libav-${libav_version}/libavcodec -lavcodec -L./libav-${libav_version}/libavresample -lavresample -L./libav-${libav_version}/libavutil -lavutil -lpthread -lz -lbz2 -llzma -lX11 -lvdpau -ldl
} 

pkgver() {
  cd "$srcdir/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  install -Dm755 $srcdir/$pkgname/untrunc $pkgdir/usr/bin/untrunc
}

Qwerty-Space commented on 2023-01-09 21:38 (UTC)

libav.org no longer resolves, as a result this package cannot be built.

jose1711 commented on 2021-02-19 15:44 (UTC)

@Nitsuga thank you, PKGBUILD is now updated.