hello,
It seems that you did not link libavcodec and libavformat against your demo
app. How did you compile the demo app?
regards,
Sven
Am 25.01.2011 um 07:27 schrieb Nimo s:
> hello.,
>
> I tried to run the sample program from dranger..,
> but it is showing me some errors..
>
> here is the source kode which I tried & error displayed in my terminal..
>
> ______
>
> #include <stdio.h>
> #include <stdlib.h>
> #include <string.h>
> #include <unistd.h>
> #include <fcntl.h>
> #include <sys/types.h>
>
> #include <libavcodec/avcodec.h>
> #include <libavformat/avformat.h>
>
> int main(int argc, char *argv[])
> {
> AVFormatContext *pFormatCtx;
> int i, videoStream;
> AVCodecContext *pCodecCtx;
> AVCodec *pCodec;
> AVFrame *pFrame;
> AVFrame *pFrameRGB;
> int numBytes;
> uint8_t *buffer;
>
> // Register all formats and codecs
>
>
> av_register_all();
>
> return 0;
>
> }
>
>
>
> Error which is getting displayed on my terminal.,
>
> As I can't copy all the displayed lines, I tried to copy the bottom lines of
> my screen
> ________________________
>
>
>
> '
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:1239:
> undefined reference to `av_free'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:1244:
> undefined reference to `av_free_packet'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:1245:
> undefined reference to `av_free'
> /usr/local/lib/libavformat.a(utils.o): In function
> `av_estimate_timings_from_pts':
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:1887:
> undefined reference to `av_parser_close'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:1889:
> undefined reference to `av_free_packet'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:1884:
> undefined reference to `av_log'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:1927:
> undefined reference to `av_free_packet'
> /usr/local/lib/libavformat.a(utils.o): In function `fill_all_stream_timings':
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:1820:
> undefined reference to `av_rescale_q'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:1822:
> undefined reference to `av_rescale_q'
> /usr/local/lib/libavformat.a(utils.o): In function `av_find_stream_info':
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:2250:
> undefined reference to `avcodec_string'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:2251:
> undefined reference to `av_log'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:2261:
> undefined reference to `av_free'
> /usr/local/lib/libavformat.a(utils.o): In function `try_decode_frame':
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:2024:
> undefined reference to `avcodec_find_decoder'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:2027:
> undefined reference to `avcodec_open'
> /usr/local/lib/libavformat.a(utils.o): In function
> `av_interleaved_write_frame':
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:2919:
> undefined reference to `av_free_packet'
> /usr/local/lib/libavformat.a(utils.o): In function
> `av_interleave_packet_per_dts':
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:2873:
> undefined reference to `av_freep'
> /usr/local/lib/libavformat.a(utils.o): In function `av_interleave_packet':
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:2876:
> undefined reference to `av_init_packet'
> /usr/local/lib/libavformat.a(utils.o): In function `dump_stream_format':
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:3018:
> undefined reference to `av_gcd'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:3020:
> undefined reference to `avcodec_string'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:3021:
> undefined reference to `av_log'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:3027:
> undefined reference to `av_log'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:3028:
> undefined reference to `av_log'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:3029:
> undefined reference to `av_log'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:3051:
> undefined reference to `av_log'
> /usr/local/lib/libavformat.a(utils.o):/home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:3004:
> more undefined references to `av_log' follow
> /usr/local/lib/libavformat.a(utils.o): In function `dump_stream_format':
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:3033:
> undefined reference to `av_reduce'
> /home/curran/Desktop/azeez/21-01-2011/SANTHOSH/ffmpeg-0.6.1/libavformat/utils.c:3037:
> undefined reference to `av_log'
> /home/curran/Desktop/aze
>
>
>
> Any hints would be very helpful.,
>
> Thanks &
> greetings.
>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user