ffmpeg-日志-av_log_set_level
AV_LOG_ERROR
AV_LOG_WARNING
AV_LOG_INFO
AV_LOG_DEBUG
打印日志信息示例
Code
#include
void log_function(void)
{
// 设置log打印级别
av_log_set_level(AV_LOG_DEBUG);
av_log(NULL, AV_LOG_DEBUG, "%s\n", "Hello World");
av_log(NULL, AV_LOG_INFO, "%s\n", "Hello World");
av_log(NULL, AV_LOG_WARNING, "%s\n", "Hello World");
av_log(NULL, AV_LOG_ERROR, "%s\n", "Hello World");
}
参考链接
- 【void av_log_set_level(int level)】https://ffmpeg.org//doxygen/4.1/group__lavu__log.html#ga1fd32c74db581e3e2e7f35d277bb1e24
- 【int level】https://ffmpeg.org//doxygen/4.1/log_8c.html#a2964fe57b987fb53a3c46b2c760ef39d