Untrunc compilation impossible

Bonjour,

J’ai une vidéo qui affiche : ‘moov atom not found’

Après quelques recherches sur internet, l’application ‘untrunc’ pourrait résoudre mon problème.
Sauf que je n’arrive pas à compiler le programme. J’ai des messages d’erreurs en pagaille :

root@debian9:/home/toto69/recovery-mp4/untrunc-master# g++ -o untrunc file.cpp main.cpp track.cpp atom.cpp mp4.cpp -L/usr/local/lib -lavformat -lavcodec -lavutil
track.cpp:30:0: warning: "__STDC_LIMIT_MACROS" redefined
 #define __STDC_LIMIT_MACROS 1
 
In file included from /usr/include/c++/6/cstdint:41:0,
                 from /usr/include/c++/6/bits/char_traits.h:420,
                 from /usr/include/c++/6/string:40,
                 from track.h:25,
                 from track.cpp:21:
/usr/lib/gcc/i686-linux-gnu/6/include/stdint.h:5:0: note: this is the location of the previous definition
 #  define __STDC_LIMIT_MACROS
 
track.cpp:31:0: warning: "__STDC_CONSTANT_MACROS" redefined
 #define __STDC_CONSTANT_MACROS 1
 
In file included from /usr/include/c++/6/cstdint:41:0,
                 from /usr/include/c++/6/bits/char_traits.h:420,
                 from /usr/include/c++/6/string:40,
                 from track.h:25,
                 from track.cpp:21:
/usr/lib/gcc/i686-linux-gnu/6/include/stdint.h:7:0: note: this is the location of the previous definition
 #  define __STDC_CONSTANT_MACROS
 
track.cpp:46:20: fatal error: config.h: Aucun fichier ou dossier de ce type
 #include <config.h>
                    ^
compilation terminated.
mp4.cpp:25:0: warning: "__STDC_LIMIT_MACROS" redefined
 #define __STDC_LIMIT_MACROS 1
 
In file included from /usr/include/c++/6/cstdint:41:0,
                 from /usr/include/c++/6/bits/char_traits.h:420,
                 from /usr/include/c++/6/string:40,
                 from mp4.cpp:22:
/usr/lib/gcc/i686-linux-gnu/6/include/stdint.h:5:0: note: this is the location of the previous definition
 #  define __STDC_LIMIT_MACROS
 
mp4.cpp:26:0: warning: "__STDC_CONSTANT_MACROS" redefined
 #define __STDC_CONSTANT_MACROS 1
 
In file included from /usr/include/c++/6/cstdint:41:0,
                 from /usr/include/c++/6/bits/char_traits.h:420,
                 from /usr/include/c++/6/string:40,
                 from mp4.cpp:22:
/usr/lib/gcc/i686-linux-gnu/6/include/stdint.h:7:0: note: this is the location of the previous definition
 #  define __STDC_CONSTANT_MACROS
 
mp4.cpp: In member function ‘void Mp4::parseTracks()’:
mp4.cpp:285:46: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
   track.codec.context = context->streams[i]->codec;
                                              ^~~~~
In file included from mp4.cpp:30:0:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
mp4.cpp:285:46: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
   track.codec.context = context->streams[i]->codec;
                                              ^~~~~
In file included from mp4.cpp:30:0:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;
                     ^~~~~
mp4.cpp:285:46: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
   track.codec.context = context->streams[i]->codec;
                                              ^~~~~
In file included from mp4.cpp:30:0:
/usr/include/i386-linux-gnu/libavformat/avformat.h:893:21: note: declared here
     AVCodecContext *codec;

Et quand je lance le programme :

    root@debian9:/home/toto69/recovery-mp4/untrunc-master# ./untrunc /path/to/12-38-32.mp4 /path/to/13-08-32.mp4
    bash: ./untrunc: Aucun fichier ou dossier de ce type

Bonjour,

J’espère qu’il y a d’autres solutions déjà dans debian car il semble que compiler ce programme soit déjà une épreuve en soi…

Cela dit, l’auteur reconnaît que son programme ne respecte pas l’état de l’art.

EDIT

Dans la section “video” et qui parle “atom”, aptitude retourne ceci :

$ aptitude search ~svideo~datom
p   atomicparsley                                                 - lecture, analyse et modification des méta-données MPEG-4 et 3gp

Ok, j’ai installé ‘atomicparsley’ ; mais çà ne me dit pas comment l’utiliser.

Tu sais l’utiliser ?

Je ne le connaissais même pas avant aujourd’hui.

Peut-être que sans argument, la commande affiche de l’aide.

Il me manque l’option pour mon problème.

Ce site en parle : http://mpeek247.blogspot.fr/2011/06/moov-atom-not-found.html
J’ai essayé mais cela ne fonctionne pas.

root@debian9:/home/toto69/recovery-mp4# AtomicParsley 13-08-32.mp4 -P
13-08-32.mp4 est le fichier corrompu.

Il ne se passe rien.

C’est-à-dire ?

Est-ce bien sûr ?