Package Details: untrunc-anthwlock-cli-git r364.bd783dd-1

Git Clone URL: https://aur.archlinux.org/untrunc-anthwlock-cli-git.git (read-only, click to copy)
Package Base: untrunc-anthwlock-cli-git
Description: Restore a truncated mp4/mov. Improved version of ponchio/untrunc. CLI only.
Upstream URL: https://github.com/anthwlock/untrunc
Licenses: GPL-2.0-only
Conflicts: untrunc-git
Provides: untrunc-git
Replaces: untrunc-git
Submitter: KenjiTakahashi
Maintainer: KenjiTakahashi
Last Packager: KenjiTakahashi
Votes: 6
Popularity: 0.72
First Submitted: 2020-04-27 20:00 (UTC)
Last Updated: 2024-07-16 14:03 (UTC)

Latest Comments

KenjiTakahashi commented on 2023-08-18 17:41 (UTC)

Hm, yes, if you have both ffmpeg 6 and 4 installed during compilation, it seems to default to 6. That's why it is recommended to build packages in clean chroot, to avoid bringing in "crap" from the running system ;-). Anyway, I have switched the package to use LDFLAGS, as it doesn't seem to hurt anything in this case.

Cebtenzzre commented on 2023-08-01 17:06 (UTC) (edited on 2023-08-01 17:11 (UTC) by Cebtenzzre)

It seems like my version of gcc (13.1.1-2) is sorting LIBRARY_PATH in an undesirable way, as it seems to be picking up the libraries from my installed ffmpeg 2:6.0-8 instead. I can also reproduce the issue with gcc 12.2.1-4.

g++ .build_shared/src/atom.o .build_shared/src/codec.o .build_shared/src/common.o .build_shared/src/file.o .build_shared/src/main.o .build_shared/src/mp4.o .build_shared/src/mutual_pattern.o .build_shared/src/track.o .build_shared/src/avc1/avc1.o .build_shared/src/avc1/avc-config.o .build_shared/src/avc1/nal.o .build_shared/src/avc1/nal-slice.o .build_shared/src/avc1/sps-info.o .build_shared/src/hvc1/hvc1.o .build_shared/src/hvc1/nal.o .build_shared/src/hvc1/nal-slice.o -v -lavformat -lavcodec -lavutil -o untrunc
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --enable-languages=ada,c,c++,d,fortran,go,lto,objc,obj-c++ --enable-bootstrap --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --with-build-config=bootstrap-lto --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-cet=auto --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-libstdcxx-backtrace --enable-link-serialization=1 --enable-linker-build-id --enable-lto --enable-multilib --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-werror
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.1.1 20230714 (GCC) 
COMPILER_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/:/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/:/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/ffmpeg4.4/:/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-o' 'untrunc' '-shared-libgcc' '-mtune=generic' '-march=x86-64' '-dumpdir' 'untrunc.'
 /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/collect2 -plugin /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/lto-wrapper -plugin-opt=-fresolution=/tmp/ccYHCqLj.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o untrunc /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib/Scrt1.o /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/crtbeginS.o -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/ffmpeg4.4 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../.. .build_shared/src/atom.o .build_shared/src/codec.o .build_shared/src/common.o .build_shared/src/file.o .build_shared/src/main.o .build_shared/src/mp4.o .build_shared/src/mutual_pattern.o .build_shared/src/track.o .build_shared/src/avc1/avc1.o .build_shared/src/avc1/avc-config.o .build_shared/src/avc1/nal.o .build_shared/src/avc1/nal-slice.o .build_shared/src/avc1/sps-info.o .build_shared/src/hvc1/hvc1.o .build_shared/src/hvc1/nal.o .build_shared/src/hvc1/nal-slice.o -lavformat -lavcodec -lavutil -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/13.1.1/../../../../lib/crtn.o
/usr/bin/ld: .build_shared/src/codec.o: in function `untr_decode_audio4(AVCodecContext*, AVFrame*, int*, AVPacket*, unsigned int)':
/home/cebtenzzre/scratch/untrunc/src/codec.cpp:341: undefined reference to `avcodec_decode_audio4'
/usr/bin/ld: /home/cebtenzzre/scratch/untrunc/src/codec.cpp:353: undefined reference to `avcodec_decode_audio4'
/usr/bin/ld: .build_shared/src/codec.o: in function `untr_decode_video2(AVCodecContext*, AVFrame*, int*, AVPacket*)':
/home/cebtenzzre/scratch/untrunc/src/codec.cpp:366: undefined reference to `avcodec_decode_video2'
collect2: error: ld returned 1 exit status
make: *** [Makefile:136: untrunc] Error 1

KenjiTakahashi commented on 2023-08-01 12:17 (UTC)

I have just rebuilt it in clean chroot and it works fine. If you are using some kind of AUR helper tool, it is possible that it's affecting the build process in some way.

Cebtenzzre commented on 2023-07-30 22:38 (UTC) (edited on 2023-07-30 22:38 (UTC) by Cebtenzzre)

For some reason, I am not able to build this with LIBRARY_PATH=/usr/lib/ffmpeg4.4/ (undefined reference to avcodec_decode_video2), but changing it to LDFLAGS='-L/usr/lib/ffmpeg4.4' fixes the problem.

KenjiTakahashi commented on 2023-07-25 14:26 (UTC)

Switched to use ffmpeg4.4 for the time being (it is available in extra) so this keeps working. Hopefully at some point we'll get an update.

KenjiTakahashi commented on 2023-05-09 12:27 (UTC)

Looks like upgrade to FFmpeg 6 broke the tool. I'll see if we could get it fixed (when GitHub is back up, of course I chose a downtime period to look into this ;-?).

msrd0 commented on 2023-04-30 11:20 (UTC)

This package fails to compile. It looks like there is a fix on this fork: https://github.com/oneineight/untrunc/tree/newlibs

Benno commented on 2023-02-26 11:05 (UTC)

Your package isn't compiling for some reason.

KenjiTakahashi commented on 2020-10-17 21:56 (UTC)

Sorry, I do not use the GUI part and do not plan on maintaining the package for it.

flipmess commented on 2020-10-15 17:01 (UTC) (edited on 2020-10-15 17:02 (UTC) by flipmess)

could you also add the gui version?

thx for the package btw :)