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