[Live-devel] On the fly decoding

Roberto Nappi r_nappi at yahoo.it
Wed Mar 31 12:44:45 PST 2004


In this moment, 
I initially compile decoder.c and decoder.h in
live/testProgs directory, with the command:

gcc -H -I..../ffmpeg-0.4.8/libavcodec
-L...../ffmpeg-0.4.8/libavcodec -c decoder.c -o
decoder.o

After, I modify the testMEPG1or2VideoStreamer so:

....
#include "decoder.h"
....
sessionState.sink->startPlaying(*sessionState.source,
afterPlaying, NULL);

env->taskScheduler().doEventLoop(); 

video_decode("test.mpg"); // RR 

return 0; 
....

where decoder.h is:
....
#include "avcodec.h"
void video_decode(char *filename);
.....

Besides, I modify only the live/testProgs/Makefile so:
 

INCLUDES = -I../UsageEnvironment/include
-I../groupsock/include -I../liveMedia/include
-I../BasicUsageEnvironment/include -I.
-I..../ffmpeg-0.4.8/libavcodec # RR

MPEG_1OR2_VIDEO_RECEIVER_OBJS =
testMPEG1or2VideoReceiver.$(OBJ) decoder.$(OBJ) # RR

LIBS =	$(LOCAL_LIBS) $(LIBS_FOR_CONSOLE_APPLICATION)
-lm -lz -ldl -lavcodec #RR

When I execute this Makefile the compliler's answer
is:

testMPEG1or2VideoReceiver.o(.text+0x162): In function
`main': : undefined reference to `video_decode(char*)'
collect2: ld returned 1 exit status
make: *** [testMPEG1or2VideoReceiver] Error 1

Why do I have this answer?

Many thanks in advance for your support. Rona.


______________________________________________________________________
Yahoo! Mail: 6MB di spazio gratuito, 30MB per i tuoi allegati, l'antivirus, il filtro Anti-spam
http://it.yahoo.com/mail_it/foot/?http://it.mail.yahoo.com/


More information about the live-devel mailing list