Hi I am using the latest svn download of ffmpeg. I am trying to compile a code that compiles fine with a previous version of ffmpeg but gives error with this version. I do not know how to solve this error.
I am working in ubuntu 9.04 and followed the ubuntu forums instructions to install ffmpeg. Appreciate your help please. The compilation command used is g++ -o test test.c -L/usr/local/lib -I/usr/local/include -lavformat -lavcodec -lavutil -lswscale -lmp3lame -lfaac -lvorbis -lvorbisenc -lxvidcore -pthread -ltheora -lx264 -lz -lbz2 -lm The output is as follows: test.c: In function ‘double Output_Duration_FPS(AVFormatContext*, int)’: test.c:68: warning: format ‘%u’ expects type ‘unsigned int’, but argument 6 has type ‘int64_t’ test.c: In function ‘int main(int, const char**)’: test.c:249: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3573) test.c:249: warning: ‘int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, const uint8_t*, int)’ is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:3573) test.c:261: warning: ‘SwsContext* sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, const double*)’ is deprecated (declared at /usr/local/include/libswscale/swscale.h:194) test.c:261: warning: ‘SwsContext* sws_getContext(int, int, PixelFormat, int, int, PixelFormat, int, SwsFilter*, SwsFilter*, const double*)’ is deprecated (declared at /usr/local/include/libswscale/swscale.h:194) /usr/local/lib/libavformat.a(utils.o): In function `parse_frame_rate': /home/root/ffmpeg/libavformat/utils.c:3218: undefined reference to `av_parse_video_rate' /usr/local/lib/libavformat.a(utils.o): In function `parse_image_size': /home/root/ffmpeg/libavformat/utils.c:3212: undefined reference to `av_parse_video_size' /usr/local/lib/libavcodec.a(bink.o): In function `decode_init': /home/root/ffmpeg/libavcodec/bink.c:975: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(dirac.o): In function `ff_dirac_parse_sequence_header': /home/root/ffmpeg/libavcodec/dirac.c:272: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(dnxhddec.o): In function `dnxhd_decode_frame': /home/root/ffmpeg/libavcodec/dnxhddec.c:309: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(dpx.o): In function `decode_frame': /home/root/ffmpeg/libavcodec/dpx.c:143: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(dsputil.o): In function `dsputil_init': /home/root/ffmpeg/libavcodec/dsputil.c:4458: undefined reference to `av_image_copy_plane' /usr/local/lib/libavcodec.a(eacmv.o): In function `cmv_decode_frame': /home/root/ffmpeg/libavcodec/eacmv.c:160: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(eamad.o): In function `decode_frame': /home/root/ffmpeg/libavcodec/eamad.c:264: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(eatgv.o): In function `tgv_decode_frame': /home/root/ffmpeg/libavcodec/eatgv.c:279: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(flvdec.o): In function `ff_flv_decode_picture_header': /home/root/ffmpeg/libavcodec/flvdec.c:86: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(gifdec.o): In function `gif_decode_frame': /home/root/ffmpeg/libavcodec/gifdec.c:300: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(h264.o): In function `decode_slice_header': /home/root/ffmpeg/libavcodec/h264.c:1918: undefined reference to `av_image_copy' /usr/local/lib/libavcodec.a(h264_ps.o): In function `ff_h264_decode_seq_parameter_set': /home/root/ffmpeg/libavcodec/h264_ps.c:345: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(iff.o): In function `decode_init': /home/root/ffmpeg/libavcodec/iff.c:164: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(imgconvert.o): In function `av_picture_copy': /home/root/ffmpeg/libavcodec/imgconvert.c:809: undefined reference to `av_image_copy' /usr/local/lib/libavcodec.a(imgconvert.o): In function `avpicture_fill': /home/root/ffmpeg/libavcodec/imgconvert.c:518: undefined reference to `av_image_check_size' /home/root/ffmpeg/libavcodec/imgconvert.c:521: undefined reference to `av_image_fill_linesizes' /usr/local/lib/libavcodec.a(imgconvert.o): In function `ff_fill_pointer': /home/root/ffmpeg/libavcodec/imgconvert.c:510: undefined reference to `av_image_fill_pointers' /usr/local/lib/libavcodec.a(imgconvert.o): In function `avpicture_fill': /home/root/ffmpeg/libavcodec/imgconvert.c:518: undefined reference to `av_image_check_size' /home/root/ffmpeg/libavcodec/imgconvert.c:521: undefined reference to `av_image_fill_linesizes' /home/root/ffmpeg/libavcodec/imgconvert.c:524: undefined reference to `av_image_fill_pointers' /home/root/ffmpeg/libavcodec/imgconvert.c:518: undefined reference to `av_image_check_size' /home/root/ffmpeg/libavcodec/imgconvert.c:521: undefined reference to `av_image_fill_linesizes' /home/root/ffmpeg/libavcodec/imgconvert.c:524: undefined reference to `av_image_fill_pointers' /usr/local/lib/libavcodec.a(imgconvert.o): In function `avpicture_get_size': /home/root/ffmpeg/libavcodec/imgconvert.c:600: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(imgconvert.o): In function `avpicture_fill': /home/root/ffmpeg/libavcodec/imgconvert.c:518: undefined reference to `av_image_check_size' /home/root/ffmpeg/libavcodec/imgconvert.c:521: undefined reference to `av_image_fill_linesizes' /home/root/ffmpeg/libavcodec/imgconvert.c:524: undefined reference to `av_image_fill_pointers' /usr/local/lib/libavcodec.a(imgconvert.o): In function `avpicture_get_size': /home/root/ffmpeg/libavcodec/imgconvert.c:600: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(imgconvert.o): In function `avpicture_fill': /home/root/ffmpeg/libavcodec/imgconvert.c:518: undefined reference to `av_image_check_size' /home/root/ffmpeg/libavcodec/imgconvert.c:521: undefined reference to `av_image_fill_linesizes' /home/root/ffmpeg/libavcodec/imgconvert.c:524: undefined reference to `av_image_fill_pointers' /usr/local/lib/libavcodec.a(imgconvert.o): In function `av_picture_data_copy': /home/root/ffmpeg/libavcodec/imgconvert.c:801: undefined reference to `av_image_copy' /usr/local/lib/libavcodec.a(imgconvert.o): In function `ff_get_plane_bytewidth': /home/root/ffmpeg/libavcodec/imgconvert.c:794: undefined reference to `av_image_get_linesize' /usr/local/lib/libavcodec.a(imgconvert.o): In function `ff_img_copy_plane': /home/root/ffmpeg/libavcodec/imgconvert.c:789: undefined reference to `av_image_copy_plane' /usr/local/lib/libavcodec.a(imgconvert.o): In function `ff_fill_linesize': /home/root/ffmpeg/libavcodec/imgconvert.c:504: undefined reference to `av_image_fill_linesizes' /usr/local/lib/libavcodec.a(imgconvert.o): In function `avpicture_fill': /home/root/ffmpeg/libavcodec/imgconvert.c:524: undefined reference to `av_image_fill_pointers' /usr/local/lib/libavcodec.a(indeo3.o): In function `iv_decode_frame': /home/root/ffmpeg/libavcodec/indeo3.c:999: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(kgv1dec.o): In function `decode_frame': /home/root/ffmpeg/libavcodec/kgv1dec.c:54: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(libopencore-amr.o): In function `amr_wb_decode_frame': /home/root/ffmpeg/libavcodec/libopencore-amr.c:300: undefined reference to `D_IF_decode' /usr/local/lib/libavcodec.a(libopencore-amr.o): In function `amr_wb_decode_close': /home/root/ffmpeg/libavcodec/libopencore-amr.c:309: undefined reference to `D_IF_exit' /usr/local/lib/libavcodec.a(libopencore-amr.o): In function `amr_nb_encode_frame': /home/root/ffmpeg/libavcodec/libopencore-amr.c:208: undefined reference to `Encoder_Interface_Encode' /usr/local/lib/libavcodec.a(libopencore-amr.o): In function `amr_nb_decode_frame': /home/root/ffmpeg/libavcodec/libopencore-amr.c:136: undefined reference to `Decoder_Interface_Decode' /usr/local/lib/libavcodec.a(libopencore-amr.o): In function `amr_wb_decode_init': /home/root/ffmpeg/libavcodec/libopencore-amr.c:263: undefined reference to `D_IF_init' /usr/local/lib/libavcodec.a(libopencore-amr.o): In function `amr_nb_encode_close': /home/root/ffmpeg/libavcodec/libopencore-amr.c:191: undefined reference to `Encoder_Interface_exit' /usr/local/lib/libavcodec.a(libopencore-amr.o): In function `amr_nb_encode_init': /home/root/ffmpeg/libavcodec/libopencore-amr.c:173: undefined reference to `Encoder_Interface_init' /usr/local/lib/libavcodec.a(libopencore-amr.o): In function `amr_nb_decode_close': /home/root/ffmpeg/libavcodec/libopencore-amr.c:105: undefined reference to `Decoder_Interface_exit' /usr/local/lib/libavcodec.a(libopencore-amr.o): In function `amr_nb_decode_init': /home/root/ffmpeg/libavcodec/libopencore-amr.c:85: undefined reference to `Decoder_Interface_init' /usr/local/lib/libavcodec.a(mjpegdec.o): In function `ff_mjpeg_decode_sof': /home/root/ffmpeg/libavcodec/mjpegdec.c:232: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(mpegvideo.o): In function `MPV_common_init': /home/root/ffmpeg/libavcodec/mpegvideo.c:514: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(nuv.o): In function `codec_reinit': /home/root/ffmpeg/libavcodec/nuv.c:115: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(pcx.o): In function `pcx_decode_frame': /home/root/ffmpeg/libavcodec/pcx.c:146: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(pgssubdec.o): In function `parse_presentation_segment': /home/root/ffmpeg/libavcodec/pgssubdec.c:273: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(pictordec.o):/home/root/ffmpeg/libavcodec/pictordec.c:139: more undefined references to `av_image_check_size' follow /usr/local/lib/libavcodec.a(utils.o): In function `avcodec_default_get_buffer': /home/root/ffmpeg/libavcodec/utils.c:286: undefined reference to `av_image_fill_linesizes' /home/root/ffmpeg/libavcodec/utils.c:296: undefined reference to `av_image_fill_pointers' /usr/local/lib/libavcodec.a(utils.o): In function `avcodec_decode_video2': /home/root/ffmpeg/libavcodec/utils.c:617: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(utils.o): In function `av_parse_video_frame_rate': /home/root/ffmpeg/libavcodec/utils.c:1114: undefined reference to `av_parse_video_rate' /usr/local/lib/libavcodec.a(utils.o): In function `av_parse_video_frame_size': /home/root/ffmpeg/libavcodec/utils.c:1109: undefined reference to `av_parse_video_size' /usr/local/lib/libavcodec.a(vp3.o): In function `theora_decode_header': /home/root/ffmpeg/libavcodec/vp3.c:1982: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(vp8.o): In function `update_dimensions': /home/root/ffmpeg/libavcodec/vp8.c:226: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(vqavideo.o): In function `vqa_decode_init': /home/root/ffmpeg/libavcodec/vqavideo.c:151: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(xsubdec.o): In function `decode_frame': /home/root/ffmpeg/libavcodec/xsubdec.c:80: undefined reference to `av_image_check_size' /usr/local/lib/libavcodec.a(yop.o): In function `yop_decode_init': /home/root/ffmpeg/libavcodec/yop.c:87: undefined reference to `av_image_check_size' collect2: ld returned 1 exit status _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
