- // Set libopenh264 message logging level for this instance of the encoder using
- // the current ffmpeg log level converted to the equivalent libopenh264 level.
- //
- // The client should have the ffmpeg level set to the desired value before creating
- // the libopenh264 encoder. Once the encoder has been created, the libopenh264
- // log level is fixed for that encoder. Changing the ffmpeg log level to a LOWER
- // value, in the expectation that higher level libopenh264 messages will no longer
- // be logged, WILL have the expected effect. However, changing the ffmpeg log level
- // to a HIGHER value, in the expectation that higher level libopenh264 messages will
- // now be logged, WILL NOT have the expected effect. This is because the higher
- // level messages will be discarded by the libopenh264 logging system before our
- // message logging callback function can be invoked.
- equiv_libopenh264_log_level = ffmpeg_to_libopenh264_log_level(av_log_get_level());
- (*s->encoder)->SetOption(s->encoder,ENCODER_OPTION_TRACE_LEVEL,&equiv_libopenh264_log_level);
+ // Pass all libopenh264 messages to our callback, to allow ourselves to filter them.
+ log_level = WELS_LOG_DETAIL;
+ (*s->encoder)->SetOption(s->encoder, ENCODER_OPTION_TRACE_LEVEL, &log_level);