salut a tous, j'essaye d'implementer un transcodeur utilisant ffmpeg, j'ai installer ffmpeg ,toutes ses bibliotheques et la bibliothèque SDL. seulement quand je veut compiler le 2ième tutoriale sur
http://dranger.com/ffmpeg/tutorial02.c il me sort ces erreurs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| tutorial02.c:21:21: error: avcodec.h: Aucun fichier ou répertoire de ce type
tutorial02.c:22:22: error: avformat.h: Aucun fichier ou répertoire de ce type
tutorial02.c:23:20: error: avutil.h: Aucun fichier ou répertoire de ce type
tutorial02.c: In function main:
tutorial02.c:35: error: AVFormatContext undeclared (first use in this function)
tutorial02.c:35: error: (Each undeclared identifier is reported only once
tutorial02.c:35: error: for each function it appears in.)
tutorial02.c:35: error: pFormatCtx undeclared (first use in this function)
tutorial02.c:37: error: AVCodecContext undeclared (first use in this function)
tutorial02.c:37: error: pCodecCtx undeclared (first use in this function)
tutorial02.c:38: error: AVCodec undeclared (first use in this function)
tutorial02.c:38: error: pCodec undeclared (first use in this function)
tutorial02.c:39: error: AVFrame undeclared (first use in this function)
tutorial02.c:39: error: pFrame undeclared (first use in this function)
tutorial02.c:40: error: AVPacket undeclared (first use in this function)
tutorial02.c:40: error: expected ; before packet
tutorial02.c:75: error: CODEC_TYPE_VIDEO undeclared (first use in this function)
tutorial02.c:119: error: packet undeclared (first use in this function)
tutorial02.c:130: error: AVPicture undeclared (first use in this function)
tutorial02.c:130: error: expected ; before pict
tutorial02.c:131: error: pict undeclared (first use in this function)
tutorial02.c:140: error: PIX_FMT_YUV420P undeclared (first use in this function)
tutorial02.c:141: error: expected expression before ) token |
voici la commande de compilation
gcc -o tutorial02 tutorial02.c -lavutil -lavformat -lavcodec -lz -lm `sdl-config --cflags --libs`
je suis entrain d'utiliser open suse 10.3 i386
merci pour votre aide j'en ai vraiment besoin !!
Partager