Historique des modifications - Message

Message #11222

Sujet: Cinématique


Type Date Auteur Contenu
Dernière modification 29-04-2013 18:42:36 Neckara
Merci, je pense que c'est exactement ce qu'il me faut ^^
Pour le son, je peux le jouer moi-même (j'utilise la SFML pour cela).

Par contre lors de la compilation de tes sources, j'ai pas mal d'erreurs :
neckara@neckUbu:~/Bureau/test$ g++ main.cpp cguivideo.cpp gameintro.cpp svideo.cpp -lIrrlicht -lavformat -lavcodec -lavutil -D__STDC_CONSTANT_MACROS -o exe
main.cpp: In function ‘int main()’:
main.cpp:13:115: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
cguivideo.cpp:10:12: error: language string ‘"\\012> RESTART <\\012\\012"’ not recognized
cguivideo.cpp: In constructor ‘interne::_interface::CGUIVideo::CGUIVideo(interne::SVideo*, bool, bool)’:
cguivideo.cpp:39:28: warning: converting ‘false’ to pointer type ‘irr::video::ITexture*’ [-Wconversion-null]
cguivideo.cpp:40:26: warning: converting ‘false’ to pointer type ‘irr::video::IImage*’ [-Wconversion-null]
svideo.cpp:23:12: error: language string ‘"\\012> RESTART <\\012\\012"’ not recognized
svideo.cpp: In destructor ‘interne::SVideo::~SVideo()’:
svideo.cpp:60:35: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
svideo.cpp:60:64: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
svideo.cpp: In member function ‘bool interne::SVideo::open(char*, bool)’:
svideo.cpp:66:12: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
svideo.cpp:66:62: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
svideo.cpp:71:12: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
svideo.cpp:71:41: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
svideo.cpp:77:9: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
svideo.cpp:77:42: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
svideo.cpp:84:61: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope
svideo.cpp:88:61: error: ‘CODEC_TYPE_AUDIO’ was not declared in this scope
svideo.cpp:92:61: error: ‘CODEC_TYPE_DATA’ was not declared in this scope
svideo.cpp:103:13: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
svideo.cpp:103:51: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
svideo.cpp:109:13: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
svideo.cpp:109:51: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
svideo.cpp: In member function ‘bool interne::SVideo::makeFrame()’:
svideo.cpp:137:96: error: ‘avcodec_decode_video’ was not declared in this scope
svideo.cpp:158:58: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat]
svideo.cpp: In member function ‘bool interne::SVideo::restart()’:
svideo.cpp:188:17: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
svideo.cpp:188:67: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
svideo.cpp: In member function ‘char* interne::SVideo::getAuthor()’:
svideo.cpp:196:53: error: ‘struct AVFormatContext’ has no member named ‘author’
svideo.cpp: In member function ‘char* interne::SVideo::getAlbum()’:
svideo.cpp:197:53: error: ‘struct AVFormatContext’ has no member named ‘album’
svideo.cpp: In member function ‘char* interne::SVideo::getTitle()’:
svideo.cpp:198:53: error: ‘struct AVFormatContext’ has no member named ‘title’
svideo.cpp: In member function ‘char* interne::SVideo::getCopyright()’:
svideo.cpp:199:53: error: ‘struct AVFormatContext’ has no member named ‘copyright’
svideo.cpp: In member function ‘char* interne::SVideo::getComment()’:
svideo.cpp:200:53: error: ‘struct AVFormatContext’ has no member named ‘comment’
svideo.cpp: In member function ‘char* interne::SVideo::getGenre()’:
svideo.cpp:201:49: error: ‘struct AVFormatContext’ has no member named ‘genre’
svideo.cpp: In member function ‘int interne::SVideo::getYear()’:
svideo.cpp:202:49: error: ‘struct AVFormatContext’ has no member named ‘year’
svideo.cpp: In member function ‘int interne::SVideo::getTrack()’:
svideo.cpp:203:49: error: ‘struct AVFormatContext’ has no member named ‘track’

Saurais-tu comment les résoudre ?


