Package Details: untrunc-git r388.d286625-2

Git Clone URL: https://aur.archlinux.org/untrunc-git.git (read-only, click to copy)
Package Base: untrunc-git
Description: Utility to restore a damaged (truncated) mp4, m4v, mov, 3gp video
Upstream URL: https://github.com/anthwlock/untrunc
Licenses: GPL-2.0-only
Conflicts: untrunc
Provides: untrunc
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 24
Popularity: 0.000000
First Submitted: 2015-03-10 14:30 (UTC)
Last Updated: 2026-04-19 15:16 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

jose1711 commented on 2026-04-19 15:17 (UTC)

@tee thank you, updated.

tee commented on 2026-04-19 13:37 (UTC)

switch to using untrunc-anthwlock-cli-git which is an improved and updated fork https://github.com/anthwlock/untrunc.

zrhoffman commented on 2024-07-05 10:52 (UTC)

The PKGBUILD fails to build libav:

libavfilter/avfilter.c: In function ‘ff_filter_frame’:
libavfilter/avfilter.c:786:58: error: passing argument 3 of ‘av_image_copy’ from incompatible pointer type [-Wincompatible-pointer-types]
  786 |             av_image_copy(out->data, out->linesize, frame->data, frame->linesize,
      |                                                     ~~~~~^~~~~~
      |                                                          |
      |                                                          uint8_t ** {aka unsigned char **}
In file included from libavfilter/avfilter.c:27:
./libavutil/imgutils.h:117:35: note: expected ‘const uint8_t **’ {aka ‘const unsigned char **’} but argument is of type ‘uint8_t **’ {aka ‘unsigned char **’}
  117 |                    const uint8_t *src_data[4], const int src_linesizes[4],
      |                    ~~~~~~~~~~~~~~~^~~~~~~~~~~
make: *** [Makefile:48: libavfilter/avfilter.o] Error 1
==> ERROR: A failure occurred in build().

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.

baodrate 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.