regarding the above mentioned problem, If you have a look in this link, You may get my mean in another point of view:
dranger.com/ffmpeg/tutorial01.html
In the link, the author easily describe how to add a header file and then use the functions used in header files. But when i follow the same on my code, i encounter the problem again:
the simple line of code is here:
Quote:
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <ffmpeg/avcodec.h>
#include <ffmpeg/avformat.h>
int main(int argc, char *argv[])
{
av_register_all();
AVFormatContext *pFormatCtx;
// Open video file
if(av_open_input_file(&pFormatCtx, argv[1], NULL, 0, NULL)!=0)
return -1; // Couldn't open file
getch();
}
But the compiler at first function call : av_register_all();
make an error and says "av_register_all undeclared"
I know that header files just contain the function prototypes. do i need install appropriate dll? Do i have to make a linking file first? How?