EDIT : le wrapper de theora marche parfaitement, par contre, il faut que je retrouve les formats vidéos supportés^^
Création du message 29-04-2013 17:05:57 Neckara
Merci, je pense que c'est exactement ce qu'il me faut ^^
Pour le son, je peux le jouer moi-même (j'utilise la SFML pour cela).

Par contre lors de la compilation de tes sources, j'ai pas mal d'erreurs :
neckara@neckUbu:~/Bureau/test$ g++ main.cpp cguivideo.cpp gameintro.cpp svideo.cpp -lIrrlicht -lavformat -lavcodec -lavutil -D__STDC_CONSTANT_MACROS -o exe
main.cpp: In function ‘int main()’:
main.cpp:13:115: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
cguivideo.cpp:10:12: error: language string ‘"\\012> RESTART <\\012\\012"’ not recognized
cguivideo.cpp: In constructor ‘interne::_interface::CGUIVideo::CGUIVideo(interne::SVideo*, bool, bool)’:
cguivideo.cpp:39:28: warning: converting ‘false’ to pointer type ‘irr::video::ITexture*’ [-Wconversion-null]
cguivideo.cpp:40:26: warning: converting ‘false’ to pointer type ‘irr::video::IImage*’ [-Wconversion-null]
svideo.cpp:23:12: error: language string ‘"\\012> RESTART <\\012\\012"’ not recognized
svideo.cpp: In destructor ‘interne::SVideo::~SVideo()’:
svideo.cpp:60:35: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
svideo.cpp:60:64: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
svideo.cpp: In member function ‘bool interne::SVideo::open(char*, bool)’:
svideo.cpp:66:12: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
svideo.cpp:66:62: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
svideo.cpp:71:12: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
svideo.cpp:71:41: warning: ‘int av_find_stream_info(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1412) [-Wdeprecated-declarations]
svideo.cpp:77:9: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
svideo.cpp:77:42: warning: ‘void dump_format(AVFormatContext*, int, const char*, int)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1902) [-Wdeprecated-declarations]
svideo.cpp:84:61: error: ‘CODEC_TYPE_VIDEO’ was not declared in this scope
svideo.cpp:88:61: error: ‘CODEC_TYPE_AUDIO’ was not declared in this scope
svideo.cpp:92:61: error: ‘CODEC_TYPE_DATA’ was not declared in this scope
svideo.cpp:103:13: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
svideo.cpp:103:51: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
svideo.cpp:109:13: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
svideo.cpp:109:51: warning: ‘int avcodec_open(AVCodecContext*, AVCodec*)’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:4035) [-Wdeprecated-declarations]
svideo.cpp: In member function ‘bool interne::SVideo::makeFrame()’:
svideo.cpp:137:96: error: ‘avcodec_decode_video’ was not declared in this scope
svideo.cpp:158:58: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat]
svideo.cpp: In member function ‘bool interne::SVideo::restart()’:
svideo.cpp:188:17: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
svideo.cpp:188:67: warning: ‘int av_open_input_file(AVFormatContext**, const char*, AVInputFormat*, int, AVFormatParameters*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1368) [-Wdeprecated-declarations]
svideo.cpp: In member function ‘char* interne::SVideo::getAuthor()’:
svideo.cpp:196:53: error: ‘struct AVFormatContext’ has no member named ‘author’
svideo.cpp: In member function ‘char* interne::SVideo::getAlbum()’:
svideo.cpp:197:53: error: ‘struct AVFormatContext’ has no member named ‘album’
svideo.cpp: In member function ‘char* interne::SVideo::getTitle()’:
svideo.cpp:198:53: error: ‘struct AVFormatContext’ has no member named ‘title’
svideo.cpp: In member function ‘char* interne::SVideo::getCopyright()’:
svideo.cpp:199:53: error: ‘struct AVFormatContext’ has no member named ‘copyright’
svideo.cpp: In member function ‘char* interne::SVideo::getComment()’:
svideo.cpp:200:53: error: ‘struct AVFormatContext’ has no member named ‘comment’
svideo.cpp: In member function ‘char* interne::SVideo::getGenre()’:
svideo.cpp:201:49: error: ‘struct AVFormatContext’ has no member named ‘genre’
svideo.cpp: In member function ‘int interne::SVideo::getYear()’:
svideo.cpp:202:49: error: ‘struct AVFormatContext’ has no member named ‘year’
svideo.cpp: In member function ‘int interne::SVideo::getTrack()’:
svideo.cpp:203:49: error: ‘struct AVFormatContext’ has no member named ‘track’

Saurais-tu comment les résoudre ?


EDIT : le wrapper de theora marche parfaitement, par contre, il faut que je retrouve les formats vidéos supportés^^

Retour

Options Liens officiels Caractéristiques Statistiques Communauté
Préférences cookies
Corrections
irrlicht
irrklang
irredit
irrxml
Propulsé par Django
xhtml 1.0
css 2.1
884 membres
1440 sujets
11337 messages
Dernier membre inscrit: Saidov17
106 invités en ligne
membre en ligne: -
RSS Feed