bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.41k stars 1.57k forks source link

Can't see ffmpeg AV_LOG_ERROR when FFmpegLogCallback.setLevel to AV_LOG_TRACE #1955

Open bigmisspanda opened 1 year ago

bigmisspanda commented 1 year ago

I want to see SRT error message somethings like below: av_log(h, AV_LOG_ERROR, "%s\n", srt_getlasterror_str());

but when I use FFmpegLogCallback like this:

FFmpegLogCallback.setLevel(AV_LOG_TRACE);
FFmpegLogCallback.set();

I can't see any ERROR log,only some debug and info logs,I'm sure to trigger the error condition. thanks for help. @saudet

saudet commented 1 year ago

That just means your container isn't saving messages sent to the console (specifically stderr). You'll need to check its configuration to enable that.