def setValkkaLogLevel(i=loglevel_normal): if (i == loglevel_silent): # just fatal messages core.fatal_log_all() core.ffmpeg_av_log_set_level(-8) elif (i == loglevel_normal): # just necessary messages core.normal_log_all() core.ffmpeg_av_log_set_level(8) elif (i == loglevel_debug): # verbose core.debug_log_all() core.ffmpeg_av_log_set_level(8) elif ( i == loglevel_crazy ): # loglevel crazy here at the python side means more verbosity to ffmpeg core.debug_log_all() core.ffmpeg_av_log_set_level(32) elif (i == loglevel_nuts): # absolutely verbose core.crazy_log_all() core.ffmpeg_av_log_set_level(32) else: raise (AssertionError("Invalid loglevel"))
def setFFmpegLogLevel(i): core.ffmpeg_av_log_set_level(i)