在.pro文件中添加如下内容:
INCLUDEPATH += $$PWD/ffmpeg_4_0_win32/include
LIBS += $$PWD/ffmpeg_4_0_win32/lib/avcodec.lib \
$$PWD/ffmpeg_4_0_win32/lib/avfilter.lib \
$$PWD/ffmpeg_4_0_win32/lib/avutil.lib \
$$PWD/ffmpeg_4_0_win32/lib/swresample.lib \
$$PWD/ffmpeg_4_0_win32/lib/avdevice.lib \
$$PWD/ffmpeg_4_0_win32/lib/avformat.lib \
$$PWD/ffmpeg_4_0_win32/lib/postproc.lib \
$$PWD/ffmpeg_4_0_win32/lib/swscale.lib \