1 qt codecs installed package ffmpeg
2 Open qt create project
3 Import header and library files here must pay attention to the version of gcc version and the library must be consistent
4 Add some simple source code
1 #include <libavcodec/avcodec.h> 2 #include <libavformat/avformat.h> 3 #include <libavutil/log.h> 4 int main(int argc,char **argv) 5 { 6 av_log_set_level(AV_LOG_INFO); 7 av_log(NULL,AV_LOG_INFO,"hello FFmpeg\n"); 8 9 return 0; 10 } 11
Then you will be able to see the debug environment to build a complete hello ffmpeg